Comments (6)
Cann you tell me which navigation is not working?
from vscode-antlr4.
for example, I want to navigate to "grammarType". with version 2.4.x, it does not work.
from vscode-antlr4.
I guess you mean cmd/ctlr + click on that identifier to navigate to the defining rule, ok.
from vscode-antlr4.
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.
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.
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)
- Update to 2.4.2 broke project HOT 7
- 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
- Feature/Bug: Disable cache for Parse Tree HOT 8
- Changing token.type is invalid HOT 1
- breakpoints are ignored in debug mode HOT 3
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.