Closed
Description
Starting bash-language-server
on a file fails when the user has no permissions to read a folder next to the file.
The exact error is:
glob error { [Error: EACCES: permission denied, scandir '/home/foo/folder-without-permissions']
errno: -13,
code: 'EACCES',
syscall: 'scandir',
path: '/home/foo/folder-without-permissions' }
and this is due to:
https://github.com/mads-hartmann/bash-language-server/blob/2d3528d670277858aaf52a3ebe6577beea524876/server/src/analyser.ts#L47-L49
I think that you should show a warning instead of triggering an error and that recursing
in all directories and sub-directories is a bit aggressive.