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

NeovimUnity is not selectable in external tools (Windows)

Open HenrysHouses opened this issue 1 year ago • 9 comments

Im on Unity 6000.0.58f2, Windows, and from what i can tell, there are either a logical error, or a pathing error for windows during initialization. on my system it never detects the NvimUnity install.

Check: https://github.com/apyra/nvim-unity/blob/624b0532bc6971c06eb9ba162c7afef29bb6e87a/Editor/NeovimEditor.cs#L194

  1. it never passes the !editorPath.Contrains("nvimunity")) check. The file name & path is not what it expects as the path is c:\\Program Files (x86)\\NvimUnity\\NvimUnity.exe which can not pass the check.
  2. the initialization here runs even tough it has added it to the external editor tools list, i dont know if this is required but maybe it is.
  3. the EditorLifeTime script is also attempting to call a method that is not static causing a compiler error.

You can tell the package is correctly installed from the neovim settings tab Image

HenrysHouses avatar Nov 05 '25 23:11 HenrysHouses

i fixed it and cant find any other issues, i can create a pull request with the fix but dont have write access

HenrysHouses avatar Nov 06 '25 00:11 HenrysHouses

Just wanted to chime in - this issue is also happening in MacOS. I attached some some screenshots:

Image Image

Unity Version 2022.3.39f1 MacOS 26.0.1

adibellathur avatar Nov 07 '25 18:11 adibellathur

Just wanted to chime in - this issue is also happening in MacOS. I attached some some screenshots:

Image Image Unity Version 2022.3.39f1 MacOS 26.0.1

I hope you are able to fix it through the original comment. all you need to do is fix the if statement i mentioned

HenrysHouses avatar Nov 07 '25 19:11 HenrysHouses

Looking into it now - but I have a bit of a dumb question: does packagemanager let me edit the scripts? and if so where are they i'm strugling to find it

adibellathur avatar Nov 07 '25 19:11 adibellathur

Looking into it now - but I have a bit of a dumb question: does packagemanager let me edit the scripts? and if so where are they i'm strugling to find it

the easiest is to download the raw package files instead of installing it via a git link. then you can edit the scripts manually and place it under "/projectfolder/Packages/com.apyra.nvim-unity/" not /projectfolder/Assets/Packages". if you place it there it will just be in your project which might not be what you want as its gonna be visible for others. hope this is enough for you to figure it out

HenrysHouses avatar Nov 07 '25 19:11 HenrysHouses

If you want to modify the package you can fork clone, work on it add it locally in the package manager then after make a push request.

Obter o Outlook para Androidhttps://aka.ms/AAb9ysg


From: Adithya Bellathur @.> Sent: Friday, November 7, 2025 4:44:12 PM To: apyra/nvim-unity @.> Cc: Subscribed @.***> Subject: Re: [apyra/nvim-unity] NeovimUnity is not selectable in external tools (Windows) (Issue #21)

[https://avatars.githubusercontent.com/u/4942596?s=20&v=4]adibellathur left a comment (apyra/nvim-unity#21)https://github.com/apyra/nvim-unity/issues/21#issuecomment-3504574744

Looking into it now - but I have a bit of a dumb question: does packagemanager let me edit the scripts? and if so where are they i'm strugling to find it

— Reply to this email directly, view it on GitHubhttps://github.com/apyra/nvim-unity/issues/21#issuecomment-3504574744, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BPZ36M56HNQOED5LKIB6TTT33TZAZAVCNFSM6AAAAACLIT77PWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKMBUGU3TINZUGQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

apyra avatar Nov 07 '25 19:11 apyra

got it thanks! i'll give it a go. will the PR fix be merged in eventually?

I will also add on mac I installed the app itself, but haven't actually seen anything run. Waiting for the editor changes to be fixed before I figure out if theres an issue with my installation.

adibellathur avatar Nov 07 '25 19:11 adibellathur

I can PR my fix as soon as I'm back on the computer. I also found another bug that needs fixing

HenrysHouses avatar Nov 07 '25 19:11 HenrysHouses

I had commited a fix, try to reinstall the package...

apyra avatar Nov 07 '25 21:11 apyra