0.13.2 missing parsing errors
See original GitHub issue0.13.1 error on a file like this with a missing fi
:
PATH_INPUT=src/in.js
PATH_OUTPUT=src/out.js
if [[ $PATH_INPUT -nt $PATH_OUTPUT ]]; then
babel --compact false ${PATH_INPUT} > ${PATH_OUTPUT}
f
I guess this is a regression from 0.13.1? Didn’t investigate if this is due to https://github.com/tree-sitter/tree-sitter-bash/commit/6ff7fe3c7e584b7eaf6b9fb3fe952499d1dd3008
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Maven trouble when trying to generate from WSDL file
Im trying to generate sources from a wsdl file, but I keep running into an error on my pom.xml that I believe might...
Read more >parse-error / F0010 - Pylint 2.16.0-dev documentation
This is a message linked to an internal problem in pylint. There's nothing to change in your code. Created by the main checker....
Read more >Help! Now getting 'Parsing Error "" is not a function' on all ...
I've tried multiple clean installs of Obsidian and Templator, and no matter what, I get the same error. I think it all started...
Read more >Unparsable structured data report - Search Console Help
Error types ; Parsing error: Missing ',' or ']' in array declaration, Error parsing an array value: missing a comma or closing bracket...
Read more >Version history — Pybtex User's Guide (0.24.0)
BibTeX parser now produces human-readable error messages on unread macros. Added error messages on missing data in .aux files.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Parsing this file with 0.13.2, I get this output:
The last child of the
if_statement
is afi
token that is “missing” (i.e. tree-sitter realized that it was missing and inserted it for error recovery). I just realized that theSyntaxNode.isMissing()
method was not declared in the typescript declarations file. That is now fixed.In
bash-language-server
, I’m guessing you’re probably not checking if nodes are missing. These nodes will have zero size (e.g.startPosition
equalsendPosition
).Another thing that might be useful is that you can check whether a parent node contains any errors of any kind using the
SyntaxNode.hasError()
method. This will return true of the node contains anyERROR
nodes or any missing nodes.