oleg-shilo / cs-script.vscode

VSCode extension for CS-Script
MIT License
37 stars 7 forks source link

CS-Script intellisense isn't working #23

Closed LuckJMG closed 4 years ago

LuckJMG commented 4 years ago

Intellisense is not working for me, since no suggestion appears to autocomplete when putting something, I have tried what has occurred to me and I have read but it still does not work.

VSCode v1.44.1 (system setup) VSCode Extension v1.6.4 CS-Script Engine v3.29.0

oleg-shilo commented 4 years ago

The intellisense problems are usually caused by the syntaxer.exe (intellisense provider) not being running.

Can you please start the syntaxer manually and let me know if it throws missing assembly error or similar. Please execute:

dotnet C:\Users\<username>\AppData\Roaming\Code\User\cs-script.user\dotnet\syntaxer\syntaxer.core.dll -timeout:60000 -cscs_path:C:\Users\<username>\AppData\Roaming\Code\User\cs-script.user\dotnet\cscs.dll
LuckJMG commented 4 years ago

In the end it fixed itself, I don't know if it was a problem of some folders that I had, versions of omnisharp or incompatibility, but in the end it was solved itself, unfortunately I can't give you more information since I don't know what it was that fixed it. Thanks for the help, I hope you are well and thank you very much for this wonderful extension, greetings. (Sorry for the english, but it is not my native language, I am only 16 years old and I still don't write very well in english although I understand it almost perfectly)

oleg-shilo commented 4 years ago

Great, thank you for letting me know.

At startup of any new version of the extension the CS-Script binaries are prepared for the first run of this version. This does take some time during which intellisense is falling back to what ever is offered by VSCode. Quite possibly it was this "first run" problem.

During the first run initialization the extension is indicating (on the status bar) that it is still initializing. But... the message is easy to miss. And... I did not wan it to be too intrusive as the error messages (toast notifications).

ZmorzynskiK commented 2 years ago

Hello,

I'd like to comment on this a little. I basically find CS-Script useful, so thanks for that. However, is intellisense in VS Code suppose to work for packages imported using //css_nuget directive? So with //css_nuget Newtonsoft.Json; should the intellisense work for the types from this nuget? I see it's referenced in the "CS-Script - Active" pane, but the intellisens doesn't work for me right now for those types.

The general C# intellisense from Omnisharp works OK.

thanks and all the best Krzysztof

oleg-shilo commented 2 years ago

Yes, nuget packages are part of the codebase and they are supposed to be covered by intellisense. It is a defect.

Can you please log it as an individual auto-completion defect for nuget packages.

Thank you.

ZmorzynskiK commented 2 years ago

Done, I've added new issue #28