Comments (13)
Hi there, I'll look into it. What Nvim, Laravel & PHP versions are you using? Have you installed all Language Servers via Mason?
My blade files usually only include Blade Directives and HTML, so i'm not sure about plain PHP, but at least Tailwind Class sorting should definitely work if you have setup everything correctly.
from lazyvim.
Greetings, these are all the information that you asked me for, all programs are in the most recent stable version.
All highligths, snippets, etc work on php only files, such as routes, models....
On blade files tho php, html, blade directives and tailwing classes don't
This is a screenshot of lazyvim mason window, is it correct?
https://imgur.com/gallery/vxKeh5T
> php --version
PHP 8.2.8 (cli) (built: Jul 16 2023 11:01:56) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.8, Copyright (c) Zend Technologies
with Zend OPcache v8.2.8, Copyright (c), by Zend Technologies
> nvim --version
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/__w/neovim/neovim/build/nvim.AppDir/usr/share/nvim"
Run :checkhealth for more info
> php artisan --version
Laravel Framework 10.17.1
from lazyvim.
Well that's interesting. Can you also run the :checkhealth
command?
Did you copy some of my settings or are you using my config as a base?
from lazyvim.
I installed the repository settings alone, i did not change anything.
Checkhealth log
https://pastebin.com/0ELArMM0
lsp warn log
https://pastebin.com/4Ekw5vG7
from lazyvim.
Well from checkhealth it seems everything should work. The issue seems that the files cannot be written. I have to be honest and tell you that I don't have a concrete idea what the issue is.
Looking at the message:
[WARN][2023-08-04 15:37:40] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/example-app/resources/views/welcome.blade.php"
My first (uneducated) guess would be file permissions, any chance that might be it?
from lazyvim.
that warn was indeed because of a permission issue, however after fixing it another issue occures
[START][2023-08-05 20:26:32] LSP logging initiated
[WARN][2023-08-05 20:26:32] ...lsp/handlers.lua:137 "The language server copilot triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2023-08-05 20:26:33] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php"
[WARN][2023-08-05 20:26:33] ...lsp/handlers.lua:537 "textDocument/didOpen ignored. file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php has unsupported language ID blade."
[WARN][2023-08-05 20:26:33] ...lsp/handlers.lua:537 "file:///home/oxio2/progamer/laravel/example-app/vendor/fakerphp/faker/src/Faker/Provider/nl_BE/Text.php is over the maximum file size of 1000000 bytes."
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[WARN][2023-08-05 20:29:21] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 13): "
[START][2023-08-05 20:30:55] LSP logging initiated
[WARN][2023-08-05 20:30:55] ...lsp/handlers.lua:137 "The language server copilot triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[START][2023-08-05 20:31:12] LSP logging initiated
[WARN][2023-08-05 20:31:12] ...lsp/handlers.lua:137 "The language server copilot triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2023-08-05 20:31:12] ...lsp/handlers.lua:537 "textDocument/didOpen ignored. file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php has unsupported language ID blade."
[WARN][2023-08-05 20:31:12] ...lsp/handlers.lua:537 "file:///home/oxio2/progamer/laravel/example-app/vendor/fakerphp/faker/src/Faker/Provider/nl_BE/Text.php is over the maximum file size of 1000000 bytes."
[WARN][2023-08-05 20:31:15] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php"
[WARN][2023-08-05 20:31:15] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php"
[ERROR][2023-08-05 20:31:19] .../vim/lsp/rpc.lua:734 "rpc" "node" "stderr" "[ERROR] [auth] [2023-08-05T18:31:19.277Z] Failed to send notification result to GitHub: 403 \n"
[WARN][2023-08-05 20:31:20] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php"
[WARN][2023-08-05 20:31:20] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php"
[WARN][2023-08-05 20:31:21] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php"
[WARN][2023-08-05 20:31:22] ...lsp/handlers.lua:537 "Failed to apply changes to file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php"
[WARN][2023-08-05 20:31:29] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 14): "
[WARN][2023-08-05 20:31:29] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 14): "
[WARN][2023-08-05 20:31:29] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 14): "
[WARN][2023-08-05 20:31:29] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 14): "
[WARN][2023-08-05 20:31:29] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 14): "
[START][2023-08-05 20:33:06] LSP logging initiated
[WARN][2023-08-05 20:33:06] ...lsp/handlers.lua:137 "The language server copilot triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2023-08-05 20:33:06] ...lsp/handlers.lua:537 "textDocument/didOpen ignored. file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php has unsupported language ID blade."
[WARN][2023-08-05 20:33:06] ...lsp/handlers.lua:537 "file:///home/oxio2/progamer/laravel/example-app/vendor/fakerphp/faker/src/Faker/Provider/nl_BE/Text.php is over the maximum file size of 1000000 bytes."
[START][2023-08-05 20:33:38] LSP logging initiated
[WARN][2023-08-05 20:33:38] ...lsp/handlers.lua:137 "The language server copilot triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2023-08-05 20:33:39] ...lsp/handlers.lua:537 "textDocument/didOpen ignored. file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php has unsupported language ID blade."
[WARN][2023-08-05 20:33:39] ...lsp/handlers.lua:537 "file:///home/oxio2/progamer/laravel/example-app/vendor/fakerphp/faker/src/Faker/Provider/nl_BE/Text.php is over the maximum file size of 1000000 bytes."
[WARN][2023-08-05 20:34:31] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 12): "
[WARN][2023-08-05 20:34:31] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 12): "
[WARN][2023-08-05 20:34:31] .../lua/vim/lsp.lua:1637 "buf_attach_client called on unloaded buffer (id: 12): "
[START][2023-08-05 20:35:17] LSP logging initiated
[WARN][2023-08-05 20:35:17] ...lsp/handlers.lua:137 "The language server copilot triggers a registerCapability handler despite dynamicRegistration set to false. Report upstream, this warning is harmless"
[WARN][2023-08-05 20:35:18] ...lsp/handlers.lua:537 "textDocument/didOpen ignored. file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php has unsupported language ID blade."
[WARN][2023-08-05 20:35:18] ...lsp/handlers.lua:537 "file:///home/oxio2/progamer/laravel/example-app/vendor/fakerphp/faker/src/Faker/Provider/nl_BE/Text.php is over the maximum file size of 1000000 bytes."
The important warn seems to be
[WARN][2023-08-05 20:35:18] ...lsp/handlers.lua:537 "textDocument/didOpen ignored. file:///home/oxio2/progamer/laravel/example-app/resources/views/welcome.blade.php has unsupported language ID blade."
there seem to be missing a plugin that takes care of blade identified files?
from lazyvim.
Hmmm I do know that by default, blade is not supported. But: I do have included a plugin that should fix that, see here.
When you execute :echo &filetype
in a blade file, do you get blade
as the output?
from lazyvim.
the vim-blade
plugin is installed and the :echo $filetype
returns blade
as the output
from lazyvim.
Well that's really weird then. As the LSP plugin I/LazyVim use (null-ls), which this problem seems to stem from, is archived in four days and I couldn't find any lead by googling the error message, I'll have to fold here.
I think I will wait for what new LSP plugin LazyVim adopts and then transfer the config to that. I know that that surely is not a satisfying answer for you, but I cannot replicate the problem locally and thus have no chance of efficiently debugging this. At the moment I am strapped for time, so if i come back around to it, I'll try to debug further - but that timeframe is probably a few months in the future and at that point I expect null-ls to be already replaced.
Thanks for bringing the problem to my attention and your cooperation in trying to debug! If you find the issue yourself, I'd love to hear the solution :)
from lazyvim.
Thank you very much for all the help, i will stay updated on the issue :)
from lazyvim.
@oxio2 try with the new version now, null-ls is replaced by a fork called none-ls. Check this commit for what to do to migrate.
Maybe it works now!
from lazyvim.
Another bump, @oxio2 ! Formatting is now running via conform, good chance it all works now! Check out my migration branch. I'll close this when I merge the branch.
from lazyvim.
Formatting now runs over conform.nvim, closing this.
from lazyvim.
Related Issues (8)
- Intelephense: method does not exist for models HOT 3
- Blade tree sitter failing HOT 1
- Error User Autocommands for "VeryLazy" HOT 3
- Not a real issue but I am really stuck at this HOT 2
- blade lsp is not activating HOT 5
- Blade TreeSitter Highlighting HOT 3
- Certain Laravel methods are flagged as undefined HOT 5
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 lazyvim.