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] - The status bar does not show the name of the currently loaded project when using a relative path. #650

Closed jaronfort closed 5 months ago

jaronfort commented 1 year ago

Environment/version

Steps to reproduce

  1. Create a new workspace.
  2. Save the workspace as a project.
  3. Open up the projects.json file and change the workspace path of the new project to use ~/Documents/MyProjects/my-project.vscode-workspace (instead of c://Users/Me/Documents/MyProjects/my-project.vscode-workspace.
  4. Open the project using the project manager.
  5. Notice the project is not showing in the status bar with no "Hide/Show 'Project Manager'" open in the right-click menu.
alefragnani commented 1 year ago

Hi @jaronfort ,

I'm not sure this is a Windows related issue, but I couldn't reproduce the error on my MacOS.

The ~ shortcut is supported on project paths and it seems to be properly expanded on project detection of the Status Bar, so it is really weird it is not working in your case.

Btw, does the project path is properly displayed (expanded) when you hover the project in the Project Manager - Favorites view? It should display

Project Name
c:/Users/Me.... (expanded path)
Icon Workspace

Hope this helps

jaronfort commented 1 year ago

Sorry, I made a mistake. It is actually working fine for me on macOS. I tried replacing the paths to use the "/" delimiter instead of "\" (which is escaped in the string literal as "\") and still no luck.

[image: screenshot.1.jpg] I also confirmed that I can see the project path, workspace icon, and project name when I hover over it in the favorites view.

Btw. Thanks for creating this extension. This has definitely improved my workflow.

On Fri, Sep 23, 2022 at 3:54 PM Alessandro Fragnani < @.***> wrote:

Hi @jaronfort https://github.com/jaronfort ,

I'm not sure this is a Windows related issue, but I couldn't reproduce the error on my MacOS.

The ~ shortcut is supported on project paths and it seems to be properly expanded on project detection of the Status Bar, so it is really weird it is not working in your case.

Btw, does the project path is properly displayed (expanded) when you hover the project in the Project Manager - Favorites view? It should display

Project Name c:/Users/Me.... (expanded path) Icon Workspace

Hope this helps

— Reply to this email directly, view it on GitHub https://github.com/alefragnani/vscode-project-manager/issues/650#issuecomment-1256776474, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADB3AHUNZFWMV46IUSQ4VATV7YYI7ANCNFSM6AAAAAAQUKNS2Y . You are receiving this because you were mentioned.Message ID: @.***>

alefragnani commented 1 year ago

Just to let you know, I could reproduce the error on a Windows machine, and neither $home keyword is working.

So, it is definitely something OS specific.

Thanks for reporting

jaronfort commented 1 year ago

No problem.

On Mon, Sep 26, 2022 at 8:11 AM Alessandro Fragnani < @.***> wrote:

Just to let you know, I could reproduce the error on a Windows machine, and neither $home keyword is working.

So, it is definitely something OS specific.

Thanks for reporting

— Reply to this email directly, view it on GitHub https://github.com/alefragnani/vscode-project-manager/issues/650#issuecomment-1258187588, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADB3AHWKAG5E4V7SCMKSV5TWAG4ITANCNFSM6AAAAAAQUKNS2Y . You are receiving this because you were mentioned.Message ID: @.***>

sdak75 commented 10 months ago

Hi, I had the same problem on Windows and was able to resolve it by removing the \ at the end of the path. Best regards