Comments (7)
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
from vscode-antlr4.
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.
from vscode-antlr4.
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?
from vscode-antlr4.
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.
from vscode-antlr4.
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?
from vscode-antlr4.
I was able to find out the settings that still work for me:
- ANTLR4 grammar syntax support v2.3.1 ( antlr-4.9.2-complete.jar & antlr4-typescript-4.9.0-SNAPSHOT-complete.jar )
- antlr4-python3-runtime 4.9.3
- openjdk version "11.0.19" 2023-04-18
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.
from vscode-antlr4.
Not a bug in the extension.
from vscode-antlr4.
Related Issues (20)
- Formatter repeatedly adds new lines to comment blocks HOT 2
- Error terminal nodes show as green in visualized parse tree HOT 3
- No rule selected HOT 4
- Navigation not working HOT 6
- Split grammar not generating properly, and can't debug HOT 3
- Debug antlr in vscode with launch.json HOT 10
- Cannot build .vsix HOT 2
- Extension does not work on Windows HOT 2
- TypeError: Cannot read properties of undefined (reading 'toString') HOT 1
- Formatting HOT 2
- railroad diagram: empty route and repeating routes are ambigious HOT 3
- Tokens not found if there's no lexer file, but only a .tokens file
- Bug: Generate valid input for rule ignores negation
- How can I have my parser tree graphical visualizations with my antlr grammar file and input for parse? HOT 3
- Visual parse tree not showing for version 2.4.5 HOT 5
- A Bottom part of big digram can be hidden. HOT 15
- [Internal Error] Unhandled error message (code 50, message: syntax error: mismatched character '<EOF>' expecting ''' Please file a bug report at https://github.com/mike-lischke/vscode-antlr4/issues) HOT 5
- [Feature Request] live tester HOT 4
- implicit token command not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-antlr4.