Script Inspector 3

More bad new for today @Flipbookee
I was moving script files around and deleting empty folders in Unity Editor

System.IO.DirectoryNotFoundException: Could not find a part of the path "/Volumes/Amanotes/AmaSDK/AmaGDK/GDKDev/Assets/AmaGDK/Extra/AutoEventTesting/Scripts/Logic/FeatureEventTestParser.cs".
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
  at ScriptInspector.FGFindInFiles.ContainsWordsSequence (System.String assetPath, System.String[] words) [0x00014] in /Volumes/Amanotes/AmaSDK/AmaGDK/GDKDev/Assets/Plugins/Editor/ScriptInspector3/Scripts/FGFindInFiles.cs:733 
UnityEngine.Debug:LogError (object)
ScriptInspector.FGFindInFiles:ContainsWordsSequence (string,string[]) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGFindInFiles.cs:957)
FGTextBufferManager:FindOtherTypeDeclarationParts (ScriptInspector.SymbolDeclaration) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextBufferManager.cs:720)
ScriptInspector.SymbolDefinition:AddMember (ScriptInspector.SymbolDeclaration) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:14533)
ScriptInspector.SymbolDefinition:AddDeclaration (ScriptInspector.SymbolDeclaration) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:14591)
ScriptInspector.NamespaceScope:AddDeclaration (ScriptInspector.SymbolDeclaration) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:11362)
ScriptInspector.CsGrammar:GetNodeDeclaration (ScriptInspector.ParseTree/Node,string) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:3536)
ScriptInspector.CsGrammar:GetNodeScope (ScriptInspector.ParseTree/Node,string) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:3220)
ScriptInspector.CsGrammar:GetNodeScope (ScriptInspector.ParseTree/Node,string) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:3104)
ScriptInspector.CsGrammar:GetNodeScope (ScriptInspector.ParseTree/Node,string) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:3104)
ScriptInspector.CsGrammar:GetNodeDeclaration (ScriptInspector.ParseTree/Node,string) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:3256)
ScriptInspector.CsGrammar:OnReduceSemanticNode (ScriptInspector.ParseTree/Node,string) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:3656)
ScriptInspector.CsGrammar/Scanner:OnReduceSemanticNode (ScriptInspector.ParseTree/Node) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:3782)
ScriptInspector.FGGrammar/Rule:NextAfterChild (ScriptInspector.FGGrammar/Node) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3859)
ScriptInspector.FGGrammar/Id:NextAfterChild (ScriptInspector.FGGrammar/Node) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:2189)
ScriptInspector.FGGrammar/Token:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3291)
ScriptInspector.FGGrammar/Id:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:2168)
ScriptInspector.FGGrammar/Rule:RhsParse2 () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3901)
ScriptInspector.FGGrammar/Rule:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3829)
ScriptInspector.FGGrammar/Id:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:2168)
ScriptInspector.FGGrammar/Seq:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3209)
ScriptInspector.FGGrammar/Rule:RhsParse2 () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3901)
ScriptInspector.FGGrammar/Rule:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3829)
ScriptInspector.FGGrammar/Id:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:2168)
ScriptInspector.FGGrammar/If:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:2912)
ScriptInspector.FGGrammar/Alt:Parse () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:2431)
ScriptInspector.FGGrammar/Parser:ParseStep (ScriptInspector.FGGrammar/IScanner) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3518)
ScriptInspector.FGGrammar/Parser:ParseAll (ScriptInspector.FGGrammar/IScanner) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGGrammar.cs:3468)
ScriptInspector.CsGrammar:ParseAll (ScriptInspector.CsGrammar/Scanner) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsGrammar.cs:2889)
ScriptInspector.CsParser:ParseAll (string) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/CsParser.cs:109)
ScriptInspector.FGParser:OnLoaded () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGParser.cs:1099)
FGTextBuffer:ProgressiveLoadOnUpdate () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextBuffer.cs:997)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:327)

1 Like

@Flipbookee

  • Linq does not work so well for me
  • I tried .SelectMany(t => , after that the code hint seems to lost
  • If I finished typing for the whole line, everything looks fine (no errors)

Here is a video

1 Like

Hmm, interesting… This is related to partial types, such as a class defined in multiple scripts. When Si3 encounters a partial type, it has to find the other parts for that type to fully parse all of its members. Obviously, something went wrong after moving the files, and it needs investigating. Thanks for this!

I see. I think I know why this happened. I hope I’ll fix that very soon!

1 Like

@Flipbookee and the extension method in DLL was not recognized

1 Like

Si3 can recognize extension methods from any DLL, but there seems to be a problem in this particular case. Thanks for reporting this; I’ll check why it failed there.

1 Like

By the way, that beautiful color theme is a great choice! :metal:

1 Like

Ah, this was a wonderful find! It revealed a small bug where the Si3 resolver was trying to substitute the TResult type parameter of a Func object with the void type. Then the extension method call became ambiguous because two overloads were equally valid, one accepting a delegate parameter of type Action and the other of type Func (that returns void!)…

It was an easy fix, but not simple enough for me to post here as a quick fix for you to apply in your local copy. So, I’ll have to release this fix with the next Si3 update.

Thanks again, @thienhaflash, you’re the best! :1st_place_medal:

1 Like

Time for a bad news @Flipbookee

This time I deleted an overload method that some other code is using

NullReferenceException: Object reference not set to an instance of an object
ScriptInspector.SymbolDefinition._ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:18032)
ScriptInspector.SymbolDefinition.ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17112)
ScriptInspector.SymbolDefinition._ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:18045)
ScriptInspector.SymbolDefinition.ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17112)
ScriptInspector.SymbolDefinition._ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17913)
ScriptInspector.SymbolDefinition.ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17112)
ScriptInspector.SymbolDefinition._ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17840)
ScriptInspector.SymbolDefinition.ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17112)
ScriptInspector.TypeReference.get_definition () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:589)
ScriptInspector.MethodGroupDefinition+<>c.<ConstructMethodGroup>b__32_0 (ScriptInspector.TypeReference x) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:9507)
System.Linq.Enumerable.All[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
ScriptInspector.MethodGroupDefinition.ConstructMethodGroup (ScriptInspector.TypeReference[] typeArgs) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:9507)
ScriptInspector.SymbolDefinition._ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:18690)
ScriptInspector.SymbolDefinition.ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17112)
ScriptInspector.SymbolDefinition._ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:18240)
ScriptInspector.SymbolDefinition.ResolveNode (ScriptInspector.ParseTree+BaseNode baseNode, ScriptInspector.Scope scope, ScriptInspector.SymbolDefinition asMemberOf, System.Int32 numTypeArguments, System.Boolean asTypeOnly) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:17112)
ScriptInspector.FGResolver.ResolveNodeInternal (ScriptInspector.ParseTree+Node node) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:22701)
UnityEngine.Debug:LogException(Exception)
ScriptInspector.FGResolver:ResolveNodeInternal(Node) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:22707)
ScriptInspector.FGResolver:ResolveNode(Node) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:22604)
ScriptInspector.FGTextEditor:GetTokenStyle(SyntaxToken) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:6240)
ScriptInspector.FGTextEditor:DrawLinesInView() (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:6137)
ScriptInspector.FGTextEditor:DoGUI(Boolean) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:5223)
ScriptInspector.FGTextEditor:DoGUIWithAutocomplete(Boolean) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:2657)
ScriptInspector.FGTextEditor:OnWindowGUI(EditorWindow, RectOffset) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:2417)
ScriptInspector.FGCodeWindow:OnGUI() (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGCodeWindow.cs:1547)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

Another one

NullReferenceException: Object reference not set to an instance of an object
ScriptInspector.TypeReference.CreateDefinitionForReflectedType (System.Type type) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:673)
ScriptInspector.TypeReference.get_definition () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:575)
ScriptInspector.TypeReference.ToString () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:950)
ScriptInspector.TypeDefinition.ConstructType (ScriptInspector.TypeReference[] typeArgs, ScriptInspector.TypeDefinition parentType) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:7593)
ScriptInspector.TypeReference.CreateDefinitionForReflectedType (System.Type type) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:853)
ScriptInspector.TypeReference.get_definition () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:575)
ScriptInspector.InstanceDefinition.TypeOf () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:3016)
ScriptInspector.MethodDefinition.Rebind () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTypeSystem.cs:10421)
ScriptInspector.FGFindInFiles.FindDeclarations (ScriptInspector.SymbolDefinition symbol) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGFindInFiles.cs:45)
ScriptInspector.FGTextEditor.GetSymbolDeclarations () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:10249)
ScriptInspector.FGTextEditor.GoToDefinition () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:10137)
ScriptInspector.FGTextEditor.ProcessEditorKeyboard (UnityEngine.Event current, System.Boolean acceptingAutoComplete) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:10535)
ScriptInspector.FGTextEditor.DoGUI (System.Boolean enableGUI) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:4582)
ScriptInspector.FGTextEditor.DoGUIWithAutocomplete (System.Boolean enableGUI) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:2657)
ScriptInspector.FGTextEditor.OnWindowGUI (UnityEditor.EditorWindow window, UnityEngine.RectOffset margins) (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGTextEditor.cs:2417)
ScriptInspector.FGCodeWindow.OnGUI () (at Assets/Plugins/Editor/ScriptInspector3/Scripts/FGCodeWindow.cs:1547)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at /Users/bokken/build/output/unity/unity/Editor/Mono/HostView.cs:425)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/DockArea.cs:381)
UnityEditor.DockArea.OldOnGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/DockArea.cs:372)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:353)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:663)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:635)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:628)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:594)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/IMGUIContainer.cs:583)
UnityEngine.UIElements.KeyboardEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/Events/KeyboardEventDispatchingStrategy.cs:21)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/EventDispatcher.cs:373)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/EventDispatcher.cs:336)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/EventDispatcher.cs:216)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/Panel.cs:372)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:461)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:209)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/build/output/unity/unity/External/MirroredPackageSources/com.unity.ui/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)

1 Like

I fixed both exceptions.

Thanks @thienhaflash! What would I do without your help? :slight_smile:

1 Like

Extension method did not work so well for me @Flipbookee

1 Like

Thanks! I’ll check that too…

1 Like

@thienhaflash, I cannot reproduce this, maybe because I don’t have enough info about the rest of that code.

Could you make a small test script for me?

This one is hard and only happen once, really weird @Flipbookee
When I try to hit F12 to go to the definition, it actually works. Then when I go back, the ParseTSV method was hightlighted correctly.
I was not able to reproduce even once since then. So this one is kind of minor and I think you can skip it.

1 Like

In unity 6 the window titles are too long Scriptinspector.FGConsole

There is an easy way to fix this,

-Set the title in the OnEnable method to ensure the window has the correct title when the editor reloads.
-Make sure InitializeWindow is called when the window opens for the first time.

1 Like

Oh, you fixed that!?! That’s amazing because I tried something simple, and it didn’t fix it. I thought I’d get back to that later, but now I don’t have to :sweat_smile:

Thanks so much!

1 Like