I think these are related:
I always clone my apps and test the modules locally. Unfortunately sometimes the process is not smooth and I can have the following problems:
Sometimes server functions run on the server, so they can’t be debugged
Sometimes server functions run locally, so they don’t work (for example when they use SQL - I have a dedicated plan with SQL access that only works on the server)
Sometimes the production app, which runs on the server on a different environment and on a different branch, stops workin…
I feel the same way. Autocomplete is important.
I have generated almost the entire anvil sdk as stubs, so I do have autocomplete in PyCharm. Some of the anvil.users. functions I have filled out. Also the anvil.server.call() and @anvil.server.callable etc.
Now I can pytest my UI modules in PyCharm.
If a UI module wants to call the server, it can. All the anvil tables commands are wrapped around a SQLIte database.
Basically it is nearly a reciprocal of anvil.works within PyCharm, except for th…
I haven’t tried any of them yet, though, and don’t understand enough to compare and contrast these approaches, but I’d be interested if others have thoughts.
1 Like