Neovim configuration for RISC-V Assembly #260
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
All of our RISC-V related features are sourced from here, it is by no means comprehensive. The invalid message error should be resolved on the master branch by #257, but that hasn't made it into a release yet.
I'm not sure what's causing this.
Same deal for autocomplete, this just means the server doesn't have a proper response to give. The goto definition functionality is based on a tree-sitter tree, and doesn't include semantic analysis. While improvements could definitely be made, there are some cases where it won't work.
This is probably a bug. Thanks for making such a detailed report! The invalid server message issues can be addressed by using asm-lsp from the master branch. I will try to spend some time reproducing and debugging soon to address the other problems. |
Beta Was this translation helpful? Give feedback.
-
|
@irtaza-10x I was able to reproduce the I wasn't able to reproduce the issue with diagnostics showing up on incorrect lines, however. Do they still show up in the wrong spot after you've saved the file? (Currently, asm-lsp only provides diagnostics on save) If they're still showing up in the wrong spot, could you provide the output from invoking your compiler on the source file manually? The server provides diagnostics by invoking the compiler and parsing its output, its possible the source location for an error isn't being gathered correctly. |
Beta Was this translation helpful? Give feedback.
-
|
The Regarding the other error in your message, this appears to be an issue with your neovim configuration: if (
vim.tbl_contains(client.server_capabilities.signatureHelpProvider.triggerCharacters, current_char, {})
or (
client.server_capabilities.signatureHelpProvider.retriggerCharacters
and vim.tbl_contains(client.server_capabilities.signatureHelpProvider.retriggerCharacters, current_char, {})
)
) then
require("tillb.signature").signature_help()
endThe error indicates that |
Beta Was this translation helpful? Give feedback.





Sorry it took me so long to get back to this!
That is unfortunately the expected behavior currently, as the source we use for RISC-V documentation isn't comprehensive. There are some vague plans to improve this (see #165), but I haven't checked in on the project in a bit.
Ah, there may be an easy fix to this problem at least, I'll try to look into this soon.