Comments (15)
That would be great news! This (just fixed) issue looks very much like the problems here. Unfortunately, this project neither releases packages nor bundles, so it's tricky to know when a new release comes out (if they even make releases).
from vscode-antlr4.
Yes, I will update the library, but I'm pretty busy with other stuff. Need to find some time for it...
from vscode-antlr4.
IIRC this is not only a problem for the last rule. I have seen this also for rules in the middle somewhere. Last time I looked it was so that the railroad library did not correctly compute the total height of the diagram. Needs investigation, but your proposal would only fix a part of the problem.
from vscode-antlr4.
Do you have an example about rules in the middle somewhere? If not can you put them later?
from vscode-antlr4.
I found something interesting. You build tab with next structure.
In 2 you use a property with name "padding" that has a parameter "60px". This has incorrect influence to "height:100vh" (100vh do not enlarge on 60px):
(example: https://css-tricks.com/almanac/properties/p/padding/#aa-padding-and-element-width-calculations)
To fix this I found a property "box-sizing: border-box":
Now all looks good: first element is not under a header and a last element is not hidden. What do you think?
info of a box-sizing:
from vscode-antlr4.
that the railroad library did not correctly compute the total height of the diagram
Now I think that this railroad issue is another issue.
from vscode-antlr4.
My assumption was that the missing space at the end is the same problem like missing space in the middle of the document:
But you might have a point in your analysis of other spacing and the boxing model. I'll have to investigate.
from vscode-antlr4.
Can you give me this example? Or send it by email [email protected] ? I promise not to show anyone.
from vscode-antlr4.
It's open source like everything I do on Github 😄
Note also the other display problems like in alterListItem:
from vscode-antlr4.
I'm sorry I found MySQLParser.g4 file with another syntax. Now I use your grammar. Can you show your extension settings?
from vscode-antlr4.
It probably doesn't make a difference, but here they are:
"antlr4.rrd.saveDir": "/Users/Mike/Desktop/rrd",
"antlr4.atn.saveDir": "",
"antlr4.atn.maxLabelCount": 10,
"antlr4.call-graph.saveDir": "/tmp/",
"antlr4.debug": {
"visualParseTreeHorizontal": true,
"visualParseTreeClustered": true
},
"antlr4.generation": {
"mode": "internal",
"listeners": true,
"visitors": false,
"outputDir": "./generated"
},
"antlr4.format": {
"disabled": false,
"alignTrailingComments": true,
"allowShortBlocksOnASingleLine": true,
"breakBeforeBraces": false,
"columnLimit": 150,
"continuationIndentWidth": 4,
"indentWidth": 4,
"keepEmptyLinesAtTheStartOfBlocks": false,
"maxEmptyLinesToKeep": 1,
"reflowComments": false,
"spaceBeforeAssignmentOperators": true,
"tabWidth": 4,
"useTab": false,
"alignColons": "none",
"singleLineOverrulesHangingColon": false,
"allowShortRulesOnASingleLine": false,
"alignSemicolons": "ownLine",
"breakBeforeParens": false,
"ruleInternalsOnSingleLine": false,
"minEmptyLines": 1,
"groupedAlignments": true,
"alignFirstTokens": true,
"alignLexerCommands": false,
"alignActions": false,
"alignLabels": true,
"alignTrailers": false
},
from vscode-antlr4.
At last I got these errors after settings:
)))
from vscode-antlr4.
Yes, that's the setting for wrapping long sequence lines in the diagram. Of course, if no wrapping occurs then the display is fine. IMO the RRD script does not fully cover some of the cases we use in these diagrams.
from vscode-antlr4.
I found something - version of railroad.js file in this repo is too old. I try last (newest) version and all look good:
https://github.com/tabatkins/railroad-diagrams/blob/gh-pages/railroad.js
and all look good
I use setting "wrapAfter"=60.
from vscode-antlr4.
Happy to help you. I just compare count of lines of code. Intuition. ))) Are you planning to update this library?
from vscode-antlr4.
Related Issues (20)
- Navigation not working HOT 6
- 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
- [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.