bash-language-server
A language server for Bash (by bash-lsp)
goimports
[mirror] Go Tools (by golang)
Our great sponsors
bash-language-server | goimports | |
---|---|---|
23 | 46 | |
1,899 | 7,185 | |
3.2% | 1.2% | |
9.4 | 9.9 | |
3 days ago | about 14 hours ago | |
TypeScript | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bash-language-server
Posts with mentions or reviews of bash-language-server.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-09-22.
-
Being a bash developer in the 21st century
In neovim I would recommend setting shellcheck with null.ls or using the bash language server: https://github.com/bash-lsp/bash-language-server
both work really well
- Oils 0.17.0 – YSH Is Becoming Real
-
The Case for Bash (2021)
Also maybe check out the bash language server.
-
Eglot or LSP complete in shell?
In that case, I think Eglot supports this language server: https://github.com/bash-lsp/bash-language-server out of the box but I've never tried it.
- How often do you google or search for Bash commands/syntax?
-
similar to shellcheck?
There are also: - shfmt - sh - bash language server - bashate
-
How to improve your vim/nvim coding experience with vim-easycomplete?
Shell: bash-language-server required.
-
Ask HN: Let's Build CheckStyle for Bash?
- Bash Language Server: https://github.com/bash-lsp/bash-language-server
-
Common shell script mistakes (2008)
As well, having a bash language server enabled (https://github.com/bash-lsp/bash-language-server) helps immensely.
-
How can I debug why an LSP is crashing?
I have a very similar issue with bash-ls.
goimports
Posts with mentions or reviews of goimports.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-12.
-
How to find all methods which return struct "Foo" (vscode or cli)
Just a guess, but it might be somewhere in gopls https://github.com/golang/tools/tree/master/gopls/doc On this page https://langserver.org/ it says it should support "finding references"
- GitHub - orijtech/structslop: structslop is a static analyzer for Go that recommends struct field rearrangements to provide for maximum space/allocation efficiency.
-
betteralign - structs field alignment static analyzer for Go
For more gopls settings, you can see files in this folder: https://github.com/golang/tools/tree/master/gopls/doc
-
Linter for explicit hint to interface which gets implemented.
But finding which interface is satisfied by a type is trivial anyways through gopls which integrates conveniently into any LSP supporting IDE (such as VSCode and Goland).
-
LMDE5 + VSCodium setup issues
Error loading workspace: gopls was not able to find modules in your workspace. When outside of GOPATH, gopls needs to know which modules you are working on. You can fix this by opening your workspace to a folder inside a Go module, or by using a go.work file to specify multiple modules. See the documentation for more information on setting up your workspace: https://github.com/golang/tools/blob/master/gopls/doc/workspace.md.
-
How to use AWS SAM with Go in Visual Studio Code
The ResponseEvent struct. The reason for this is that the IDE has set the GOPATH to the root of the project. Therefor the imports are not correct. By using Workspace Folders you can change this behavior so that each folder has it’s own scope.
-
Is there any way to autocomplete language functions? For example, show things like fmt.Printf or fmt.Println when writing fmt.Print and pressing the autocomplete key.
Here are a few resources to get you started: 1. https://github.com/neovim/nvim-lspconfig 1. https://github.com/golang/tools/tree/master/gopls 1. https://github.com/williamboman/nvim-lsp-installer
-
Using multiple repositories in your CI builds
Like with the previous post, we're going to use djinn-ci/imgsrv as an example of using multiple sources in a build manifest. If we look at the top of the manifest file, we will see that it requires three repositories to build. These are, the source code for djinn-ci/imgsrv itself, golang/tools, and valyala/quicktemplate, defined like so,
-
Go Linux/Debian users which is the apt command to install Go via terminal?
Other useful solutions: https://github.com/golang/tools/tree/master/cmd/getgo https://go.dev/doc/manage-install
-
LSP codelens and inlayhints
I was reading about some of the gopls settings and ended up enabling a few, especially about codelens and inlayhints, only to come to the realization that more work is needed to make them work.
What are some alternatives?
When comparing bash-language-server and goimports you can also consider the following projects:
gofumpt - A stricter gofmt
ShellCheck - ShellCheck, a static analysis tool for shell scripts
nvim-lspconfig - Quickstart configs for Nvim LSP
goreturns - A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
GoLint - [mirror] This is a linter for Go source code. (deprecated)
staticcheck
golines - A golang formatter that fixes long lines
go-checkstyle - checkstyle for go
LSP-bash - Bash support for Sublime's LSP plugin provided through bash-language-server.
Go Metalinter
GoCover.io - GoCover.io offers the code coverage of any golang package as a service.