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

Faulty syntax parsing (everything) #183

Open
mxamber opened this issue Apr 6, 2022 · 3 comments
Open

Faulty syntax parsing (everything) #183

mxamber opened this issue Apr 6, 2022 · 3 comments

Comments

@mxamber
Copy link

mxamber commented Apr 6, 2022

And when I say "everything", I mean "everything". The plugin highlights everything I write as wrong. It's perfectly fine SQF that works (I verified it does), and it's an SQF file, created in an SQDev project.

Most of the time, it wants me to put a semicolon after every single word. It refuses to accept that functions and commands have parameters. Like so:

image

It also seems to have trouble with brackets, as it doesn't recognise these brackets as closed, even though Eclipse itself knows they're closed and highlights them accordingly.

image

And just as I was about to type up a more complex test code (calling BIS_fnc_holdActionAcc), the plugin seemed to crash while trying to parse the (incomplete, I was still typing) code:

image

image

All of this happened on Eclipse 2021-06 4.20.0 and with SQDev 0.7.7.stable.

@Krzmbrzl
Copy link
Owner

Krzmbrzl commented Apr 7, 2022

From the highlighting you can see that it thinks all of the commands that you are using are im fact global variables (and not SQF commands). To me this seems as if the plugin somehow managed to forget about what kind of commands exist. Have you attempted to let the plugin update its command set yet (there's a button for that somewhere in the SQDev settings)?

@mxamber
Copy link
Author

mxamber commented Apr 7, 2022

I did. It restarted all editors, and just to be sure, I restarted Eclipse as well. Still happens.

@Krzmbrzl
Copy link
Owner

Krzmbrzl commented Apr 7, 2022

Then it must have gotten hung up on something. No idea what though.
And as I did not touch the code of SQDev for years, I am afraid, that I also can't help you any further with this 👀

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

No branches or pull requests

2 participants