Giter Club home page Giter Club logo

Comments (11)

YuukanOO avatar YuukanOO commented on July 1, 2024 1

Oh I see! By looking at hx --health, I wrongly assumed they were the same but looks like golangci-lint-langserver depends on golangci-lint so both needs to be installed for this to work.

Sorry for my mystake. Feel free to close the issue.

from helix.

komogortzef avatar komogortzef commented on July 1, 2024 1

And --health is reporting that it can find everything?

It's all right, it's working. I deleted it and then installed it from the Fedora repository. Thank you...

from helix.

TornaxO7 avatar TornaxO7 commented on July 1, 2024

On a fresh helix installation, after installing golangci-lint-langserver with go install github.com/nametake/golangci-lint-langserver@latest

Are you sure that go install installs the program to a path where it's inside $PATH?
I'm not a go-developer but a quick google search says that GOBIN per default is set to ~/go which isn't part of $PATH per default, hence helix isn't able to find the program as well.

from helix.

YuukanOO avatar YuukanOO commented on July 1, 2024

It's in my PATH, same as gopls but the executable name is golangci-lint-langserver:

image

I can confirm I can call golangci-lint-langserver without issue from my terminal but golangci-lint does not exist obviously.

from helix.

TornaxO7 avatar TornaxO7 commented on July 1, 2024

Hm... I see, it looks like that the default commands are somehow different (https://github.com/helix-editor/helix/blob/master/languages.toml#L139-L143) but I don't know why. Maybe someone else knows more than me or this should be fixed. @kirawi may I ask for your opinion here? Should we just update the command entry of language-server.golangci-lint-lsp.config?

from helix.

David-Else avatar David-Else commented on July 1, 2024

It was added in #8656 , perhaps the author @angaz can comment?

from helix.

angaz avatar angaz commented on July 1, 2024

Did you install golangci-lint?

from helix.

komogortzef avatar komogortzef commented on July 1, 2024

Oh I see! By looking at hx --health, I wrongly assumed they were the same but looks like golangci-lint-langserver depends on golangci-lint so both needs to be installed for this to work.

Sorry for my mystake. Feel free to close the issue.

Can you give me your languages.toml?

from helix.

angaz avatar angaz commented on July 1, 2024

Oh I see! By looking at hx --health, I wrongly assumed they were the same but looks like golangci-lint-langserver depends on golangci-lint so both needs to be installed for this to work.

Sorry for my mystake. Feel free to close the issue.

Can you give me your languages.toml?

It would be the default one. What problem are you trying to solve? Maybe you need to update to the latest version of Helix.

from helix.

komogortzef avatar komogortzef commented on July 1, 2024

Oh I see! By looking at hx --health, I wrongly assumed they were the same but looks like golangci-lint-langserver depends on golangci-lint so both needs to be installed for this to work.
Sorry for my mystake. Feel free to close the issue.

Can you give me your languages.toml?

It would be the default one. What problem are you trying to solve? Maybe you need to update to the latest version of Helix.

I would like golangci-lint to output messages in the editor according to the settings in golanci.yml, but this does not happen. I have the latest version of Helix.
golangci-lint and golangci-lint-langserver are installed. everything is fine with $PATH

from helix.

angaz avatar angaz commented on July 1, 2024

And --health is reporting that it can find everything?

from helix.

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.