Issue 4002 - dmd.conf and binary path in dmd -v output
Summary: dmd.conf and binary path in dmd -v output
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-24 14:43 UTC by Moritz Warning
Modified: 2015-06-09 01:31 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Moritz Warning 2010-03-24 14:43:43 UTC
Users of mess up there system with wrong dmd.conf files and different dmd versions. DMDs lack of information results in lots of confusion.
It would be helpful if dmd could output the absolute path to the dmd binary and the used dmd.conf.

This kind output would be nice:

dmd main.d -v
Binary: /usr/bin/dmd
Config: /etc/dmd.conf
parse     main
importall main
import    object        (object.d)
object.d: Error: module object cannot read file 'object.d'

Without the second line, it would be hard to figure out where dmd expects object.d.
Comment 1 Walter Bright 2010-03-24 18:56:53 UTC
changeset 419
Comment 2 Moritz Warning 2010-03-24 20:16:33 UTC
The path for the dmd binary path is not absolute (Ubuntu 32bit):

$dmd main.d -v
binary    dmd
version   v1.058
config    /opt/dmd/bin/dmd.conf
parse     main
importall main
import    object        (/opt/dmd/bin/../import/object.di)
[..]

The necessary code should be in inifile.c.
DMD needs to look for the dmd.conf at the same place the dmd binary is.


Thanks!
Comment 3 Don 2010-04-09 19:17:02 UTC
Fixed DMD1.058 and DMD2.043.