-
Notifications
You must be signed in to change notification settings - Fork 1
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
Parser errors though code translates properly #7
Comments
Hey, thanks for reporting this. Glad the project is useful to you! The tree-sitter parser is currently missing support for some 68020+ addressing modes, including scaled indexes in this case. I'll make a start on implementing it. |
- allows square brackets - adds support for scaled indexes to address #7
Should this already fix the reported snippet? |
Yeah it should. I tested it briefly but haven't tagged a new release yet. |
Hmm. Doesn't look that way here. I've uninstalled the old m68-lsp-server. Ran nvim, error (no m68k-lsp-server). Pulled the new stuff from git, installed it. Ran nvim, which now starts the new server. However, still got the parser error. Now, given the other issue, I could fully understand that you are doubting my sanity - I am doing that as well... Do I need a specific configuration for that to work? |
Tried on a second machine. Same, same. So at least I am again convinced that I didn't screw things up completely. |
I must have screwed something up then! I'll do some proper testing and sort it tonight. |
Just to check how you're linking the nvim lsp config up to your local version rather than expecting a global npm package, the way I do it is to override the lspconfig.m68k.setup {
cmd = {'node', '/Users/batesgw1/m68k-lsp/server/cli.js', '--stdio'},
... Make sure you run You probably already know all this but I'm tearing my hair out a bit because I'm still seeing that the latest commit resolves the issue for me! I'll keep investigating. |
I had completely uninstalled the global variant. If I am doing a
It does run however, if I start it with the cmd from above.... So apparently your fix did work - thanks! Now I need to figure out why it didn't work the other way... |
Oh - BTW. That executable above was a link to So both should be running code from the same |
No, that's your problem right there. The vscode client still has a dependency on the latest server npm package, which as I haven't make a release yet will still be v0.8.0 and won't include the fix. To test the unreleased server code you need reference it like I described. Mystery solved I think! |
I've released v0.8.1 including the fix so you should be able to just install the latest package now. Let me know if you're still having any problems. Thanks again for reporting this. Just to warn you, I'm aware that there are other 68020+ addressing modes that will currently cause a parser error including base and outer displacements. I've created a separate issue on |
Thanks for this language server, exactly what was looking for right now.
I am trying to use this in nvim to compile some Amiga code targeting 68020 and am getting some Parser errors. Here's a test case, which compiles but produces that error:
The text was updated successfully, but these errors were encountered: