akarsuu
September 6, 2022, 5:48pm
1
Mac OS High Sierra VsCode react started all of a sudden to give the “illegal option --r” error. My localhost3000 is showing nothing but a blank page. Any suggestions please?
Did you see this discussion?
visual-studio-code
akarsuu
September 6, 2022, 6:01pm
3
Yes I also tried the Brew and Conda commands but they do not seem to work.
But what is strange is that everything was perfectly working without any issues. This error appeared all of a sudden…
As far as I figured from stackoverflow, it became a thing after last VS code update
You can go to the vscode repo here, there is an open issue for that right now, maybe there is more info:
opened 08:39AM - 02 Sep 22 UTC
bug
candidate
terminal-shell-integration
terminal-shell-bash
Does this issue occur when all extensions are disabled?: Yes
- VS Code Ve… rsion: `1.71.0` - `784b0177c56c607789f9638da7b6bf3230d47a8c`
- OS Version: macOS 10.15.7
```
System:
OS: macOS 10.15.7
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 192.07 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.20.0 - ~/.nvm/versions/node/v14.20.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 6.14.17 - ~/.nvm/versions/node/v14.20.0/bin/npm
```
Steps to Reproduce:
1. Open the integrated terminal, then select the `Terminal` tab.
2. open a new terminal using bash.
3. The following message appears before executing every command:
```bash
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
```
### Example
```bash
$ echo 'hi'
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
hi
```
It's likely that this issue is caused by https://github.com/microsoft/vscode/commit/e55863c5c1fc4515bd99e9cd4fb415788000a8b1#diff-3d4a2862d6125445f81871e00c3b6d60fa24ef567bdf20c2a185f151a1f86129R125
lasjorg
September 6, 2022, 6:07pm
5
Does it only happen with Bash? Didn’t they replace Bash with zsh as the default terminal at one point?
It looks like there was a PR to fix it but until it is in maybe try zsh instead.
akarsuu
September 6, 2022, 6:08pm
6
Thank you admit8490 I already saw that page too but did not pay attention to its date. Apparently it is a very recent problem Well I do not really understand what is discussed or suggested there but hopefully I could find a solution or worse case I ll have to wait till vsCode resolves it. Thank you again
I wish I could suggest something, but I am not using mac OS
1 Like
akarsuu
September 6, 2022, 6:10pm
8
you are right zsh works ok
system
Closed
March 8, 2023, 6:10am
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.