Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 24, 2015 No line numbers in compiler error messages | ||||
---|---|---|---|---|
| ||||
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 |
April 24, 2015 Re: No line numbers in compiler error messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Nixon | 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
|
April 24, 2015 Re: No line numbers in compiler error messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Nixon | 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.
|
April 24, 2015 Re: No line numbers in compiler error messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | 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
|
April 24, 2015 Re: No line numbers in compiler error messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | 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
|
Copyright © 1999-2021 by the D Language Foundation