Describe the Bug in Detail:
Using an UdonSharpBehaviour Class inside a namespace {} will cause the compiler to error on it. On rare occasions, it may break. Although it will successfully recompile, I do not like seeing that Error show after saving the .cs from an external editor.
I do not want an Error to appear when all UdonSharp Code is built inside a namespace {} and is saved from an External Editor, since all functions must be written inside a namespaces when it is used. Because of this Error, I have to double-check with a manual UdonSharp Recompile so that there is no error whatsoever (which is the case).
Steps to Reproduce:
Simply create a new U# Script as usual, edit in JetBrains Rider (which is what I'm using) using a namespace {}. Save your Code and the Unity Project will refresh. You'll see the compile progress bar disappear midway and output an Error, followed by (hopefully) a clean Asset refresh with successful compile.
Expected Behavior:
UdonSharp compiles the code as per usual without Errors upon refresh.
Additional Information:
Using UdonSharp v1.1.6
The Editor I'm using is JetBrains Rider, which is what I prefer for editing C#. I am unsure if this bug affects Visual Studio or if it's just because I'm using JetBrains Rider.
Describe the Bug in Detail: Using an UdonSharpBehaviour Class inside a
namespace {}
will cause the compiler to error on it. On rare occasions, it may break. Although it will successfully recompile, I do not like seeing that Error show after saving the .cs from an external editor.I do not want an Error to appear when all UdonSharp Code is built inside a
namespace {}
and is saved from an External Editor, since all functions must be written inside a namespaces when it is used. Because of this Error, I have to double-check with a manual UdonSharp Recompile so that there is no error whatsoever (which is the case).Steps to Reproduce: Simply create a new U# Script as usual, edit in JetBrains Rider (which is what I'm using) using a
namespace {}
. Save your Code and the Unity Project will refresh. You'll see the compile progress bar disappear midway and output an Error, followed by (hopefully) a clean Asset refresh with successful compile.Expected Behavior: UdonSharp compiles the code as per usual without Errors upon refresh.
Additional Information: Using UdonSharp v1.1.6 The Editor I'm using is JetBrains Rider, which is what I prefer for editing C#. I am unsure if this bug affects Visual Studio or if it's just because I'm using JetBrains Rider.