question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support detecting `bash.bat` shells correctly

See original GitHub issue

Environment data

  • VS Code version: 1.41.1
  • Extension version (available under the Extensions sidebar):
  • OS and version: 2020.1.58038
  • Python version (& distribution if applicable, e.g. Anaconda): Python3.6, custom Anaconda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Relevant/affected Python packages and their versions: none
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): jedi

Expected behaviour

Not prompted about Powershell support when we are not using Powershell.

Actual behaviour

We receive this message even when not using powershell:

Activation of the selected Python environment is not supported in PowerShell. Consider changing your shell to Command Prompt. image

The notification urges users to Use Command Prompt. When new developers get set up, they see this message and click Use Command Prompt, this breaks our documented processes and tools by unconfiguring our shell, bash, within VSCode.

While it has been stated that trying to reconfigure our shell is not the job of the extension, that is exactly what is happening. image

I realize that it has also been stated that bash is not supported on windows. We have our part done our part to make sure to configure everything about the shell correctly, with all of our use cases working. The only time it gets broken is when a user accidentally follows the instructions and clicks Use Command Prompt

Everyone but newbies just click always ignore. It kinda ruins the experience for the newbies thought when they get stuck only to realize that their shell is not right.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
brettcannoncommented, Feb 7, 2020

@DonJayamanne we don’t officially support git bash.

0reactions
karrtikrcommented, Dec 19, 2022

We look for atleast 7 👍 upvotes on the opening comment to gauge general interest in this idea. As there’s unfortunately not enough upvotes then we will close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tutorial — bats-core 1 documentation
Tutorial¶. This tutorial is intended for beginners with bats and possibly bash. Make sure to also read the list of gotchas and the...
Read more >
Types of shells supported by GitLab Runner
The shell scripts contain commands to execute all steps of the build: git clone; Restore the build cache; Build commands; Update the build...
Read more >
Single script to run in both Windows batch and Linux Bash?
Is it possible to write a single script file which executes in both Windows (treated as . bat) and Linux (via Bash)? I...
Read more >
Testing Bash with BATS - Opensource.com
BATS test scripts are typically stored in the test directory and named for the script being tested, but with the .bats extension. For...
Read more >
Re: How to execute NIOS II Command Shell commands from a *.bat ...
Hi,. You can write a myscript.sh file : a shell file with same purpose than DOS batch (*.bat) file. Have a look at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found