FsAutoComplete icon indicating copy to clipboard operation
FsAutoComplete copied to clipboard

'Cached typecheck results not yet available' persisting error when one subdirectory is not readable.

Open suside opened this issue 5 years ago • 1 comments

When you open a project with at least one subdirectory unreadable by the current user, FSAC will not work.

Steps to reproduce

git clone https://github.com/suside/FsAutoCompleteBugRepro
cd FsAutoCompleteBugRepro
sudo chown root -R no_access_dir
sudo chmod 0600 -R no_access_dir
code ./

from now on FSAC will log only

[LSP] PositionHandler - Cached typecheck results not yet available for .../project1/Program.fs

Expected behavior

Meaningful error on the output panel + ignoring unreadable directories.

suside avatar Aug 25 '20 13:08 suside

As a workaround just add this to VSCode config:

"FSharp.excludeProjectDirectories": [
    "no_access_dir",
    ...
  ],

suside avatar Aug 27 '20 08:08 suside