Code Monkey home page Code Monkey logo

Comments (6)

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

Cann you tell me which navigation is not working?

from vscode-antlr4.

wy672515431 avatar wy672515431 commented on June 5, 2024

1698230028536
for example, I want to navigate to "grammarType". with version 2.4.x, it does not work.

from vscode-antlr4.

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

I guess you mean cmd/ctlr + click on that identifier to navigate to the defining rule, ok.

from vscode-antlr4.

jsnb-devoted avatar jsnb-devoted commented on June 5, 2024

I was about to open a separate issue but this but with a little extra detail. If my vscode window reloads or I open a fresh g4 file the go-to definition (cmd/ctrl + click) doesn't work. If I add some arbitrary whitespace to the doc and then hit save then the extension seems to activate and the go-to definitions start working again.

Screen.Recording.2023-10-25.at.8.51.23.AM.mov

I am running on a remote workspace

from vscode-antlr4.

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

Most of the features need generated parser files (and interpreter data). On opening a grammar that data should be generated automatically (see the .antlr folder beside the grammar) and is updated whenever you change a grammar and save it. It's very likely that the initial generation did not happen, for whatever reason.

from vscode-antlr4.

jsnb-devoted avatar jsnb-devoted commented on June 5, 2024

Hi @mike-lischke - I can confirm that the .antlr folder is present and has all the generated files. In the screen recording above I'm recreating the issue by reloading my window when the extension features are working (my workspace is remote over ssh) -- when the window is done reloading the features don't work until after the grammar files are saved again.

I would have expected the activation of the extension to happen because the files are already open when the window loads. It's not a huge deal but because I'm over ssh my window needs to be reloaded every time the computer sleeps/ssh connection is closed.

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.