We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When i try to format a PHP file, I always get this error:
[ERROR][2023-11-27 17:59:45] ...-format/init.lua:205 "efm: 0: format for LanguageID not supported: php"
My current config:
lsp_setup = { on_attach = on_attach, init_options = { documentFormatting = true, documentRangeFormatting = true }, filetypes = { "php" }, settings = { rootMarkers = { ".git/" }, languages = { php = { formatCommand = "phpcbf", formatStdin = true, }, }, }, }
❯ whereis phpcbf phpcbf: /usr/bin/phpcbf
NVIM v0.9.4 efm-langserver 0.0.49
NVIM v0.9.4
efm-langserver 0.0.49
The text was updated successfully, but these errors were encountered:
phpcbf has the issue mentioned here:
#183
There's an issue to revise the exit codes: squizlabs/PHP_CodeSniffer#2898
That results in the formatting output being ignored.
I also believe there are some problems in your configuration, php should be a list:
php
-- … php = { { formatCommand = "phpcbf", formatStdin = true }, },
Sorry, something went wrong.
No branches or pull requests
When i try to format a PHP file, I always get this error:
[ERROR][2023-11-27 17:59:45] ...-format/init.lua:205 "efm: 0: format for LanguageID not supported: php"
My current config:
NVIM v0.9.4
efm-langserver 0.0.49
The text was updated successfully, but these errors were encountered: