Closed c4lcifer closed 12 months ago
I I did some more digging and found out i run into a problem that quite some people have Could not deserialize ATN with version (expected 4).
So it seems i run into this serialization problem when the antlr4 version from your new released is used. Still dont know how i can resolve this problem then though. Tried 2 other runtimes but didnt work
You probably only need to upgrade your Python runtime to the latest version. Whenever a new ANTLR4 release comes out you very likely also have a new runtime to install.
Hello, I tried newest runtime. Didnt work. Can I manually Set another antlr4 Version in your plugin? Do I need to reverence another jar file then?
There's an option to specify your own jar in the extension settings, yes. But I doubt this will change things, since the Python output from my extension should be exactly the same as the one from the main ANTLR4 jar.
Hello, how would i set that? trying everything i can at the moment but cant seem to get it working with a different runtime.
Is there somethig else that could influence this? Like Python or JDK version?
I was able to find out the settings that still work for me:
However, as said, when i upgrade your extension my code breaks with a deserialization error. Could not fix it with other python runtimes. I dont know if others have the same problem but my only solution for now is to stick with the old versions.
If you fiund this helpfull / want to look into it more im glad to help.
Not a bug in the extension.
Hi,
after your newest update ( or maybe even before that ) my Code from my old antlr4 project wont run anymore.
As explanation: Suddenly my code didnt work anymore and i couldnt figure out why. I didnt updated antlr4 or any other software that should be connected to this. I always used antlr version 4.9.2, This is where i coded all my lexers and parsers.
now i didnt paid a lot to attention on how the setup on the dev machine was working ( i didnt set that up, was already 3 years ago ) but I tracked the problem back to some error messages when i reinstalled everything. It seems you are now using another version of antlr4 ( 4.13.1 ) that comes from a package inside the antl4-cli directory. ( antlr4-4.13.2-SNAPSHOT-complete.jar )
Now my project wont work anymore at the moment and i cant figure out whats going on and why. Grammar checks show no errors in Lexer or Parser so my question, is it possible for you to provide a release before you switched to the new TypeScript runtime so that it is possible to roll back if theres a problem?
Sorry for tyhe sloppy explanation, im no dev expert in any means, and i dont know if theres a known problem here