nvim-unity icon indicating copy to clipboard operation
nvim-unity copied to clipboard

Cant enter certain prefrences after installing the Package

Open LaJony opened this issue 3 months ago • 0 comments

Cant enter in preferences GLCache, External Tools, Colors, Asset Pipeline, General, Scene view. getting in the Unity Console an ArgumantNullException error. when removing the package everything works again.

ArgumentNullException: Value cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) (at <9c9d7808da6a43e3b68409f2b63b3e6f>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) (at <9c9d7808da6a43e3b68409f2b63b3e6f>:0)
Unity.CodeEditor.CodeEditor.AddIfPathExists (System.String name, System.String path, System.Collections.Generic.Dictionary`2[TKey,TValue] list) (at /home/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:162)
Unity.CodeEditor.CodeEditor.GetFoundScriptEditorPaths () (at /home/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:154)
UnityEditor.PreferencesProvider.ReadPreferences () (at /home/bokken/build/output/unity/unity/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:1163)
UnityEditor.PreferencesProvider.OnActivate (System.String searchContext, UnityEngine.UIElements.VisualElement rootElement) (at /home/bokken/build/output/unity/unity/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:251)
UnityEditor.SettingsProvider.Activate (System.String searchContext, UnityEngine.UIElements.VisualElement rootElement) (at /home/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsProvider.cs:140)
UnityEditor.SettingsWindow.ProviderChanged (UnityEditor.SettingsProvider lastSelectedProvider, UnityEditor.SettingsProvider newlySelectedProvider) (at /home/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:302)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203)

i dont know if i did something wrong(all i did is install the package) but this is a weird behavior that shouldn't happen. i did see that issue #34 addressed the null argument but it doesn't seem like the issue was actually solved, this is problematic because i am working with another person who isnt on linux or uses neovim. I asked him to try the package he couldn't even enter preferences and he had to end the task and enter the project again. i hope this bug report will help you fix it.

LaJony avatar Sep 03 '26 14:09 LaJony