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

Editor ArgumentNullException on External Tools Window

Open Fireye04 opened this issue 10 months ago • 1 comments

When trying to click the External Tools window, the unity editor throws the following ArgumentNullException:

ArgumentNullException: Value cannot be null.
Parameter name: key
System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) (at <1a795a29c7af4385b159eb69f68237b8>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) (at <1a795a29c7af4385b159eb69f68237b8>: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:163)
Unity.CodeEditor.CodeEditor.GetFoundScriptEditorPaths () (at /home/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:155)
UnityEditor.PreferencesProvider.ReadPreferences () (at /home/bokken/build/output/unity/unity/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:1292)
UnityEditor.PreferencesProvider.OnActivate (System.String searchContext, UnityEngine.UIElements.VisualElement rootElement) (at /home/bokken/build/output/unity/unity/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:275)
UnityEditor.SettingsProvider.Activate (System.String searchContext, UnityEngine.UIElements.VisualElement rootElement) (at /home/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsProvider.cs:145)
UnityEditor.SettingsWindow.ProviderChanged (UnityEditor.SettingsProvider lastSelectedProvider, UnityEditor.SettingsProvider newlySelectedProvider) (at /home/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:358)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /home/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:224)

I'm running NixOS and made a simple derivation for the provided nvimunity.sh file, and it runs without error off my PATH. (as far as I'm aware)

Fireye04 avatar Jan 20 '26 20:01 Fireye04

Got a temporary fix via adding a duplicate script to ~/.local/bin/nvimunity so I reverse engineered the thing & got it to point at my script installation. Patch for Nix support incoming :)

Fireye04 avatar Jan 20 '26 22:01 Fireye04