Skip to content
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

lazydev: Lua no workspace found #11

Open
practicalli-johnny opened this issue Aug 1, 2024 · 5 comments
Open

lazydev: Lua no workspace found #11

practicalli-johnny opened this issue Aug 1, 2024 · 5 comments
Assignees

Comments

@practicalli-johnny
Copy link
Contributor

practicalli-johnny commented Aug 1, 2024

It should be safe to ignore this warning

When updating astro directly from the command line, lazydev.nvim reports an error with workspace not found

astro +:Lazy update

Error reported via Astro Notifications

No **LuaLS** workspace found.
Use `:LazyDev lsp` to see settings of attached LSP clients.

Screenshot:

image

Assumption

As there are no files open then there is no well defined project or 'workspace' so LSP doesnt know what to do.

This only happened 1st August, so perhaps lazydev.nvim is a new package and would benefit from some config.

Running :LazyDev lsp as the notification suggested returns an empty notification (assumption: there is no file so no associated LSP mode, so no LSP servers to report, hence an empty notification. If the command was failing, I assume an error would be shown or no notification at all).

@practicalli-johnny
Copy link
Contributor Author

AstroNvim has replaced neodev.nvim with lazydev.nvim

Changelog: https://github.com/AstroNvim/AstroNvim/releases/tag/v4.22.0
Commit: AstroNvim/AstroNvim@0126d44

@practicalli-johnny
Copy link
Contributor Author

:LazyDev lsp when open in a Clojure workspace identifies the correct LSP server

image

@carlinhoshk
Copy link

Image

How did you make it consider the workspace in a project?

I mean, mine doesn't work even when I create an empty file.

I'm using lazyvim. Is there a way to disable this option? Or how can I configure it? Before, I just downloaded it and put it in my nvim folder and it worked normally. Why doesn't it work automatically now?

@practicalli-johnny
Copy link
Contributor Author

practicalli-johnny commented Mar 11, 2025

I don't have a fix for this issue which only occurs when running Neovim headless.

I avoid the issue by running neovim first and then running the Lazy update.

I only used LazyVim briefly and back in 2023, so not familiar with that config.

Astro is based on AstroNvim

@practicalli-johnny
Copy link
Contributor Author

I do not use Lazy plugin manager in Neovim headless mode (and don't recommend that approach)

TODO: update the install guide to mention this limitation

https://practical.li/neovim/install/neovim/#install-neovim-plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants