-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[3.2] C#: Add Visual Studio support #39784
Conversation
Sometimes Visual Studio documents have the root path all in upper case. Since Godot doesn't support loading resource files with a case insensitive path, this makes script resource loading to fail when the Godot editor gets code completion requests from Visual Studio. This fix allows the resource path part of the path to be case insensitive. It still doesn't support cases where the rest of the path is also case insensitive. For that we would need a proper API for comparing paths. However, this fix should be enough for our current cases.
Tested by merging the PR locally on Setup works fine and then it seems to work out of the box, so kudos! Features described in the addin's readme seem functional ("Play in editor", documentation, code completion). I did experience a few crashes of Godot when using it on a simple test project though. I haven't figured out exact steps to reproduce yet, but here's what I did when it crashed: Crash 1
Error output:
Crash 2I then tried to reproduce it with the same steps. It didn't crash, so then I kept doing this:
|
@akien-mga I wasn't able to reproduce the crashes. Perhaps it's caused by domain unloading. Do you have the native backtrace for all threads? (I'm particularly interested in the main thread)
This is a known bug in my list. It happens because after VS builds the project, Godot reloads the domain before it can receive the DebugPlay request from VS, so the request goes ignored. |
This must have been missed when backporting the new protocol to 3.2.
@akien-mga & @neikeq I recommend that we merge this to 3.2.2 soon so more people get to test to speed up the bugs identification and features improvement |
3.2.2-stable is released already, but yes, this is now ready to merge for 3.2.3. |
Thanks! |
@akien-mga I have testing the Visual Studio Support. It makes learning GodotSharp Tool environment a lot more easier, and other important .NET5 features e.g. SDK style project. REF Godot Proposal: Support multiple .NET5 SDK style projects per godot project |
Backport of #39578 and #39783 to 3.2.