Skip to content

Tailwind CSS LSP Not Working in Cloned Laravel Project #1322

New issue

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

Open
end3r-man opened this issue Apr 18, 2025 · 6 comments · May be fixed by #1335
Open

Tailwind CSS LSP Not Working in Cloned Laravel Project #1322

end3r-man opened this issue Apr 18, 2025 · 6 comments · May be fixed by #1335

Comments

@end3r-man
Copy link

What version of VS Code are you using?

Im using neovim

What version of Tailwind CSS IntelliSense are you using?

v0.14.15

What version of Tailwind CSS are you using?

v4.1.4

What package manager are you using?

npm

What operating system are you using?

linux

Tailwind config

@import url('https://fonts.googleapis.com/css2?family=Manrope:[email protected]&display=swap');
@import "tailwindcss";

@plugin "@iconify/tailwind4";
@plugin "daisyui" {
  themes: light --default;
}

@source "../views";
@source "../views/**/*.blade.php";
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

Nvim Code settings

			tailwindcss = {
				filetypes = {
					"html",
					"blade",
					"javascript",
					"typescript",
					"vue",
					"javascriptreact",
					"typescriptreact",
				},
			},

Describe your issue

i'm encountering an issue with the Tailwind CSS Language Server Protocol (LSP) in my Laravel project. Here's a breakdown of the problem:

Issue Description:

When I create a new Laravel project with Tailwind CSS v4, the Tailwind CSS LSP works perfectly. I can get autocompletion without any issues.

However, when I clone an existing Laravel project from a Git repository that also uses Tailwind CSS v4, the Tailwind CSS LSP stops working. I don't get any autocompletion suggestions.
@thecrypticace
Copy link
Contributor

If it works in a new project but does not in a cloned project the difference is related to the content / files in the cloned project.

Is it possible to provide the project?

@end3r-man
Copy link
Author

If it works in a new project but does not in a cloned project the difference is related to the content / files in the cloned project.

Is it possible to provide the project?

ill share a example repo

@end3r-man
Copy link
Author

@thecrypticace
Copy link
Contributor

thecrypticace commented Apr 22, 2025

fwiw this project works fine in Zed (using our language server) and in VSCode. This is possibly the same issue as #1323 since they're having issues with Neovim and our language server as well.

I'm not sure what that issue is. Is it possible for you to show logs produced by the language server (window/logMessage calls from the protocol) in your nevoim setup?

@thecrypticace
Copy link
Contributor

Oh something that also would be helpful is knowing what Node.js version you're on

@end3r-man
Copy link
Author

Oh something that also would be helpful is knowing what Node.js version you're on

node v23.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants