alefragnani / vscode-project-manager

Project Manager Extension for Visual Studio Code
GNU General Public License v3.0
1.89k stars 225 forks source link

[BUG] - Project manager fails to activate when projectManager.supportSymlinksOnBaseFolders is true and baseFolders contains invalid path. #657

Closed ParaSpl01t closed 5 months ago

ParaSpl01t commented 1 year ago

Environment/version

Steps to reproduce

  1. Install Project manager
  2. Add your real project directory to Any:Base Folders
  3. Add some non-existent directory to Any:Base Folders
  4. set "projectManager.supportSymlinksOnBaseFolders": true
  5. close and reopen VSCode

After these steps project manager sidebar will not show anything at all not even refresh button. In Console, there's this error message :

Activating extension 'alefragnani.project-manager' failed: ENOENT: no such file or directory, lstat '/home/otherpcusername/dev/projects'.
$onExtensionActivationError @   workbench.desktop.main.js:2155

image

Scenario I'm currently using vscode in two seperate systems and syncing the extensions and settings between both. that's why my Any: Base Folder contains one correct path and one incorrect path. I'm don't use windows so can't tell if it's OS specific or not. but this might have something to do with #655 If there's more info I can provide please let me know.

alefragnani commented 1 year ago

Hi @ParaSpl01t ,

I could repro the issue, and I suppose it is not OS specific.

Thanks for reporting