godotengine / godotengine/godot-csharp-visualstudio

Editor crash or disconnect with Play in Editor, every other time

Open
#20 3 comments 0 reactions 1 assignee Claimed by @neikeq View on GitHub
bug
Dominant language
C#
Stars
276
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Using the workaround described in #10 to get the build options to show, using Play in Editor will work the first time, triggering a build in the editor and launching the game, as expected.

However, by closing the game window, changing a script, and repeating Play in Editor, immediately after either Visual Studio will complain about disconnecting from the editor ("No Godot editor instance connected") or the editor itself will hard crash, while the game window itself launches just fine. Seems to be 100% reproducible. If it complains about a disconnect, doing Play in Editor again will get it to work as expected, but the same thing happens with the next build.

Happens in any project, including simple one-script tests. Nothing weird in the output console in Visual Studio, and no consistent error in the Godot console or logs, it usually just silently fails, but I'll include a couple. New to Godot and don't really know how to debug this, so would appreciate some help.

![2021-09-09 02_14_46](https://user-images.githubusercontent.com/29162970/132607334-22b2be97-33c0-43e7-9526-f06886e12686.png)

![2021-09-05 20_57_14](https://user-images.githubusercontent.com/29162970/132607333-3192cd1c-405f-4566-920c-2681d9b351b2.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.