Giter Site home page Giter Site logo

Comments (12)

nikolightsaber avatar nikolightsaber commented on June 27, 2024 1

I compiled from source again and it seems to work fine.

Might I suggest a build from source section in the README I used:

dotnet build, but with that you need all the dll's

For one package I used:

dotnet publish -r linux-x64 -p:PublishSingleFile=true -p:UseAppHost=true --self-contained false

This project works really good as an LSP for me. For work we have a huge project with the whole range of Microsoft Targets,
From NET 5.0 to .NET standard 2.0 to windows only .NET Framework 4.6.1. Almost all LSP actions across projects work and inside a single file everything always works in Linux with neovim.

Thanks again for the help 😄

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024 1

I have released a new version on nuget which should fix this issue:

from csharp-language-server.

nikolightsaber avatar nikolightsaber commented on June 27, 2024

I build this project from source linked it to neovim lsp and it seems to have fixed it I think it is the fix in #45

Would it be possible to make a tag ?

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

I started getting the same thing just recently (a couple of days agao), on macOS though

this looks to me like SDK breakage or something to me:

the cause (probably) is this:

do you have .net 7 previews installed by chance? like I do..

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

also, I am not sure if #45 fixes it, because now I'm getting this:

LSP :: csharp-ls: msbuildWorkspace.Diagnostics: [Failure] Msbuild failed when processing the file '/Users/bob/src/test-csharp/project2/project2.csproj' with message: The SDK 'Microsoft.NET.Sdk' specified could not be found.  /Users/bob/src/test-csharp/project2/project2.csproj
LSP :: csharp-ls: msbuildWorkspace.Diagnostics: [Failure] Msbuild failed when processing the file '/Users/bob/src/test-csharp/project1/project1.csproj' with message: The SDK 'Microsoft.NET.Sdk' specified could not be found.  /Users/bob/src/test-csharp/project1/project1.csproj

for my test solution, and none of the projects load properly

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

I also see more related issues here:

some people say the cause is:

UPDATE:

  • ok, I think I fixed the issue with 59e00b4

you need to build csharp-ls from source or wait a bit until I release a new version

from csharp-language-server.

nikolightsaber avatar nikolightsaber commented on June 27, 2024

Hi thanks for the fast response !

This confirms my feeling it was tied to a sudo apt upgrade and dotnet versions.

For your info I don't have dotnet 7 previews installed. I'm on a simple ubunu 20.04.

I will build form source for.

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

great to hear!

could you make a PR though? I am not sure what changes you are proposing, and maybe you could write a PR with the changes proposed yourself?

will close this issue once I have new version released

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

@nikolightsaber just a slight off-topic question–do you use razor? I am thinking of developing support for cshtml, but not sure if that is very much a popular request

from csharp-language-server.

nikolightsaber avatar nikolightsaber commented on June 27, 2024

Good idea I will make a PR.

No I don't use razor at the moment. I also have no idea how much it is used. I hear it is pretty cool though.

from csharp-language-server.

nikolightsaber avatar nikolightsaber commented on June 27, 2024

Confirm it working for me with 0.5.6 you can close the issue for me

Thanks again,

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

great!

from csharp-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.