nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
84.92k stars 3.43k forks source link

Error in building development container #1435

Open jiseongg opened 7 months ago

jiseongg commented 7 months ago

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

N/A

Your system (Debian 7, ArchLinux, Windows, etc.):

Dev Container (Host:MacOS Sonoma 14.2.1)

How to reproduce the bug:

N/A

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

N/A

If the bug only appears with a specific application, the output of that application and its version:

N/A

Anything else you think is relevant:

N/A

Hi,

The issue is related to the devcontainer settings. I read CONTRIBUTING.md and decided to setup my development environment with devcontainer I'm familiar with. It seems that the "settings", and "extensions" fields in devcontainer.json are not allowed. Rather, VS Code recommends that we use "customizations/vscode/[settings,extensions]".

image

Also, the "postCreateCommand" fails to run due to the permission issue. After I add sudo in front of the python3 setup.py develop, it runs normally.

The complete devcontainer.json I modified to properly setup the container has following structure.

"customizations": {
  "vscode": {
    "settings": {
    },
    "extensions": [
    ]
  }
},

"postCreateCommand": "pip3 install -r requirements.txt && sudo python3 setup.py develop"

I'm not sure this phenomenon occurs only in my environment. Could you check the devcontainer settings and consider the update?