visual-studio-code

When launch vscode my SO is very slow

為{幸葍}努か 提交于 2021-01-03 06:40:05
问题 Today in the morning when i launched vscode my Debian 9 it became very slow. Then when i run in terminal code --disable-extensions it worked normally Any has a idea about how to detect the package with the bug? 回答1: Please follow this guide for help tracking down which extension is causing performance issues. To start, run code --status from the commandline while VS Code is running. This will print out a list of all VS Code processes and their resource usage: Once you track down the bad

When launch vscode my SO is very slow

六月ゝ 毕业季﹏ 提交于 2021-01-03 06:36:24
问题 Today in the morning when i launched vscode my Debian 9 it became very slow. Then when i run in terminal code --disable-extensions it worked normally Any has a idea about how to detect the package with the bug? 回答1: Please follow this guide for help tracking down which extension is causing performance issues. To start, run code --status from the commandline while VS Code is running. This will print out a list of all VS Code processes and their resource usage: Once you track down the bad

VSCode dart analyzer stopped recognizing flutter/dart code

為{幸葍}努か 提交于 2021-01-02 06:02:45
问题 I have been using VSCode for flutter development without issue, then today all of a sudden the dart analyzer is complaining that the majority of the classes are undefined, or targets do not exists. Has anyone seen this before? I have restarted VSCode, restarted computer, uninstalled flutter/dart plugins, ran flutter doctor with no issues...I am out of ideas. VSCode Issues 回答1: Go to pubspec.yaml , right click and do Get Packages . It seems to work for me all the time. 回答2: The issue might be

vscode python refactor failed

我只是一个虾纸丫 提交于 2021-01-02 05:51:47
问题 When I tried to rename myset in the following code, I saw the following message. class NumberGenerator: def __init__(self): self.__myset__ = set() def uncount(self, i): self.__myset__.add(i) Refactor failed. module 'rope.base.ast' has no attribute 'Str' [<FrameSummary file refactor.py, line 294 in watch>, <FrameSummary file refactor.py, line 274 in _process_request>, <FrameSummary file refactor.py, line 206 in _rename>, ... It's so long, if you want to see I can show you. Is this code wrong?

vscode python refactor failed

≯℡__Kan透↙ 提交于 2021-01-02 05:48:09
问题 When I tried to rename myset in the following code, I saw the following message. class NumberGenerator: def __init__(self): self.__myset__ = set() def uncount(self, i): self.__myset__.add(i) Refactor failed. module 'rope.base.ast' has no attribute 'Str' [<FrameSummary file refactor.py, line 294 in watch>, <FrameSummary file refactor.py, line 274 in _process_request>, <FrameSummary file refactor.py, line 206 in _rename>, ... It's so long, if you want to see I can show you. Is this code wrong?

VSCode's debugging mode always stop at first line

て烟熏妆下的殇ゞ 提交于 2021-01-02 04:40:52
问题 I am using vscode for python development. I sometimes use debug running mode, and vscode always stop at first line even if there are no breakpoints. I attached a screenshot of this phenomenon. It's a little annoying and I want to skip this. Are there any ways to skip this? My Env Code Runner 0.6.5 MagicPython 1.0.3 Python 0.5.5 Python for VSCode 回答1: The launch.json file has the setting "stopOnEntry":true . Change this to false to prevent this. The docs for this can be found https://code

VSCode's debugging mode always stop at first line

末鹿安然 提交于 2021-01-02 04:38:52
问题 I am using vscode for python development. I sometimes use debug running mode, and vscode always stop at first line even if there are no breakpoints. I attached a screenshot of this phenomenon. It's a little annoying and I want to skip this. Are there any ways to skip this? My Env Code Runner 0.6.5 MagicPython 1.0.3 Python 0.5.5 Python for VSCode 回答1: The launch.json file has the setting "stopOnEntry":true . Change this to false to prevent this. The docs for this can be found https://code

Visual Studio Code “undefined reference to `WinMain@16'”

末鹿安然 提交于 2021-01-01 13:44:25
问题 so I am trying to make a Windows Desktop Application with c++ in Visual Studio Code and using MinGW as my compiler. I have a file called test.cpp in a folder called src : #ifndef UNICODE #define UNICODE #endif #include <windows.h> int wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nCmdShow){ const wchar_t name[] = L"Test"; WNDCLASS wc = {}; //wc.lpfnWndProc = WindowProc; wc.hInstance = hInstance; wc.lpszClassName = name; RegisterClass(&wc); HWND hWnd =

Visual Studio Code “undefined reference to `WinMain@16'”

[亡魂溺海] 提交于 2021-01-01 13:38:45
问题 so I am trying to make a Windows Desktop Application with c++ in Visual Studio Code and using MinGW as my compiler. I have a file called test.cpp in a folder called src : #ifndef UNICODE #define UNICODE #endif #include <windows.h> int wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nCmdShow){ const wchar_t name[] = L"Test"; WNDCLASS wc = {}; //wc.lpfnWndProc = WindowProc; wc.hInstance = hInstance; wc.lpszClassName = name; RegisterClass(&wc); HWND hWnd =

How to debug “built” production NodeJS

谁说我不能喝 提交于 2021-01-01 09:29:12
问题 I am using Visual Studio code to debug a node application in production environment The Node process runs inside docker, I port-forwarded and signaled USR1 to enable attaching debugger from VS code to that node process My VS Code configuration is like this { "version": "0.2.0", "configurations": [ { "type": "node", "request": "attach", "name": "Debug: service", "sourceMaps": true, "smartStep": true, "remoteRoot": "/src/", "localRoot": "/home/my-username/work/orders/src/", "protocol":