-
-
Notifications
You must be signed in to change notification settings - Fork 351
Server seems to be scanning more files than I would expect #2849
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
Comments
I strongly suspect that there may be other hidden files under your Here is a bash command to find out numbers of files in each sub-directories: find . -maxdepth 1 -mindepth 1 -type d | while read dir; do
printf "%-25.25s : " "$dir"
find "$dir" -type f | wc -l
done You may need to found out which sub folders have that many files first 😕 |
@tomlau10 Thanks for the nifty bash script! Here's the output: ./home-manager : 28
./.git : 558
./.direnv : 2 |
That's strange 🤔 Further ideas:
In general luals will scan your workspace folders recursively, and AFAIK the directory of the 1st file that you opened in each neovim session is considered as the workspace. Maybe you can paste your log files here for further debugging, like in this issue #2744 (comment).
(there should be another line for
|
Here are the logs for
Yes! I think this is the culprit I should mention that I'm experiencing this in my project for my dotfiles managed by home-manager, which uses Here are some other interesting logs:
This one seems to be pulling in my config the way that I've defined it.
Figured I'd add links to nix related concepts in the case that you weren't familiar with nix 😅. |
Then I suggest adding that symlink to I am not familiar with neovim or nix (I use vscode). And I have no idea how those In addition, I suggest using a
Maybe if luals found a setting file at your project root, then it will stop looking for other config files in an unexpected directory. |
Yes I added a |
Thanks for this post! I had the same issue, and it almost drove me crazy - it was a symlink that caused an infinite loop. Figured I'd share to save others a headache. When I was searching I tried for terms like "Loading workspace lua_ls stuck". For me it was because of This is how I found all the symlinks in the folder: find . -type l -not -path "*/node_modules/*"
Output ./config/tmux/plugins/tmux-fingers/lib/tablo/lib
./config/tmux/plugins/tmux-fingers/lib/cling/lib
./config/tmux/plugins/tmux-fingers/lib/xdg_base_directory/lib Then I checked one of these folders: ❯ ll config/tmux/plugins/tmux-fingers/lib/tablo
Permissions Size User Group Date Modified Name
drwxr-xr-x@ - dorian staff 3 Feb 09:58 examples/
-lrwxr-xr-x@ - dorian staff 3 Feb 09:58 lib -> ../
drwxr-xr-x@ - dorian staff 3 Feb 09:58 spec/
drwxr-xr-x@ - dorian staff 3 Feb 09:58 src/
.rw-r--r--@ 150 dorian staff 3 Feb 09:58 .editorconfig
.rw-r--r--@ 182 dorian staff 3 Feb 09:58 .gitignore
.rw-r--r--@ 18 dorian staff 3 Feb 09:58 .travis.yml
.rw-r--r--@ 1.1k dorian staff 3 Feb 09:58 LICENSE
.rw-r--r--@ 33k dorian staff 3 Feb 09:58 README.md
.rw-r--r--@ 113 dorian staff 3 Feb 09:58 shard.yml I solved the issue by deleting the tmux-fingers folder and re-installing the plugin. rm -rf config/tmux/plugins/tmux-fingers |
How are you using the lua-language-server?
NeoVim
Which OS are you using?
MacOS
What is the issue affecting?
Other
Expected Behaviour
In response to the following warning:
I've added
workspace.ignoreDir
config like so:The directory itself doesn't have that many files and the outputted directory in the warning matches the one one in the logs:
I'm not sure why I would still be getting this message. I don't think there's an actual bug, but I would love some guidance as to what I might be missing
Actual Behaviour
I continue to receive the same warning.
Reproduction steps
Configure
lua_ls
The text was updated successfully, but these errors were encountered: