Bug 15058 – [VisualD] A way to specify Debugging Current Directory from within the .visualdproj

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2015-09-14T20:29:00Z
Last change time
2015-09-15T15:47:50Z
Assigned to
nobody
Creator
aliloko

Comments

Comment #0 by aliloko — 2015-09-14T20:29:45Z
In DUB we'd like to hide the multiple .visualdproj in a hidden .dub directory, it helps with clutter in projects with many packages (only the .sln stays visible which is handy). https://github.com/D-Programming-Language/dub/pull/680 But the option "Debugging/Working Directory" is stored in the generated .suo file, and the default is "." where this change woudl require "..". Is there, or should there be, an option within the .visualdproj to store that current working directory?
Comment #1 by r.sagitario — 2015-09-14T21:46:45Z
Visual D stored it in the project file at the beginning, but that's usually not what you want. You might still be able to change the default by adding an element <debugworkingdir> to the project settings, as it is still read from the project: https://github.com/D-Programming-Language/visuald/blob/master/visuald/config.d#L1371 It won't survive the next saving of the project, though, but maybe that's ok.
Comment #2 by aliloko — 2015-09-15T00:25:50Z
Well, that would be very confusing, it's quite common to save projects files even generated. Better abandon the idea of hiding .visualdproj instead to have that. It's not a huge must-have anyway.
Comment #3 by sludwig — 2015-09-15T12:43:55Z
Wouldn't the directory be stored in the .suo file when saving the project/solution? That would IMO be enough, there is no need to keep it in the project file per se.
Comment #4 by aliloko — 2015-09-15T15:47:50Z
<debugworkingdir> worked, like Sönke predicted.