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
Mac: No code competion or assistance. OmniSharp failed to update project that is not loaded. #144
Comments
Can you try to run |
Ran
If I try to double click Program.cs to open it, the omniSharp console states:
|
I can reproduce it on Windows. It's a blocker for next release. |
Signed-off-by: Mickael Istria <mistria@redhat.com>
I've rolled-back to another version of OmniSharp that doesn't have dotnet/vscode-csharp#2234 . Can you please give it a try, installing from http://download.eclipse.org/acute/snapshots |
I've tried this build locally, and it fixes the issue. I'm closing this as resolved, feel free to reopen if it's still failing for you. |
I tried to update ACute, but it is still coming up as 0.2.0.201809131513. |
Ok. Can you please mention which OS you're running, what's your |
Versions:
Is the Omnisharp in .metadata/.plugins/org.eclipse.acute/omnisharp-roslyn somehow modified or could I try downloading a particular release to replace it? |
It's a regular omnisharp, so you can try this with other apps, or try other omnisharp with this app. |
I tried to update ACute, but it is still coming up as 0.2.0.20180913151
Can you restart the IDE? Content of update site is cached in memory and
cache isn't flushed often. A restart guarantees cache is dropped and sites
are really read again.
…--
Mickael Istria
Eclipse IDE <https://www.eclipse.org/downloads/eclipse-packages/>
developer, for Red Hat Developers <https://developers.redhat.com/>
|
I've quit and restarted Eclipse, but it's still showing that 0.2.0.20180913151 is the latest and already installed. I will try using the v1.30.1 omnisharp-roslyn/release in metadata/.plugins/org.eclipse.acute/omnisharp-roslyn to see if that works. |
Using the version of ACute from 20180913 (still not seeing a new version) and I tried v1.30.1 and v1.30.0. First, I quit Eclipse, removed the omnisharp-roslyn folder. I extracted omnisharp-osx.tar.gz, and renamed the folder to omnisharp-roslyn and move it to the .metadata/.plugins/org.eclipse.acute/ folder. And with both version, I get the same as the one that was generated with ACute. |
Hi @AmigaAbattoir. I'm interested in trying this out on a Mac also but am a little uncertain about setting up pre-reqs. You mentioned you are using
Are you using .NET Core as described here? |
I installed the .NET Core SDK from https://dotnet.microsoft.com/download Unfortunately, I could not get aCute running on my Mac. I did, however, end up paying for CodeMix, and I am able to edit C# with code completion for Unity projects in Eclipse. I would still like to get aCute running, since with CodeMix acts more like an Eclipse replacement than nicely integrating into it. |
AFAIK, none of the current active contributors to aCute owns a Mac totry this. If you can try to debug aCute that'd be great. |
Fresh copy of 2018-12, and aCute from http://download.eclipse.org/acute/snapshots. I try importing a project from MSDN Basic calculator in C# by using Import Projects from File System or Archive. Go into the Program.cs file and try to edit, I forgot to set the "dotnet path"
I then set the path, reopen Eclipse. When I looked at the Console I did find this error:
I figured I would try an new .NET project (a C# console app). When it's created, console states:
In the metadata/.log file, I did find this error:
|
Is this file existing in the project? Is it a recent version of .NET Core you're using? |
That project was just created and it contains the file. It's contents are: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
</Project> dotnet version is 2.1.504 output from
|
Please have a look at dotnet/msbuild#2532 (comment) as possible workaround, and other comments on the issue that give hints about what can be the root cause (ie why MSBuild cannot properly detect project). |
So I tried from terminal changing my path with: and then launching Eclipse from that terminal: and I got code completion. I still can't just open Eclipse and have aCute work. |
Sorry, i can't help more with such mac-specific issues, especially since you found a reliable workaround. |
When trying to ctrl+Space to get code completion, nothing appears. Or If I try to cmd+Click on something like
Console.WriteLine("Hello World!");
I get the following error.org.eclipse.acute.OmniSharp Console states:
I also noticed this message, but not sure if it's related:
The text was updated successfully, but these errors were encountered: