vscode-solargraph icon indicating copy to clipboard operation
vscode-solargraph copied to clipboard

Symlinked directories break functionality

Open joe-p opened this issue 5 years ago • 0 comments

When code exists in a symlinked directory, it is not properly capture by solargraph and does not show in the IntelliSense menu.

For example, with the following directory structure:

.
├── foo
│   └── foo.rb
└── test.rb

With foo.rb containing the following:

module Foo
    class Bar
        def some_method
            puts "Hello World"
        end
    end
end

When typing Foo:: in test.rb, it properly shows Bar in the IntelliSense menu.

Code_yMDOtwjqMx

When the foo directory is a symlink, however, Bar does not appear in the IntelliSense menu. Instead it just shows constants in the top-level namespace (ARGF, ArgumentError, ARGV, etc.).

Code_Xn1wQxqPEU

joe-p avatar Jan 23 '21 17:01 joe-p