D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20825 - the filename of the error messages generated by dmd build.d script miss the "src/" part of the path
Summary: the filename of the error messages generated by dmd build.d script miss the "...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-12 17:50 UTC by basile-z
Modified: 2020-05-19 04:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description basile-z 2020-05-12 17:50:03 UTC
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 basile-z 2020-05-13 10:11:25 UTC
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 Dlang Bot 2020-05-19 04:30:44 UTC
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