#[Solved] VSCode IntelliSense bug

15 messages · Page 1 of 1 (latest)

cursive cedar
#

For some reason, even having all the extensions installed and configured correctly (C#, Mono Debug and Godot C#), when trying to complete anything related to Godot nothing appears, it doesn't recognizes Godot's types and neither its methods even though it has using Godot; at the top of the file, the Debugger also doesn't work properly and it's only possible to see errors in Godot. I tried to reinstall, create new project and to no avail.

I saw videos on the internet and they all had autocomplete for godot namespaces, if you type GD. all available methods appear however for me nothing appears and it is not recognized

(I'm using the latest stable version 3.5.1, according to Godot extension support is valid for any version above 3.2.2)

modest sequoia
#

Are you opening VS Code at the root of your Godot project? There should be a .sln and a .cproj file there. You have to open the folder they are in and then it should work

cursive cedar
#

Yes I am, as I said the project is configured correctly I followed the tutorial in the docs and it still didn't work as expected

gloomy eagle
#

VS code for me at least needs godot editor to be open to work.

cursive cedar
#

Yes, I open godot and vs, it doesn't work

#

it does not recognize godot types with C# extension in version 3.5.1

gloomy eagle
#

You mean C# Tools for Godot extension?

#

or basic C#

#

If it's a bug, then you would need to report it to the extension creator.

cursive cedar
cursive cedar
#

[Solved] VSCode IntelliSense bug

#

For some reason Omnisharp wasn't working, I reinstalled the C# extension again, opened the command palette, used Omnisharp: Select Project to select the .sln file and so I restarted the server using Omnisharp: Restart server and finally used Omnisharp: Analyze current project with a .cs script open and it worked like a charm. Now IntelliSense works and the editor recognizes Godot types and methods.

south frigate
#

Had the same kind of problem on linux, had dotnet6 sdk installed. In .csproj file I changed target framework to net6.0 and intellisence worked, however project could not be built cause godot does not supports dotnet6, so I went to Editor->Editor Settings->Mono->Builds
And switched it to "dotnet CLI"

#

I believe all this could be fixed by installin dotnet3.1 sdk