Comments (4)
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.
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.
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.
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)
- Not working on Windows HOT 2
- No module named c_formatter_42 HOT 1
- VSCodium HOT 1
- Install from a VSIX HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-42-c-format.