Closed snejus closed 2 months ago
I started looking into this and added failing tests for simplified equivalents of the two cases above: https://github.com/nat-n/poethepoet/pull/225.
Interestingly, the Comment
exception seems to be thrown if there's a single comment in the last line. If there is more than one comment, then I see the invalid cmd task/multiline error.
Hi @snejus, thanks for looking into this!
I'll look into this as soon as I have some time. This must have been introduced as an untracked breaking change in 0.23.0. Not enough tests :(
Now... without spending more time than I have at this moment to think about it; this exception makes me unsure if it's the docs or the code that should be fixed.
One approach to recover the previous behavior would be to parse lines, strip comments, then merge the lines.
Hi, I noticed the documentation mentions that it's possible to define a command across multiple lines with comments and thus I was to configure the following command
However
poe
does not seem to be happy about it and throws me the following error:Then, I tried configuring the example given in the docs
However this resulted in an exception
Is there something missing in my configuration in the above examples?