www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Error reporting is terrible

reply "Prudence" <Pursuit Happyness.All> writes:
After being away from D and deciding to test the idea of writing 
a commercial app in it, There were 2 big things that have jumped 
out at me:

1. The setup is a much compared to most modern day compilers and 
software. While VS is huge, obviously has a ton of money behind 
it, it installs without much fanfare. When installing VS you know 
that ones it's done after a few mins you can jump into 
programming and actually get something done.

2. The error messages in D are horrendous. They tend to be terse, 
point to places where the error actually doesn't occur, and 
almost always require one to loop up the error, if it's not 
obvious. This is a waste of time for the programmer. Usually the 
more complex code the more crypographic the errors are.

3. Since I use VS, I installed VD. It works up to a point. But is 
so ill-integrated into VS that it makes me want to just jump back 
into .NET.


D is like a Ferrari owned by someone who doesn't keep it clean, 
forgets to change the oil and filters. Sure, it's pretty powerful 
but it sure looks ugly and you might not trust it in a race.

VS.NET is like a sleep Lamborghini that's kept in a climate 
controlled show room and regularly tuned for performance.
Sep 03 2015
next sibling parent reply "Xinok" <xinok live.com> writes:
On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 After being away from D and deciding to test the idea of 
 writing a commercial app in it, There were 2 big things that 
 have jumped out at me:

 1. The setup is a much compared to most modern day compilers 
 and software. While VS is huge, obviously has a ton of money 
 behind it, it installs without much fanfare. When installing VS 
 you know that ones it's done after a few mins you can jump into 
 programming and actually get something done.
Can you elaborate? These days, I find setting up D on Windows or Linux quite easy.
 2. The error messages in D are horrendous. They tend to be 
 terse, point to places where the error actually doesn't occur, 
 and almost always require one to loop up the error, if it's not 
 obvious. This is a waste of time for the programmer. Usually 
 the more complex code the more crypographic the errors are.
Again, specific examples would help. Often, when newcomers detail the trouble they encountered during their first experience with D, one or more people will get to work fixing or alleviating the specific issues they mention.
 3. Since I use VS, I installed VD. It works up to a point. But 
 is so ill-integrated into VS that it makes me want to just jump 
 back into .NET.
Unfortunately, some features of D make tooling support difficult. In particular, CTFE combined with string mixins are extremely powerful but basically require a fully featured D interpreter to make any sense of them.
Sep 03 2015
parent reply "Freddy" <Hexagonalstar64 gmail.com> writes:
On Friday, 4 September 2015 at 00:10:46 UTC, Xinok wrote:
 Again, specific examples would help. Often, when newcomers 
 detail the trouble they encountered during their first 
 experience with D, one or more people will get to work fixing 
 or alleviating the specific issues they mention.
Not the op,but stack traces with line numbers would be nice.
Sep 04 2015
parent "Adam D. Ruppe" <destructionator gmail.com> writes:
On Friday, 4 September 2015 at 20:20:14 UTC, Freddy wrote:
 Not the op,but stack traces with line numbers would be nice.
I know how to do it but there's only so many free code hours in the week :( You can look up one line at a time though with the addr2line utility on Linux. Copy/paste the address to it and it will give you a line number.
Sep 04 2015
prev sibling next sibling parent "Jack Stouffer" <jack jackstouffer.com> writes:
On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 After being away from D and deciding to test the idea of 
 writing a commercial app in it, There were 2 big things that 
 have jumped out at me:
If you don't give any concrete examples nothing will change because no one can know what you are referring to.
Sep 03 2015
prev sibling next sibling parent reply "David DeWitt" <dkdewitt gmail.com> writes:
On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 After being away from D and deciding to test the idea of 
 writing a commercial app in it, There were 2 big things that 
 have jumped out at me:

 1. The setup is a much compared to most modern day compilers 
 and software. While VS is huge, obviously has a ton of money 
 behind it, it installs without much fanfare. When installing VS 
 you know that ones it's done after a few mins you can jump into 
 programming and actually get something done.

 2. The error messages in D are horrendous. They tend to be 
 terse, point to places where the error actually doesn't occur, 
 and almost always require one to loop up the error, if it's not 
 obvious. This is a waste of time for the programmer. Usually 
 the more complex code the more crypographic the errors are.

 3. Since I use VS, I installed VD. It works up to a point. But 
 is so ill-integrated into VS that it makes me want to just jump 
 back into .NET.


 D is like a Ferrari owned by someone who doesn't keep it clean, 
 forgets to change the oil and filters. Sure, it's pretty 
 powerful but it sure looks ugly and you might not trust it in a 
 race.

 VS.NET is like a sleep Lamborghini that's kept in a climate 
 controlled show room and regularly tuned for performance.
I think D is about as easy to install as anything. But then again I dont use Windows so I dont have 99.9% of the hassles that come along with that. Since you didnt provide any examples it is kinda hard to fix but we can guess at your problems so my solution would be: Wipe Windows Install Arch Install vim Install DMD. Problem solved :)
Sep 03 2015
next sibling parent "bitwise" <bitwise.pvt gmail.com> writes:
On Friday, 4 September 2015 at 03:26:50 UTC, David DeWitt wrote:
 On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 [...]
I think D is about as easy to install as anything. But then again I dont use Windows so I dont have 99.9% of the hassles that come along with that. Since you didnt provide any examples it is kinda hard to fix but we can guess at your problems so my solution would be: Wipe Windows Install Arch Install vim Install DMD. Problem solved :)
Last I checked, the process was as follows: 1) install visual studio or xamarin studio and Mono-D addin 2) install dmd using the install wizard 3) use D. So what hassles are you talking about exactly?
Sep 03 2015
prev sibling next sibling parent Russel Winder via Digitalmars-d <digitalmars-d puremagic.com> writes:
On Fri, 2015-09-04 at 03:26 +0000, David DeWitt via Digitalmars-d
wrote:
 […]
 
 Wipe Windows
 Install Arch
Or Debian Sid or Fedora.
 Install vim
Wrong. Install Emacs.
 Install DMD.
And/or LDC, GDC
 Problem solved :)
Weeellll… -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 04 2015
prev sibling next sibling parent reply Iain Buclaw via Digitalmars-d <digitalmars-d puremagic.com> writes:
On 4 September 2015 at 12:19, Russel Winder via Digitalmars-d <
digitalmars-d puremagic.com> wrote:

 On Fri, 2015-09-04 at 03:26 +0000, David DeWitt via Digitalmars-d
 wrote:
 [=E2=80=A6]

 Wipe Windows
 Install Arch
Or Debian Sid or Fedora.
Or Slackware
 Install vim
Wrong. Install Emacs.
Wrong. Install Butterflies. =3D-P
Sep 04 2015
parent Jacob Carlborg <doob me.com> writes:
On 2015-09-04 12:37, Iain Buclaw via Digitalmars-d wrote:
 On 4 September 2015 at 12:19, Russel Winder via Digitalmars-d
     Wrong. Install Emacs.


 Wrong. Install Butterflies.  =-P
There's already a command for that in Emacs ;) -- /Jacob Carlborg
Sep 04 2015
prev sibling next sibling parent Russel Winder via Digitalmars-d <digitalmars-d puremagic.com> writes:
On Fri, 2015-09-04 at 12:37 +0200, Iain Buclaw via Digitalmars-d wrote:
=20
[=E2=80=A6]
 Wrong. Install Emacs.
=20
=20
Wrong. Install Butterflies. =3D-P
If you feel in need of a little background to this comment, see: =20 https://xkcd.com/378/ --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 04 2015
prev sibling parent reply "Idan Arye" <GenericNPC gmail.com> writes:
On Friday, 4 September 2015 at 03:26:50 UTC, David DeWitt wrote:
 On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 [...]
I think D is about as easy to install as anything. But then again I dont use Windows so I dont have 99.9% of the hassles that come along with that. Since you didnt provide any examples it is kinda hard to fix but we can guess at your problems so my solution would be: Wipe Windows Install Arch Install vim Install DMD. Problem solved :)
Considering the OP struggles with installing DMD and VisualD, I don't think recommending Arch Linux is a good idea...
Sep 05 2015
parent "deadalnix" <deadalnix gmail.com> writes:
On Saturday, 5 September 2015 at 15:55:00 UTC, Idan Arye wrote:
 On Friday, 4 September 2015 at 03:26:50 UTC, David DeWitt wrote:
 On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 [...]
I think D is about as easy to install as anything. But then again I dont use Windows so I dont have 99.9% of the hassles that come along with that. Since you didnt provide any examples it is kinda hard to fix but we can guess at your problems so my solution would be: Wipe Windows Install Arch Install vim Install DMD. Problem solved :)
Considering the OP struggles with installing DMD and VisualD, I don't think recommending Arch Linux is a good idea...
We have no idea what OP has trouble with because Op did not tell.
Sep 05 2015
prev sibling next sibling parent "Kagamin" <spam here.lot> writes:
On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 a ton of money behind it
You already know how to help :)
Sep 04 2015
prev sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 1. The setup is a much compared to most modern day compilers 
 and software.
The most inappropriately kept secret of installing dmd is that you don't have to. Just unzip it and use it in-place.
 2. The error messages in D are horrendous.
You mean compile time or runtime or both?
 the more complex code the more crypographic the errors are.
Ever since the Snowden revelations, I've endeavored to use cryptography more often. :) hehe j/k
Sep 04 2015
parent "Kagamin" <spam here.lot> writes:
On Friday, 4 September 2015 at 22:14:02 UTC, Adam D. Ruppe wrote:
 On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote:
 1. The setup is a much compared to most modern day compilers 
 and software.
The most inappropriately kept secret of installing dmd is that you don't have to. Just unzip it and use it in-place.
That's how other compilers like gcc and clang are installed too. It's a pretty established tradition.
Sep 06 2015