1
Vote

Symbolic links cause VS to open a multiple copies of each file when debugging

description

If Python loads a script via a symbolic link, VS will think there are multiple versions of it. Currently I have these documents open:
F:\Users\Tom\Documents\Mods\blender-smd\src\io_scene_valvesource\export_smd.py
C:\Users\Tom\AppData\Roaming\Blender Foundation\Blender\2.66\scripts\addons\io_scene_valvesource\export_smd.py
C:\Users\Tom\AppData\Roaming\Blender Foundation\Blender\2.69\scripts\addons\io_scene_valvesource\export_smd.py
The first document represents the actual location of the file and was created when I opened it from Solution Explorer.

The other two were opened by the debugger and represent the location at which Python thought the file existed. (Yes, I have a user folder on two different drives!)

PyTools should examine the path of any file it wants to open for symlinks and ensure that it opens the real location.

comments

pminaev wrote Feb 11 at 5:21 AM

This is actually more of a debugging issue - we should leave the editor as is (to match the behavior for all other file types that VS handles), but when getting a filename reported from debugger, do symlink resolution on it.