Open
Description
Code editor
Vim 9.1
Platform
Arch Linux
Version
5.4.3
What steps will reproduce the bug?
- Create a directory
mkdir a
- Move to the directory
cd a
- Create a sub directory whose name begins with "."(dot)
mkdir .a
- In the sub directory, create a symbolic link that refers to root directory
ln -s / .a/a
- Create the minimum vimrc(here it's named reproduce.vim) as follows (I use vim-plug for plugin manager)
call plug#begin()
Plug 'prabirshrestha/vim-lsp'
call plug#end()
if executable('bash-language-server')
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'bash-language-server',
\ 'cmd': {server_info->[&shell, &shellcmdflag, 'bash-language-server start']},
\ 'allowlist': ['sh', 'bash'],
\ })
endif
- Create and open a simple shell script with
vim -u reproduce.vim -N justecho.sh
#!/bin/sh
echo hi
- Just wait a few seconds and the CPU fan starts to spin up
How often does it reproduce? Is there a required condition?
Those steps above always reproduce the issue.
What is the expected behavior?
My CPU is still calm
What do you see instead?
Wasted high CPU and memory usage
Additional information
Renaming the hidden directory to non-hidden directory avoids the phenomenon.
mv .a a
I've found the bug while I was editing a shell script in my home directory which has .wine
directory.
Metadata
Metadata
Assignees
Labels
No labels