Skip to content

Plugin doesn't like using Bash on Windows #188

Description

@quintesse

Describe the bug

When you have a bash-like shell defined as your default terminal then things like "Run JBang" don't work correctly:

Image

To Reproduce

Steps to reproduce the behavior:

  1. Make sure you have got either Git Bash, MSYS2 bash or WSL bash available
  2. Have it available in the setting.json:
    "terminal.integrated.profiles.windows": {
        "Git Bash": {
            "source": "Git Bash",
            "icon": "terminal-git-bash",
            "path": "C:\\Program Files\\Git\\bin\\bash.exe",
            "args": [
                "--login",
                "-i"
            ]
        }
    }
  1. Make sure that terminal profile is the default
  2. Try to use the "Run JBang" feature
  3. See error

JBang version

❯ jbang version --verbose
[jbang] [0:270] jbang version 0.137.0
Cache: C:\Users\tako\.jbang\cache
Config: C:\Users\tako\.jbang
Repository: C:\Users\tako\.m2\repository
Java: C:\Users\tako\.jbang\currentjdk [17.0.18]
OS: windows
Arch: x64
Shell: bash
Native Image: false
0.137.0

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