ProwlEngine / Prowl

An Open Source C# 3D Game Engine under MIT license, inspired by Unity and featuring a complete editor and built on Silk.NET
MIT License
360 stars 30 forks source link

[Editor] Program Crashes If File In Asset Browser is Updated Using Visual Studio #66

Closed 10xJosh closed 9 months ago

10xJosh commented 9 months ago

Describe the bug I ran into this issue when trying to figure out how to use the .cs scripts on game components. When I make any change and save the change in Visual Studio, it throws an error that can be found in the screenshot below.

To Reproduce Steps to reproduce the behavior:

  1. Launch Visual Studio
  2. Create a .cs file in one of the projects folder for Prowel ( C:/Users//Documents/Prowl/Projects/ )
  3. Start Debugging Prowl
  4. Open a .cs script and edit it
  5. Save the script

Expected behavior No Crash, just updated script

Screenshots 2023-11-28 21_34_11-Prowl (Debugging) - Microsoft Visual Studio

Additional context Right before making this issue, I tested this with other text editors, Notepad and Visual Studio Code updated the files fine without issue. This might be an issue with Visual Studio itself when debugging. Figured might as well report it for the record :)

michaelsakharov commented 9 months ago

Not sure how else to solve this other than to ignore missing files.

Can you check if 41747a5 fixed the issue?

michaelsakharov commented 9 months ago

It seems visual studio might just be generating random files, In which case that commit should fix it.

10xJosh commented 9 months ago

I'll have to look into this tomorrow but I'll let you know as soon as i can

10xJosh commented 9 months ago

Ok I tested it and looks like issue has been fixed! Thanks!