Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A parse error occurred. Check the syntax of the file. for correct ruby file #16757

Open
VitaliySerov opened this issue Jun 14, 2024 · 3 comments
Labels
question Further information is requested

Comments

@VitaliySerov
Copy link

Hi all, I have a CodeQL connected to this repo:
https://github.com/ONLYOFFICE-QA/testing-site-onlyoffice

And in codeql logs I see the line:

2024-06-14T08:55:36.1255023Z [2024-06-14 08:55:36] [build-stdout] [2024-06-14 08:55:36] [build-stdout] �[33m WARN�[0m /home/runner/work/testing-site-onlyoffice/testing-site-onlyoffice/shared_examples/desktop_installer_download.rb:29: A parse error occurred. Check the syntax of the file. If the file is invalid, correct the error or exclude the file from analysis.

The thing is this is correct ruby code - I don't have any problems running this code

So probably something is wrong with codeql file parser

Env

CodeQL 2.17.5

@VitaliySerov VitaliySerov added the question Further information is requested label Jun 14, 2024
@mbg
Copy link
Member

mbg commented Jun 19, 2024

Hi @VitaliySerov 👋

Thanks for reporting this. I have passed this on to our Ruby team to look at.

@hvitved
Copy link
Contributor

hvitved commented Jun 19, 2024

Tree-sitter grammar fix: tree-sitter/tree-sitter-ruby#262.

@hvitved
Copy link
Contributor

hvitved commented Jun 21, 2024

Fix: #16801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants