Bug 20825 – the filename of the error messages generated by dmd build.d script miss the "src/" part of the path

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-05-12T17:50:03Z
Last change time
2020-05-19T04:30:44Z
Assigned to
No Owner
Creator
Basile-z
See also
https://issues.dlang.org/show_bug.cgi?id=20824

Comments

Comment #0 by b2.temp — 2020-05-12T17:50:03Z
example: > dmd/declaration.d(796): Error: undefined identifier `o` but when you have dmd dub.sdl loaded in an IDE the IDE will try to solve relative path from "src" hance the error messages wont be clickable. I believe this is caused by the fact that the build script is located in src/ and not in the repo root.
Comment #1 by b2.temp — 2020-05-13T10:11:25Z
added support for this in dexed [1]. I close because this problem existed even before build.d. [1] : https://gitlab.com/basile.b/dexed/-/commit/9ee7f4daabb9d8d5ec4eb33b82fdd9eeff049933
Comment #2 by dlang-bot — 2020-05-19T04:30:44Z
dlang/dmd pull request #11157 "Fix issue 20825: paths in error messages from build.d should be click…" was merged into master: - 3931e7e23dab87522d081cdc5a0c140995177fdc by MoonlightSentinel: Fix issue 20825: paths in error messages from build.d should be clickable https://github.com/dlang/dmd/pull/11157