Skip to content

random delay before several actions #16768

@GongT

Description

@GongT

Environment data

  • VS Code version: 1.59.0-insider (user setup) e8a59bc6f920e731b47f0bc72263e82aba8b796e
  • Extension version (available under the Extensions sidebar): 2021.7.1053846006
  • OS and version: Windows_NT x64 10.0.19043
  • Remote OS: Fedora release 34
  • Python version: Python 3.9.6
  • Type of virtual environment used: venv and N/A
  • Value of the python.languageServer setting: Default

Actual behaviour

Random 5~10s delay before these actions:

  • format file (a infinit progress bar on top of the editer)
  • start debug (debug toolbar show immediately, with pause and stop button enabled)
  • auto input source xxx/activate when open new terminal
  • auto lint when open file

No log output and python not start (in ps output) during the wait.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

用户属于 'pythonaacf' 实验组
用户属于 'pythonJediLSP' 实验组
用户属于 'pythonDiscoveryModuleWithoutWatcher' 实验组
用户属于 'pythonTensorboardExperiment' 实验组
用户属于 'pythonSurveyNotification' 实验组
用户属于 'PythonPyTorchProfiler' 实验组
用户属于 'pythonDeprecatePythonPath' 实验组
用户属于 'pythonSortEnvscf' 实验组
Python 解释器路径: ./.venv/bin/python
Error 2021-07-23 13:28:30: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): 无法读取文件'vscode-remote://ssh-remote+ci-home/root/.config/Code - Insiders/User/settings.json' (Error: 无法解析不存在的文件"vscode-remote://ssh-remote+ci-home/root/.config/Code - Insiders/User/settings.json")
	at _handleError (/root/.vscode-server-insiders/bin/e8a59bc6f920e731b47f0bc72263e82aba8b796e/out/vs/server/remoteExtensionHostProcess.js:85:158354)
	at async y.readText (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1053846006/out/client/extension.js:9:341417)
	at async p.doesFileNeedToBeFixed (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1053846006/out/client/extension.js:59:589732)
	at async /root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1053846006/out/client/extension.js:59:588859
	at async Promise.all (index 0)
	at async p.getFilesToBeFixed (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1053846006/out/client/extension.js:59:588805)
	at async p.updateTestSettings (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1053846006/out/client/extension.js:59:588432)] {
  code: 'FileNotFound'
}
> /MY_PROJECT/.venv/bin/python -m pylint --enable=W0614 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text /MY_PROJECT/main.py
cwd: /MY_PROJECT
> /MY_PROJECT/.venv/bin/python -m pylint --enable=W0614 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text /MY_PROJECT/main.py
cwd: /MY_PROJECT
##########Linting Output - pylint##########
************* Module main
1,0,convention,missing-module-docstring:Missing module docstring
4,0,error,no-value-for-parameter:No value for argument 'url' in function call

----------------------------------------------------------------------
Your code has been rated at -10.00/10 (previous run: -10.00/10, +0.00)

正在启动 Pylance 语言服务器。
> /MY_PROJECT/.venv/bin/python -m yapf --diff /MY_PROJECT/main.py
cwd: /MY_PROJECT
> /MY_PROJECT/.venv/bin/python -m yapf --diff /MY_PROJECT/main.py
cwd: /MY_PROJECT
> conda --version
> /MY_PROJECT/.venv/bin/python -m yapf --diff /MY_PROJECT/main.py
cwd: /MY_PROJECT
> /MY_PROJECT/.venv/bin/python -m yapf --diff /MY_PROJECT/main.py
cwd: /MY_PROJECT

everytime I format a file, there's two lines in the log, is this normal?

Metadata

Metadata

Assignees

Labels

area-editor-*User-facing catch-allbugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityregressionBug didn't exist in a previous releaseverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions