Thread overview | |||||
---|---|---|---|---|---|
|
September 09, 2019 Color highlighting makes usage of dustmite almost impossible for beginners | ||||
---|---|---|---|---|
| ||||
Hi, I am currently facing a compiler error for which I think it is a bug and wanted to use dustmite to reduce the source code: source\cp\puzzles\puzzle.d(454,35): Error: need this for name of type string Several parts of the error message are highlighted, e.g. "this" and "name" and "string". I thought I can use dustmite with a compiler regex dub dustmite ..\dm --compiler-regex="need this for name of type string" But dustmite fails with "Initial test fails". For a beginner this would be an unsolvable issue. By chance I found out what is causing the issue. If you switch off the color, the error message changes to: source\cp\puzzles\puzzle.d(454,35): Error: need `this` for `name` of type `string` Therefore you have to use this command dub dustmite ..\dm --compiler-regex="need `this` for `name` of type `string`" If the backticks are just a helper tool for marking the parts which should be highlighted I would propose to remove them in the none colored output. What do you think? Kind regars André |
September 09, 2019 Re: Color highlighting makes usage of dustmite almost impossible for beginners | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andre Pany | On 09.09.19 21:44, Andre Pany wrote:
> If the backticks are just a helper tool for marking the parts which should be highlighted I would propose to remove them in the none colored output.
>
> What do you think?
I'd prefer it the other way around: add backticks to the colored output, too.
|
September 10, 2019 Re: Color highlighting makes usage of dustmite almost impossible for beginners | ||||
---|---|---|---|---|
| ||||
Posted in reply to ag0aep6g | On Monday, 9 September 2019 at 20:27:12 UTC, ag0aep6g wrote:
> On 09.09.19 21:44, Andre Pany wrote:
>> If the backticks are just a helper tool for marking the parts which should be highlighted I would propose to remove them in the none colored output.
>>
>> What do you think?
>
> I'd prefer it the other way around: add backticks to the colored output, too.
+1, this is what gcc does.
|
Copyright © 1999-2021 by the D Language Foundation