Maligan / unity-zed

Zed integration as Unity external script editor
MIT License
21 stars 2 forks source link

Omnisharp fails due to multiple .csproj files #2

Open wassson opened 1 week ago

wassson commented 1 week ago

Thanks for your work on this! I love Zed so it would be ideal to be able to use it with my Unity projects. I am somewhat new to Unity so I'm a bit out of my depth with getting it hooked up with Zed properly.

Were you able to get Omnisharp working in Zed or are you using Zed without it? When I open the any project in Zed (even fresh projects), Omnisharp fails with:

oneshot canceled -- stderr-- Specify which project file to use because this '/path/to/ProjectName' contains more than one project file.

I'll add more detail here as I uncover it.

Maligan commented 5 days ago

Thanks for the report and sorry for the late reply!

I use Unity code to generate single Solution .sln file and multiple Projects .csproj

Omnisharp gets the project folder path as input argument and should detect the .sln file as entry point for itself.

But in your case maybe there are different problems - sln wasn't generated correctly or you have several of them in project root folder.

Can you list contents of your project folder, this will help to investigate the problem.