Skip to content

c# Script not opening. #11

@ShroomySquid

Description

@ShroomySquid

I'm having trouble making nvim-unity work. It run but when I start the project it throw this error:

[NvimUnity] Failed to add the project to the sln file: ApplicationName='dotnet', CommandLine='sln /Users/fbarrette/Desktop/Unity Tutorials/Kitchen Chaos/Kitchen Chaos Tutorial/Kitchen Chaos Tutorial.sln add /Users/fbarrette/Desktop/Unity Tutorials/Kitchen Chaos/Kitchen Chaos Tutorial/Assembly-CSharp.csproj', CurrentDirectory='', Native error= Cannot find the specified file
UnityEngine.Debug:LogError (object)
NvimUnity.Project:GenerateSolution () (at ./Library/PackageCache/com.apyra.nvim-unity@22aa4a977bbe/Editor/Project.cs:101)
NvimUnity.Project:GenerateAll () (at ./Library/PackageCache/com.apyra.nvim-unity@22aa4a977bbe/Editor/Project.cs:56)
NvimUnity.NeovimEditor:SyncAll () (at ./Library/PackageCache/com.apyra.nvim-unity@22aa4a977bbe/Editor/NeovimEditor.cs:154)
UnityEditor.CodeEditorProjectSync:SyncEditorProject () (at /Users/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditorProjectSync.cs:21)

It also throw this message:
[NvimUnity] Succesfully generated csproj and sln files
UnityEngine.Debug:Log (object)
NvimUnity.Project:GenerateAll () (at ./Library/PackageCache/com.apyra.nvim-unity@22aa4a977bbe/Editor/Project.cs:57)
NvimUnity.NeovimEditor:SyncAll () (at ./Library/PackageCache/com.apyra.nvim-unity@22aa4a977bbe/Editor/NeovimEditor.cs:154)
UnityEditor.CodeEditorProjectSync:SyncEditorProject () (at /Users/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditorProjectSync.cs:21)

When I try to open a c# script it doesn't open it, and throw this message:
[NvimUnity] Socket file does not exist: /Users/fbarrette/.cache/nvimunity.sock
UnityEngine.Debug:Log (object)
NvimUnity.SocketChecker:IsSocketActive (string) (at ./Library/PackageCache/com.apyra.nvim-unity@22aa4a977bbe/Editor/SocketChecker.cs:30)
NvimUnity.NeovimEditor:OpenProject (string,int,int) (at ./Library/PackageCache/com.apyra.nvim-unity@22aa4a977bbe/Editor/NeovimEditor.cs:53)
Unity.CodeEditor.CodeEditor:OnOpenAsset (int,int,int) (at /Users/bokken/build/output/unity/unity/Editor/Mono/CodeEditor/CodeEditor.cs:94)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219)

It then proceed to try several terminals.

Any clue what's wrong and how to make it work? Is it normal to regenerate the .snl file everytime I load the project?

I'm on a MacOS Sonoma 14.4 using Unity version 6000.0.55f1, nvim is working fine otherwise and is up to date.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions