What I’m trying to do:
Test some custom logging functionality I have added. To do this I created a test server module and try execute the test with a button in the ui.
What I’ve tried and what’s not working:
I have a button on the front end that I press to test this it does this
anvil.server.call('test_all_logging')
I have done this process a lot of times before without issue.
anvil.server.NoServerFunctionError: No server function matching "test_all_logging" has been registered
Not sure how it is possible that the function is not registered. The code that is in the frontend and the decorator were both autocompleted making me doubt it was a typo.
This is the first time I’m using a branch that is not master to develop but I can’t imagine that is related. OR could the REPL be running master? I’m doing all the testing in my debug env but that’s what I always do too.
I feel like this will be something remarkably simple…
Try to change the name and make it not starting with test_ or ending with _test (you shouldn’t have any testing frameworks around, but just in case, some testing frameworks may kidnap those functions).
Try to set the name in the decorator with @anvil.server.callable('some_new_name')