Re: CompilerInvocationException

2023-02-25 Thread Paul Backus via Digitalmars-d-learn
On Sunday, 26 February 2023 at 02:33:21 UTC, guacs wrote: NOTE: The error is happening when I'm using the SumType and I suspect that I'm using it incorrectly. I am not sure whether this is the specific error that is causing your problem, but there is a mistake in your use of `SumType` in

CompilerInvocationException

2023-02-25 Thread guacs via Digitalmars-d-learn
Hi, I'm facing this error and I'm not sure why. For context, I'm trying to build a parser for simple mathematical expressions given as strings i.e. "1 + 2". My main experience is in Python and I wanted to explore the D language so I thought of doing this small project as an exercise. The

Re: Using Windbg to debug D applications and unittests

2023-02-25 Thread solidstate1991 via Digitalmars-d-learn
On Saturday, 25 February 2023 at 19:55:27 UTC, evilrat wrote: Nothing happens without a reason, check your project settings and make sure that for debugging you have correct paths, command, and arguments. Even with no debug info and no project you can just drop an executable to an empty VS

Re: Using Windbg to debug D applications and unittests

2023-02-25 Thread evilrat via Digitalmars-d-learn
On Saturday, 25 February 2023 at 19:31:10 UTC, solidstate1991 wrote: Well, VS turned to be even less cooperative than before. Now it only loads and runs a specific old version of an EXE file. I'm asking around for other debuggers, I'm definitely moving to another. Nothing happens without

Re: Using Windbg to debug D applications and unittests

2023-02-25 Thread solidstate1991 via Digitalmars-d-learn
On Saturday, 25 February 2023 at 18:08:57 UTC, evilrat wrote: Turn on exception settings panel in top menu bar: Debug->Windows->Exceptions Settings (Crtl+Alt+E) My settings for D is full "D exceptions", under Win32 check "D Exception", or just click "Restore to default settings" in there on

Re: Using Windbg to debug D applications and unittests

2023-02-25 Thread evilrat via Digitalmars-d-learn
On Saturday, 25 February 2023 at 16:58:44 UTC, solidstate1991 wrote: I used to use Visual Studio, but I forgot how to set it up properly to break on handled throws. Now it doesn't do anything if throws are handled in any fashion, and I can't find an option to change it (it was removed

Re: Using Windbg to debug D applications and unittests

2023-02-25 Thread solidstate1991 via Digitalmars-d-learn
On Saturday, 25 February 2023 at 16:22:49 UTC, evilrat wrote: VisualD for Visual Studio provides some extra help with displaying your data in debugger and on Windows is the best you can get for D. You can use Visual Studio Code + code-d to debug, but it is not as good as full Visual Studio

Re: Using Windbg to debug D applications and unittests

2023-02-25 Thread evilrat via Digitalmars-d-learn
On Saturday, 25 February 2023 at 15:55:33 UTC, solidstate1991 wrote: I had a lot of trouble trying to get Visual Studio to catch handled exceptions VisualD for Visual Studio provides some extra help with displaying your data in debugger and on Windows is the best you can get for D. You can

Using Windbg to debug D applications and unittests

2023-02-25 Thread solidstate1991 via Digitalmars-d-learn
I had a lot of trouble trying to get Visual Studio to catch handled exceptions, which would have been mandatory for debugging unittests, but I either forgot how to do it, or something have changed in either the newer versions of VS or the D compilers I use (LDC, DMD). So I downloaded the new

Re: stdin.readln line editing and recall with up arrow

2023-02-25 Thread bachmeier via Digitalmars-d-learn
On Saturday, 25 February 2023 at 08:45:27 UTC, Daren Scot Wilson wrote: On Saturday, 25 February 2023 at 05:41:48 UTC, Richard (Rikki) Andrew Cattermole wrote: On 25/02/2023 6:36 PM, Daren Scot Wilson wrote: stdin.readln() works fine until I, out of habit, use the up arrow to recall an earlier

Re: stdin.readln line editing and recall with up arrow

2023-02-25 Thread Daren Scot Wilson via Digitalmars-d-learn
On Saturday, 25 February 2023 at 05:41:48 UTC, Richard (Rikki) Andrew Cattermole wrote: On 25/02/2023 6:36 PM, Daren Scot Wilson wrote: stdin.readln() works fine until I, out of habit, use the up arrow to recall an earlier input and the left/right to move around and change a character.   How

Re: stdin.readln line editing and recall with up arrow

2023-02-25 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 25/02/2023 9:45 PM, Daren Scot Wilson wrote: I went with readline.  Left/right arrows work, but up arrow still does not recall earlier commands. Maybe I need also a separate input history thing? https://tiswww.case.edu/php/chet/readline/readline.html#Basic-Behavior