Closed wryfi closed 4 months ago
I actually filed a https://github.com/casey/just/issues/1761 because of this issue, even though turns out just
supports it just fine :(
Please note that a backslash ("\") escaped newline is marked as an error also for recipe dependencies, see for example the following that get processed correctly by just:
task_1:
echo "This is task_1"
task_1:
echo "This is task_1"
task_1:
echo "This is task_1"
all_tasks: task_1 \
task_2 \
task_3
The error reported is:
JustToken.ATTRIBUTE, JustToken.COMMENT, JustToken.KEYWORD_ALIAS, JustToken.KEYWORD_EXPORT, JustToken.KEYWORD_MOD, JustToken.KEYWORD_SET, JustToken.NEW_LINE, JustToken.RECIPE_NAME, JustToken.SHEBANG or JustToken.VARIABLE expected, got '\'
Other than this very handy plugin, makes working with just files very simple.
@fabiomoratti now it's some hard to implement this feature of escaped newline for task names, and I need to rewrite the Lexer, sorry for that. Now you should use all_tasks: task_1 task_2 task_3
with one line style.
Fixed in 0.4.3
The following
justfile
is valid and works fine for me, but it gets flagged with an error in the IDE: