linux-china / jetbrains-just-plugin

JetBrains Just Command Runner Plugin
https://plugins.jetbrains.com/plugin/18658-just
Apache License 2.0
35 stars 6 forks source link

invalid sequence #29

Open bukowa opened 1 week ago

bukowa commented 1 week ago

This is a proper justfile (at least it evaluates correctly):

export PATH_WEBDRIVER_BINARY := env('PATH_WEBDRIVER_BINARY',\
    if os() == 'windows' \
    {PATH_BUILD_BIN + "/msedgedriver" + exe } \
    else { shell('which $1 || true', 'WebKitWebDriver')})

But plugins says its invalid, the solution is to add a space after env('PATH_WEBDRIVER_BINARY',

export PATH_WEBDRIVER_BINARY := env('PATH_WEBDRIVER_BINARY', \
    if os() == 'windows' \
    {PATH_BUILD_BIN + "/msedgedriver" + exe } \
    else { shell('which $1 || true', 'WebKitWebDriver')})