Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码分析时间过久 #6954

Open
bitbullhorse opened this issue Feb 18, 2025 · 0 comments
Open

代码分析时间过久 #6954

bitbullhorse opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@bitbullhorse
Copy link

Type: Performance Issue

每次修改代码都需要分析很长时间

Extension version: 2025.2.1
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Connection to 'ssh-remote+10.108.24.116' could not be established
Remote OS version: Linux x64 6.8.0-51-generic

System Added Logs
2025-02-18 11:20:40.398 [info] (Client) Pylance async client (2025.2.1) started with python extension (2025.0.0)
2025-02-18 11:20:48.591 [info] [Info  - 11:20:48] (59903) Server root directory: file:///home/yjc/.vscode-server/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-18 11:20:48.635 [info] [Info  - 11:20:48] (59903) Pylance language server 2025.2.1 (pyright version 1.1.393, commit 3763156f) starting
2025-02-18 11:20:48.777 [info] [Info  - 11:20:48] (59903) Starting service instance "lora"
2025-02-18 11:20:48.908 [info] [Info  - 11:20:48] (59903) Setting environmentName for service "lora": "3.12.8 (deepseek conda)"
2025-02-18 11:20:48.909 [info] [Info  - 11:20:48] (59903) Setting pythonPath for service "lora": "/mnt/sda/envs/yjc/deepseek/bin/python"
2025-02-18 11:20:48.909 [info] [Info  - 11:20:48] (59903) No include entries specified; assuming /mnt/sdb/lora
2025-02-18 11:20:48.910 [info] [Info  - 11:20:48] (59903) Auto-excluding **/node_modules
2025-02-18 11:20:48.911 [info] [Info  - 11:20:48] (59903) Auto-excluding **/__pycache__
2025-02-18 11:20:48.911 [info] [Info  - 11:20:48] (59903) Auto-excluding **/.*
2025-02-18 11:20:48.972 [info] [Info  - 11:20:48] (59903) Assuming Python version 3.12.8.final.0
2025-02-18 11:20:49.183 [info] [Info  - 11:20:49] (59903) Found 16 source files
2025-02-18 11:20:50.393 [info] [Info  - 11:20:50] (59903) Background analysis(1) root directory: file:///home/yjc/.vscode-server/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-18 11:20:50.400 [info] [Info  - 11:20:50] (59903) Background analysis(1) started
2025-02-18 11:20:50.616 [info] [Info  - 11:20:50] (59903) Indexer background runner(2) root directory: file:///home/yjc/.vscode-server/extensions/ms-python.vscode-pylance-2025.2.1/dist (index)
2025-02-18 11:20:50.616 [info] [Info  - 11:20:50] (59903) Indexing(2) started
2025-02-18 11:20:51.975 [info] [Info  - 11:20:51] (59903) scanned(2) 188 files over 1 exec env
2025-02-18 11:21:03.482 [info] [Info  - 11:21:03] (59903) [IDX(2)] Long operation: index execution environment file:///mnt/sdb/lora (10781ms)
2025-02-18 11:21:03.532 [info] [Info  - 11:21:03] (59903) [IDX(2)] Long operation: index packages file:///mnt/sdb/lora (10850ms)
2025-02-18 11:21:03.533 [info] [Info  - 11:21:03] (59903) indexed(2) 188 files over 1 exec env
2025-02-18 11:21:03.852 [info] [Info  - 11:21:03] (59903) Indexing finished(2).
2025-02-18 11:21:04.414 [info] [Info  - 11:21:04] (59903) [BG(1)] Long operation: SemanticTokens range 107:0 - 210:0 at file:///mnt/sdb/lora/qwen/main.py (13721ms)
2025-02-18 11:21:24.876 [info] [Info  - 11:21:24] (59903) [BG(1)] Long operation: SemanticTokens delta previousResultId:1739848865513 at file:///mnt/sdb/lora/qwen/main.py (4858ms)
2025-02-18 11:23:57.905 [info] [Info  - 11:23:57] (59903) Starting service instance "<default>"
2025-02-18 11:23:57.995 [info] [Info  - 11:23:57] (59903) Setting environmentName for service "<default>": "3.12.8 (deepseek conda)"
2025-02-18 11:23:57.995 [info] [Info  - 11:23:57] (59903) Setting pythonPath for service "<default>": "/mnt/sda/envs/yjc/deepseek/bin/python"
2025-02-18 11:23:57.995 [info] [Info  - 11:23:57] (59903) No include entries specified; assuming /<default workspace root>
2025-02-18 11:23:57.996 [info] [Info  - 11:23:57] (59903) Auto-excluding **/node_modules
2025-02-18 11:23:57.996 [info] [Info  - 11:23:57] (59903) Auto-excluding **/__pycache__
2025-02-18 11:23:57.996 [info] [Info  - 11:23:57] (59903) Auto-excluding **/.*
2025-02-18 11:23:58.619 [info] [Info  - 11:23:58] (59903) Assuming Python version 3.12.8.final.0
2025-02-18 11:23:58.624 [info] [Error - 11:23:58] (59903) File or directory "/<default workspace root>" does not exist.
2025-02-18 11:23:58.626 [info] [Info  - 11:23:58] (59903) No source files found.
2025-02-18 11:23:58.821 [info] [Info  - 11:23:58] (59903) Setting environmentName for service "lora": "3.12.8 (deepseek conda)"
2025-02-18 11:23:58.822 [info] [Info  - 11:23:58] (59903) Setting pythonPath for service "lora": "/mnt/sda/envs/yjc/deepseek/bin/python"
2025-02-18 11:23:58.822 [info] [Info  - 11:23:58] (59903) No include entries specified; assuming /mnt/sdb/lora
2025-02-18 11:23:58.822 [info] [Info  - 11:23:58] (59903) Auto-excluding **/node_modules
2025-02-18 11:23:58.822 [info] [Info  - 11:23:58] (59903) Auto-excluding **/__pycache__
2025-02-18 11:23:58.823 [info] [Info  - 11:23:58] (59903) Auto-excluding **/.*
2025-02-18 11:23:58.901 [info] [Info  - 11:23:58] (59903) Assuming Python version 3.12.8.final.0
2025-02-18 11:23:59.103 [info] [Info  - 11:23:59] (59903) Found 16 source files
2025-02-18 11:23:59.341 [info] [Info  - 11:23:59] (59903) Setting environmentName for service "<default>": "3.12.8 (deepseek conda)"
2025-02-18 11:23:59.341 [info] [Info  - 11:23:59] (59903) Setting pythonPath for service "<default>": "/mnt/sda/envs/yjc/deepseek/bin/python"
2025-02-18 11:23:59.341 [info] [Info  - 11:23:59] (59903) No include entries specified; assuming /<default workspace root>
2025-02-18 11:23:59.341 [info] [Info  - 11:23:59] (59903) Auto-excluding **/node_modules
2025-02-18 11:23:59.341 [info] [Info  - 11:23:59] (59903) Auto-excluding **/__pycache__
2025-02-18 11:23:59.341 [info] [Info  - 11:23:59] (59903) Auto-excluding **/.*
2025-02-18 11:23:59.421 [info] [Info  - 11:23:59] (59903) Assuming Python version 3.12.8.final.0
2025-02-18 11:23:59.576 [info] [Error - 11:23:59] (59903) File or directory "/<default workspace root>" does not exist.
2025-02-18 11:23:59.577 [info] [Info  - 11:23:59] (59903) No source files found.
2025-02-18 11:24:00.105 [info] [Info  - 11:24:00] (59903) Background analysis(3) root directory: file:///home/yjc/.vscode-server/extensions/ms-python.vscode-pylance-2025.2.1/dist
2025-02-18 11:24:00.105 [info] [Info  - 11:24:00] (59903) Background analysis(3) started
2025-02-18 11:24:00.701 [info] [Info  - 11:24:00] (59903) Indexer background runner(4) root directory: file:///home/yjc/.vscode-server/extensions/ms-python.vscode-pylance-2025.2.1/dist (index)
2025-02-18 11:24:00.701 [info] [Info  - 11:24:00] (59903) Indexing(4) started
2025-02-18 11:24:01.945 [info] [Info  - 11:24:01] (59903) scanned(4) 188 files over 1 exec env
2025-02-18 11:24:02.871 [info] [Info  - 11:24:02] (59903) indexed(4) 188 files over 1 exec env
2025-02-18 11:24:03.383 [info] [Info  - 11:24:03] (59903) Indexing finished(4).
2025-02-18 11:24:04.665 [info] [Info  - 11:24:04] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen-test.py (4525ms)
2025-02-18 11:24:04.665 [info] [Info  - 11:24:04] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen-test.py (4532ms)
2025-02-18 11:24:14.178 [info] [Info  - 11:24:14] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (9488ms)
2025-02-18 11:24:14.179 [info] [Info  - 11:24:14] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (9497ms)
2025-02-18 11:24:45.073 [info] [Info  - 11:24:45] (59903) [BG(1)] Long operation: SemanticTokens delta previousResultId:1739849054403 at file:///mnt/sdb/lora/qwen/main.py (5778ms)
2025-02-18 11:26:29.684 [info] [Info  - 11:26:29] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5618ms)
2025-02-18 11:26:29.685 [info] [Info  - 11:26:29] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5642ms)
2025-02-18 11:26:44.660 [info] [Info  - 11:26:44] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5537ms)
2025-02-18 11:26:44.661 [info] [Info  - 11:26:44] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5552ms)
2025-02-18 11:26:49.161 [info] [Info  - 11:26:49] (59903) [BG(1)] Long operation: SemanticTokens delta previousResultId:1739849184714 at file:///mnt/sdb/lora/qwen/main.py (5555ms)
2025-02-18 11:26:53.539 [info] [Info  - 11:26:53] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5171ms)
2025-02-18 11:26:53.539 [info] [Info  - 11:26:53] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5188ms)
2025-02-18 11:26:57.827 [info] [Info  - 11:26:57] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5053ms)
2025-02-18 11:26:57.827 [info] [Info  - 11:26:57] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5066ms)
2025-02-18 11:27:02.160 [info] [Info  - 11:27:02] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5098ms)
2025-02-18 11:27:02.160 [info] [Info  - 11:27:02] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5110ms)
2025-02-18 11:27:06.973 [info] [Info  - 11:27:06] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5139ms)
2025-02-18 11:27:06.973 [info] [Info  - 11:27:06] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5153ms)
2025-02-18 11:27:15.362 [info] [Info  - 11:27:15] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5022ms)
2025-02-18 11:27:15.362 [info] [Info  - 11:27:15] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5037ms)
2025-02-18 11:27:19.575 [info] [Info  - 11:27:19] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (4874ms)
2025-02-18 11:27:19.575 [info] [Info  - 11:27:19] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (4887ms)
2025-02-18 11:27:23.933 [info] [Info  - 11:27:23] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (5376ms)
2025-02-18 11:27:23.934 [info] [Info  - 11:27:23] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (5392ms)
2025-02-18 11:27:28.149 [info] [Info  - 11:27:28] (59903) [BG(1)] Long operation: checking: file:///mnt/sdb/lora/qwen/main.py (4903ms)
2025-02-18 11:27:28.149 [info] [Info  - 11:27:28] (59903) [BG(1)] Long operation: analyzing: file:///mnt/sdb/lora/qwen/main.py (4914ms)

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 39.86GB (30.54GB free)
Process Argv --crash-reporter-id 919f8f94-9e64-4597-a11e-dc288454fbe4
Screen Reader no
VM 44%

