-
Notifications
You must be signed in to change notification settings - Fork 177
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
Function arguments autocomplete for Odin LSP server #5872
Comments
Does Sublime have some settings for Odin server, maybe in some config file? Maybe Sublime uses some middleware python code to configure Odin server? I cannot find it in the PackageControl.io site. |
So it does work for other languages? Because I've tried it only with C and Odin. |
Yes, Cud's LSP plugin works good with many languages eg C++ and Python, as documented in the wiki page "cudatext plugins". |
I asked for help at the Github issue linked above this post. Maybe you should click Cud's LSP sidebar icon, panel will be shown at the bottom. Read its log. Maybe LSP server was not inited ok? |
My lsp_odin.json in the "cudatext\settings" folder:
Do I need to copy it anywhere else? |
I cannot make Odin server showing anything, so cannot help.+
from Console, odin.exe works, ols.exe works somehow too.
and now autocompletion don't work for your file 'new.odin' here:
|
Is "MS Build Tools 2022" a requeirment? |
I am not sure MSBuildTools are used during lsp action. LSP: Odin - process exited means that lsp server exits. So it dont work for me. If you have idea how to fix it, tell me. |
I found why 'process exited'! reason: I did not create PROJECT with tst.odin file which I edit. after I made the project and saved it as tst.cuda-proj in the same dir as tst.odin, completions work! tst.odin
proof that it works: my settings/lsp_odin.json.
note that I copied ols.exe to the same dir as odin.exe. |
I wrote my results to the wiki. |
Functions call-tooltip works too! good! I press Ctrl+Shift+Space here:
|
This comment has been minimized.
This comment has been minimized.
This error log shows that you have very old LSP_Client plugin! it is using already deleted api. update LSP_Client from 'plugins / addon manager / update'. |
Ok, now it works. One more thing: "base" folder from odin main folder must be included in a project (root nodes -> add folder) in order for LSP to work correctly. |
Added this info to the wiki topic. |
Subj, recently I tried to setup LSP for Odin on Cudatext and overall it worked, but still I cannot figure out how to enable API functions auto suggestions. Seems like Odin LSP does support it, because I've seen how it working with LSP in Sublime:
or it can suggests some variables
But no such suggestions in Cudetext. Is this will be even possible to implement or not?
The screenshots were taken from this video: https://www.youtube.com/live/NYsTQ2TcF_0?si=26durYjB2xhit99T&t=1389
The text was updated successfully, but these errors were encountered: