Comments (6)
Hey
Unfortunately, efm only runs on a single file. That's what it was designed to do :(
Golangci-lint behaves very differently to any other normal linters out there.
Can you provide me with a sample go repo with some steps so I can try it out and see if there is some alternative that I can give for your specific usecase?
from efmls-configs-nvim.
Hey @creativenull , I tried linting the following file via neovim: https://github.com/pjkaufman/dotfiles/blob/cf114c605385bba6eafb6c13dfbd08cf5c8e53fc/go-tools/ebook-lint/cmd/epub/compress-and-lint.go
Is that something that you can use to reproduce this issue or do I need to try to break something out into its own repo?
from efmls-configs-nvim.
Yeah I think that should be good, I see go-tools is the go project so I can start from there.
In the meantime, maybe try out null-ls (https://github.com/nvimtools/none-ls.nvim) plugin or my other plugin diagnosticls-configs (https://github.com/creativenull/diagnosticls-configs-nvim) and see if that works.
I see that they use the json format from golangci-lint, which efm cannot parse at this moment.
from efmls-configs-nvim.
I see that efm runs on the root directory for C#. Is that a one off or could that kind of thing be replicated if I were to add the ability to get the folder of the current file to https://github.com/mattn/efm-langserver/blob/d1e53448d16a2b20440faab406b625efe9792653/langserver/handler.go#L705-L708?
from efmls-configs-nvim.
Yes, that is correct efm will run on the project root. Just that efm will inject ${INPUT}
at the end of a command if no file was specified. That is why it keeps giving you errors based on the file.
So I've tried out your project and it doesn't seem like it works as it was intended by efm.
However, this works as expected with null-ls so I'd say you will have to go with that for now, sorry this one didn't work out for you.
When I have time I will look into contributing to the efm repo for this feature.
from efmls-configs-nvim.
Gotcha. Thanks for the response and taking a look into this!
from efmls-configs-nvim.
Related Issues (20)
- Formatter does not reflect changes to the buffer HOT 2
- Any interest in merging support for sql-formatter? HOT 5
- Provide all the tools and their configuration for relevant filetypes as a provider
- Feature request: Use mason-installed, non pip/node executables when available HOT 10
- [ERROR][2023-10-10 13:12:33] .../vim/lsp/rpc.lua:675 "rpc" "/home/w/.local/share/nvim/mason/bin/efm-langserver" "stderr" "2023/10/10 13:12:33 nil --color Never -: sh:行1: nil:未找到命令\n\n" HOT 4
- `:checkhealth` is broken HOT 6
- Adopt formatter/linter commands from dead `null-ls` HOT 3
- Use project installed ESLint HOT 7
- Prettier config out of date HOT 4
- More declarative approach to settings extra args? HOT 2
- sqlfluff linter config HOT 2
- how to config the swiftformat for efmls? I can't understand different formatter configuration in source code. HOT 5
- Prettier, Prettierd: tabWidth property in the config file's ignored HOT 3
- Unclear how to partially override `efmls-configs` HOT 2
- How to remove stdout ? (Trying to add my custom formatter) HOT 1
- how to set `codespell` for all filetype? HOT 5
- golangci_lint linter not working when used from efmls HOT 2
- ERROR "mcs": No global executable found, check |efmls-configs-issues| for help HOT 8
- Sqlfluff linting does not seem to work HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efmls-configs-nvim.