Skip to content

Language server goes to infinite loop if symlink points to upper directory #269

@kolesar-andras

Description

@kolesar-andras

Symptom: devsense.php.ls process eats 100% CPU while Visual Studio Code shows Processing 1... at status bar.

Steps to reproduce:

mkdir -p lib/foo
mkdir -p lib/bar
ln -s .. lib/foo/lib
ln -s .. lib/bar/lib
touch index.php # create a php file to activate extension
code -a .

Situation is not artificial, Crystal libraries have this symlink to lib directory.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions