www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - file(line,col)=>file(line:col) to follow convention of

reply Timothee Cour via Digitalmars-d <digitalmars-d puremagic.com> writes:
See also https://github.com/Hackerpilot/Dscanner/issues/224
It breaks tooling that expects the main convention.
Jan 28 2015
next sibling parent Jacob Carlborg <doob me.com> writes:
On 2015-01-28 22:52, Timothee Cour via Digitalmars-d wrote:
 See also https://github.com/Hackerpilot/Dscanner/issues/224
 It breaks tooling that expects the main convention.
Yeah, TextMate expects a colon as separator. That DMD uses a comma forced me to write a completely new error handler in TextMate. -- /Jacob Carlborg
Jan 29 2015
prev sibling parent reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On 01/28/2015 04:52 PM, Timothee Cour via Digitalmars-d wrote:
 See also https://github.com/Hackerpilot/Dscanner/issues/224
 It breaks tooling that expects the main convention.
IIRC, file(line,col) is common in the windows world, and I've seen other variations, too. Frankly, I think any editor that's hardcoded to expect any one single style is doing it wrong. Accepting either , or : should be trivial for any editor, and hell, Programmer's Notepad 2 just uses an optionally-customizable regex for error capture. I'd argue that should be baseline for any editor. That said, getting all editors to be that flexible is probably about as likely as getting all CLI tools to output the same file/line format, so it's probably best (or at least, most realistic) to whip up a little streaming IO tool that takes (and optionally detects) one format and outputs another. (The Unix Philosophy is really growing on me...even if modern Linux seems surprisingly inconsistent about actually using the principle...)
Feb 02 2015
parent Jacob Carlborg <doob me.com> writes:
On 2015-02-03 03:54, Nick Sabalausky wrote:

 Frankly, I think any editor that's hardcoded to expect any one single
 style is doing it wrong. Accepting either , or : should be trivial for
 any editor, and hell, Programmer's Notepad 2 just uses an
 optionally-customizable regex for error capture. I'd argue that should
 be baseline for any editor.
Yeah, I guess I could create a pull request in the case of TextMate. -- /Jacob Carlborg
Feb 03 2015