Connection to 'ssh-remote+10.108.24.116' could not be established

Item Value
Remote SSH: 10.108.24.116
OS Linux x64 6.8.0-51-generic
CPUs Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz (80 x 3099)
Memory (System) 125.52GB (111.72GB free)
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   150	  2008	code main
    0	   233	  5400	window [1] (LangChainRagDemo.ipynb - czj [SSH: 10.108.24.116] - Visual Studio Code)
    0	    32	  5860	   crashpad-handler
    1	   204	  8004	   gpu-process
    0	   172	  8052	extensionHost [1]
    0	   162	  9940	extensionHost [2]
    0	    94	 10840	fileWatcher [1]
    0	   113	 13648	ptyHost
    0	     6	 11092	     conpty-agent
    0	     4	 15132	     C:\WINDOWS\System32\cmd.exe /c (type "C:\Users\ilyxj\AppData\Local\Temp\vscode-linux-multi-line-command-10.108.24.116-23136618.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 64030 "10.108.24.116" sh) & exit /b 0
    0	     9	 18516	       "C:\WINDOWS\System32\OpenSSH\ssh.exe"  -T -D 64030 "10.108.24.116" sh
    0	     4	 18468	     C:\WINDOWS\System32\cmd.exe /c (type "C:\Users\ilyxj\AppData\Local\Temp\vscode-linux-multi-line-command-10.108.24.116-581728936.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 57366 "10.108.24.116" sh) & exit /b 0
    0	    10	 13144	       "C:\WINDOWS\System32\OpenSSH\ssh.exe"  -T -D 57366 "10.108.24.116" sh
    0	    32	 20204	       
    0	     6	 18780	     conpty-agent
    1	   329	 14304	window [2] (main.py - lora [SSH: 10.108.24.116] - Visual Studio Code)
    0	   106	 14588	fileWatcher [2]
    0	    89	  9440	     
    0	   113	 14952	   window
    0	   140	 16040	shared-process
    0	    50	 18248	   utility-network-service
Connection to 'ssh-remote+10.108.24.116' could not be established

Remote: SSH: 10.108.24.116
CPU %	Mem MB	   PID	Process
    0	     0	4169786	remote agent
    0	     0	4169883	   ptyHost
Workspace Info

Connection to 'ssh-remote+10.108.24.116' could not be established
|  Remote: SSH: 10.108.24.116|    Folder (lora): 30 files|      File types: py(16) pyc(3) pdf(2) swo(1) json(1) txt(1) md(1)
|      Conf files: settings.json(1);
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputscf:31238124
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686
g941i948:31240199

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants