GithubHelp home page GithubHelp logo

Comments (4)

keyhr avatar keyhr commented on August 28, 2024

I assume this happens because the child process uses a different python than the one you use in your terminal. Can you show me where the python3 exists in the terminal?

$ which python3

from vscode-42-c-format.

melobern avatar melobern commented on August 28, 2024

which python3 gives /usr/bin/python3 too, the same VS Code tells it can't find c_formatter_42 in it.

from vscode-42-c-format.

melobern avatar melobern commented on August 28, 2024

When I ask the terminal to echo $PYTHONPATH, it doesn't give the same address as which python.

➜  ~ echo $PYTHONPATH 
:/home/melobern/.local/lib/python3.8/site-packages:/home/mbernard/.local/lib/python3.8/site-packages
➜  ~ which python3
/usr/bin/python3

I tried to change the path in VS Code but it didn't recognize the variable when I put them in settings.json :
"python.pythonPath": "/home/melobern/.local/lib/python3.8/site-packages"
or
"python.defaultInterpreterPath": "/home/melobern/.local/lib/python3.8/site-packages"

from vscode-42-c-format.

melobern avatar melobern commented on August 28, 2024

The school updated computers, it works now. Hope no one else will encounter this problem again at the school.
I close this issue.
If someone has this problem again, it works and I don't have anything more than this in my settings.json :

"terminal.integrated.defaultProfile.linux": "zsh",
    "terminal.integrated.profiles.linux": {
        "bash": {
            "path": "/usr/bin/flatpak-spawn",
            "args": [
                "--host",
                "--env=TERM=xterm-256color",
                "zsh",
            ]
        }
    },
    "workbench.colorTheme": "Default Dark Modern",
    "[c]": {
        "editor.defaultFormatter": "keyhr.42-c-format"
    },
    "editor.wordWrap": "on",
    "editor.minimap.enabled": false,
    "editor.formatOnSave": true,
    "files.autoSave": "onFocusChange",
    "cmake.configureOnOpen": true,
    "cmake.showOptionsMovedNotification": false,
    "window.zoomLevel": 3,
    "editor.fontSize": 12,
    "git.openRepositoryInParentFolders": "always",
    "42header.username": "my_login",
    "42header.email": "[email protected]",

from vscode-42-c-format.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.