[Fixed] Autocomplete issues

When typing in a server code module, autocomplete is not suggesting anything.
When typing in a client code form/module/package (and weirdly in a server package), it works perfectly, except that it cannot suggest anvil.server.call functions

This happens on every app i have, so hoping that this is an account setting that i have accidentally changed and can no longer find?

Possibly related - when creating a scheduled task, there are no tasks available in the ‘Task to Run’ dropdown.

Just to confirm you’ve tried this in a blank app?

I can confirm that it works fine in a blank app

1 Like

Are you doing any more modern features like the := Walrus operator? Those work in server code, but they stop the autocomplete from working.

Reproduced and should now be fixed, thanks for reporting

@duncan_richards12 no walrus operators here

@stucork unfortunately it now only works on some of my apps. Of the 4 I have tested this morning, it is ok on 2

ok, so this is an issue with the server code being compiled as python 2 by the autocompleter.

We’ll get that fixed!

In the meantime, if you go to your settings → python versions
then toggle the server from python 3.10 to Full Python 3 and back again

then it should tickle the app in the right way to get your autocompletions working again. (you may need to refresh the page)

2 Likes