Code Monkey home page Code Monkey logo

Comments (7)

c4lcifer avatar c4lcifer commented on June 4, 2024

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.

mike-lischke avatar mike-lischke commented on June 4, 2024

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.

c4lcifer avatar c4lcifer commented on June 4, 2024

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.

mike-lischke avatar mike-lischke commented on June 4, 2024

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.

c4lcifer avatar c4lcifer commented on June 4, 2024

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.

c4lcifer avatar c4lcifer commented on June 4, 2024

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.

mike-lischke avatar mike-lischke commented on June 4, 2024

Not a bug in the extension.

from vscode-antlr4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.