Error while formating document in VS Code
See original GitHub issueI installed extension in VS Code and GDTollkit with pip3. Formating with GDToolkit works in terminal, but when trying to run in VS Code, it throws an error: ImportError: No module named gdtoolkit.formatter
.
I work on macOS 10.15.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Notifying the user of "Error formatting document" #1419 - GitHub
I have the VS Code with the Prettier extension installed. I'm always frustrated when I don't know why my code is not formatted...
Read more >Visual Code Formatting Error - Stack Overflow
Currently i have a "error" in my code formatting after updating vs code (1.15.1). When i write a if statement and try to...
Read more >How to fix Prettier Extension not working issue in VS CODE
How to fix Prettier Extension not working issue in VS CODE. ... How to Format Code Automatically with Prettier and VS Code. Tomasz...
Read more >Documentation for Visual Studio Code
Optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux,...
Read more >JavaScript Programming with Visual Studio Code
Visual Studio Code includes built-in JavaScript IntelliSense, debugging, formatting, code navigation, refactorings, and many other advanced language features.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@F0rsaken Okay, make sure of the following:
python3
and notpython
The default
python
on macOS is assigned to python 2, but you installed it with pip3 (and GDtoolkit requires python 3.) So when VSCode tries to use the python runtime, it’s running it with python2 and is unable to find GDToolkit, and tells you as much.If you can’t find the Python Path setting, make sure to install the Python extension.
I do
blows dust off of it
I’ll take a look.