-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server is not started with solution file and instead looks in current working directory for solution #473
Comments
Hi @Ruin0x11 . I have noticed it myself. We probably need to get rid of sln file selector when starting up and just use projectile/git root to set cwd for the server. Thats what VS Code does, for example. |
@Ruin0x11, could you check if the latest version (due to be released in MELPA in a couple of hours) fixes the issue? I have changed omnisharp-emacs code so it does not ask for solution file anymore and will use the directory provided by |
I just updated and now I'm getting errors about unloaded projects. I had to change some things as the source is confidential, but the overall root project directory is Usually when I loaded the project before I would directly load Also I tried running the server with a buffer visiting the project root and there was no difference. Also, the project root that
|
@Ruin0x11 I see you have If I understand correctly, the latest omnisharp-roslyn server versions do not require .sln file to be present and it probably ignores them. |
After upgrading, there is no noticeable difference in the log output. Finding references still doesn't work either. |
It seems omnisharp-roslyn server is not able to load your project(s). This is most probably a server issue since it appears that .csproj files are discovered but not loaded. What kind of framework/runtime/sdk do you use for your projects? Is it .net framework 4.x or .net core, or Unity? If all else fails you may want to register an issue with https://github.com/OmniSharp/omnisharp-roslyn team–they maintain the actual omnisharp-roslyn server which omnisharp-emacs uses. |
Strangely I could load the same project with no issues using the previous version of The projects use |
I'm having the same problem, I have a After the last update my setup is a no-go apparently. |
Otherwise I will need to check what has changed in recent omnisharp-roslyn versions.. Could any of you check how VSCode behaves in your case? As it uses the same omnisharp-roslyn server underneath. |
Using prefix arg to select the directory didn't work :( I don't have VS Code, if not using Emacs I go full VS201X. |
Could you still try to use VSCode? Because VisualStudio uses completely different toolset than VSCode for C#, whereas if VSCode works for you then I am sure I can get omnisharp-emacs to work as well, as the underlying omnisharp-roslyn server binary is the same..
Saulius Menkevičius
… Am 25.04.2019 um 19:27 schrieb Sebastián Monía ***@***.***>:
Using prefix arg to select the directory didn't work :(
I don't have VS Code, if not using Emacs I go full VS201X.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#473 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAEJSZETQ7SY5ZTWEW3NZNLPSHLXDANCNFSM4HBQQYTA>.
|
Updated to the latest server and now it works! Which makes me think it's time to bump the minimum server version :) thanks for helping us getting this figured out! @Ruin0x11 grab the latest server from here: https://github.com/OmniSharp/omnisharp-roslyn/releases |
@sebasmonia Thats great! Btw, you are using the manually-downloaded-server setup, right? Otherwise |
Yes I download it manually and set the path in my init. I do not overwrite the minimum server version though.
…________________________________
From: Saulius Menkevičius <[email protected]>
Sent: Thursday, April 25, 2019 10:43:30 AM
To: OmniSharp/omnisharp-emacs
Cc: Sebastián Monía; Mention
Subject: Re: [OmniSharp/omnisharp-emacs] Server is not started with solution file and instead looks in current working directory for solution (#473)
@sebasmonia<https://github.com/sebasmonia> Thats greate! Btw, you are using the manually-downloaded-server setup, right? Otherwise omnisharp-expected-server-version variable should have triggerred omnisharp-start-omnisharp-server to ask you to install an updated version automatically. Unless you have omnisharp-expected-server-version overriden to in your .emacs.d/init.el
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#473 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAMTJEJLXNHIP5BVKDHVUHLPSHNTFANCNFSM4HBQQYTA>.
|
I reinstalled the server with the latest version and things seem to work now, but only if I manually specify the working directory of the project every time. I think this should at least be the default for solutions with subprojects. |
When starting the server with a
sln
file, the solution will not be opened unlessomnisharp-start-omnisharp-server
is run with the working directory the same as the directory containing thesln
.Here is an example if the solution were
d:/build/project/project.sln
and the current window when runningomnisharp-start-omnisharp-server
has a buffer ford:/build/project/subfolder/file.cs
.Server version is
v1.32.11
.omnisharp-emacs
version is20190228.622
.The text was updated successfully, but these errors were encountered: