Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate file tabs when project is opened from a symbolic link #1772

Open
shekhovt opened this issue Aug 28, 2024 · 1 comment
Open

Duplicate file tabs when project is opened from a symbolic link #1772

shekhovt opened this issue Aug 28, 2024 · 1 comment
Assignees
Labels
needs repro Issue has not been reproduced yet waiting for response

Comments

@shekhovt
Copy link

Type: Feature Request

Behaviour

When running a python file in debug mode, whenever the debuger stops (at exception or breakpoin), the source file is opened in a separate duplicate tab with an absolute path. Code browsing from there also opens new duplicate tabs. This is clutterning IDE and accidental editing in the duplicate tabs causes the effect of externally modified file on the original tab opened from the project explorer.

Steps to reproduce:

My VS Code is on Windows, but I work through Remote-SSH with a Linux machines.

I think the main reason for the issue is symbolic links. I open the project (folder) in my home directory. Hovering over a file or tab shows ~/datagrid/project/file.py
The duplicate tab oppend by debugger shows
/mnt/datagrid/personal/username/project/file.py
Because ~/datagrid is a symbolic link.

The feature that I propose it is to always resolve symbolic links in the absolute path whenever files are opened by the editor or the explorer or search/replace tools. Does is make sense?

Extension version: 2024.10.0
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.10.0-15-amd64
Remote OS version: Linux x64 5.15.0-1062-nvidia

@karthiknadig karthiknadig self-assigned this Aug 28, 2024
@karthiknadig karthiknadig removed their assignment Dec 11, 2024
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python-debugger Dec 11, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Dec 11, 2024
@rchiodo
Copy link
Contributor

rchiodo commented Dec 11, 2024

You might try this setting:

"resolveSymlinks": true

It was intended to solve this exact problem, but it may not be working anymore.

See this issue:
#743

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet waiting for response
Projects
None yet
Development

No branches or pull requests

4 participants