taskell icon indicating copy to clipboard operation
taskell copied to clipboard

Show line where parsing failed

Open grepsuzette opened this issue 4 years ago • 2 comments

Would it be possible that whenever taskell.md: Could not parse file. is shown we also put a line number where it failed, to help fixing it?

I like to use both taskell and vim to edit my tasks but sometimes I introduce errors and then spend time to fix them.

Good job at this super useful cli app!

grepsuzette avatar Jun 15 '20 09:06 grepsuzette

This is certainly something I'd like to get working. It actually used to do this, but then I changed to using a proper parsing engine (for future flexibility) and it got lost at that point. Would like to get it back, but will require a bit more understanding of attoparsec.

smallhadroncollider avatar Jun 16 '20 08:06 smallhadroncollider

Looks like this might not be possible using attoparsec.

I'll have to think about this one. I chose attoparsec because it's used by other libraries that taskell is using.

smallhadroncollider avatar Jun 17 '20 09:06 smallhadroncollider