Skip to content

Runnable queries do not work on Windows #94

Description

@Komposten

What happened?

I clicked on one of the inline runnable buttons (introduced by #79) for a test or main class and got this error:

At line:1 char:113
+ ... st"; m="merge_differentTypesAddedToKey_onlyLatestIsAdded"; if [ -f po ...
+                                                                  ~
Missing '(' after 'if' in if statement.
At line:1 char:115
+ ... "; m="merge_differentTypesAddedToKey_onlyLatestIsAdded"; if [ -f pom. ...
+                                                                  ~
Missing type name after '['.
At line:1 char:228
+ ... if [ -f gradlew ]; then ./gradlew test --tests $c.$m; else >&2 echo ' ...
+                                                                 ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingOpenParenthesisInIfStatement

Cause: The tasks definitions use shell scripts which don't run on Windows.

What did you expect to happen?

I expected the test/main class to run.

Environment

Zed: v0.208.0 (Zed Nightly 21e75b82216d91d46f03040d040ab9ef00fa763b)
OS: Windows 10.0.19045
Architecture: x86_64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions