mocha-engine / mocha

Mocha: A work-in-progress 3D game engine
GNU Lesser General Public License v3.0
53 stars 7 forks source link

Bug: Compiling editor occasionally fails for seemingly no reason #60

Open xezno opened 2 months ago

xezno commented 2 months ago

Describe the bug Sometimes when launching the engine the editor assembly will fail to compile & there won't be an entry point. Very sporadic, happens some times but not always.

To Reproduce Steps to reproduce the behavior:

  1. Launch engine until it happens

Expected behavior Should always compile properly

Screenshots image

Additional context N/A

xezno commented 2 months ago
22:40:40 cl       error    Failed to compile Mocha.Editor!
22:40:40 cl       error    
CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
    at source\Mocha.Editor\Editor\Windows\ViewportWindow.cs line 3
22:40:40 cl       error    
CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
    at source\Mocha.Editor\Editor\Windows\ConsoleWindow.cs line 5
22:40:40 cl       error    
CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
    at source\Mocha.Editor\Editor\Windows\NetworkingWindow.cs line 3
22:40:40 cl       error    
CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
    at source\Mocha.Editor\Editor\Editor.cs line 8
22:40:40 cl       error    
CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
    at source\Mocha.Editor\Editor\Windows\InspectorWindow.cs line 6
22:40:40 cl       error    
CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)
    at source\Mocha.Editor\Editor\Windows\BrowserWindow.cs line 3
22:40:40 cl       error    
CS1950: The best overloaded Add method 'List<EditorWindow>.Add(EditorWindow)' for the collection initializer has some invalid arguments
    at source\Mocha.Editor\Editor\Editor.cs line 10
22:40:40 cl       error    
CS1503: Argument 1: cannot convert from 'Mocha.Editor.ConsoleWindow' to 'EditorWindow'
    at source\Mocha.Editor\Editor\Editor.cs line 10
22:40:40 cl       error    
CS1950: The best overloaded Add method 'List<EditorWindow>.Add(EditorWindow)' for the collection initializer has some invalid arguments
    at source\Mocha.Editor\Editor\Editor.cs line 11
22:40:40 cl       error    
CS1503: Argument 1: cannot convert from 'Mocha.Editor.BrowserWindow' to 'EditorWindow'
    at source\Mocha.Editor\Editor\Editor.cs line 11
22:40:40 cl       error    
CS1950: The best overloaded Add method 'List<EditorWindow>.Add(EditorWindow)' for the collection initializer has some invalid arguments
    at source\Mocha.Editor\Editor\Editor.cs line 12
22:40:40 cl       error    
CS1503: Argument 1: cannot convert from 'Mocha.Editor.InspectorWindow' to 'EditorWindow'
    at source\Mocha.Editor\Editor\Editor.cs line 12
22:40:40 cl       error    
CS1950: The best overloaded Add method 'List<EditorWindow>.Add(EditorWindow)' for the collection initializer has some invalid arguments
    at source\Mocha.Editor\Editor\Editor.cs line 14
22:40:40 cl       error    
CS1503: Argument 1: cannot convert from 'NetworkingWindow' to 'EditorWindow'
    at source\Mocha.Editor\Editor\Editor.cs line 14
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\NetworkingWindow.cs line 7
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\InspectorWindow.cs line 17
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\NetworkingWindow.cs line 12
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\ViewportWindow.cs line 7
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\BrowserWindow.cs line 27
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\InspectorWindow.cs line 22
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\ConsoleWindow.cs line 158
22:40:40 cl       error    
CS0103: The name 'isVisible' does not exist in the current context
    at source\Mocha.Editor\Editor\Windows\BrowserWindow.cs line 541
22:40:40 cl       info     Mocha.Editor build and hotload took 4487ms