www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - No line numbers in compiler error messages

reply "John Nixon" <jhn nixon.com> writes:
I am using dmd v2.067.0 on Mac OSX with Terminal and I found the 
lack of line numbers surprising.
Is there something simple I am doing wrong? Do any of the 
switches on the command line do this?

BTW I only found out about D a couple of weeks back. It seems to 
be very impressive!

John Nixon
Apr 24 2015
next sibling parent reply Steven Schveighoffer <schveiguy yahoo.com> writes:
On 4/24/15 1:20 PM, John Nixon wrote:
 I am using dmd v2.067.0 on Mac OSX with Terminal and I found the lack of
 line numbers surprising.
 Is there something simple I am doing wrong? Do any of the switches on
 the command line do this?
It does post line numbers. Please post source and compile line that causes this, and also result so it may be duplicated. -Steve
Apr 24 2015
parent "John Nixon" <jhn nixon.com> writes:
On Friday, 24 April 2015 at 17:45:49 UTC, Steven Schveighoffer 
wrote:
 On 4/24/15 1:20 PM, John Nixon wrote:
 I am using dmd v2.067.0 on Mac OSX with Terminal and I found 
 the lack of
 line numbers surprising.
 Is there something simple I am doing wrong? Do any of the 
 switches on
 the command line do this?
It does post line numbers. Please post source and compile line that causes this, and also result so it may be duplicated. -Steve
My apologies, the problem was caused by the font colour (black) not visible with Terminal using a black background. John Nixon
Apr 24 2015
prev sibling parent reply "Jesse Phillips" <Jessekphillips+D gmail.com> writes:
On Friday, 24 April 2015 at 17:20:12 UTC, John Nixon wrote:
 I am using dmd v2.067.0 on Mac OSX with Terminal and I found 
 the lack of line numbers surprising.
 Is there something simple I am doing wrong? Do any of the 
 switches on the command line do this?

 BTW I only found out about D a couple of weeks back. It seems 
 to be very impressive!

 John Nixon
Without debug symbols the line numbers aren't available (IIRC). Add -g to your compile switches.
Apr 24 2015
parent Steven Schveighoffer <schveiguy yahoo.com> writes:
On 4/24/15 2:24 PM, Jesse Phillips wrote:
 On Friday, 24 April 2015 at 17:20:12 UTC, John Nixon wrote:
 I am using dmd v2.067.0 on Mac OSX with Terminal and I found the lack
 of line numbers surprising.
 Is there something simple I am doing wrong? Do any of the switches on
 the command line do this?

 BTW I only found out about D a couple of weeks back. It seems to be
 very impressive!

 John Nixon
Without debug symbols the line numbers aren't available (IIRC). Add -g to your compile switches.
That's only for exceptions. Compiler always gives line numbers. -Steve
Apr 24 2015