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

Language server will idle or slow when open more 6 files in workspace #1317

Closed
3 tasks done
yoyo930021 opened this issue Jun 3, 2019 · 5 comments
Closed
3 tasks done
Labels

Comments

@yoyo930021
Copy link
Member

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.21.0
  • VS Code version: 1.34.0

Problem

[Trace - 10:57:24 AM] Sending request 'textDocument/hover - (48)'.
[Trace - 10:57:24 AM] Sending notification '$/cancelRequest'.
[Trace - 10:57:25 AM] Received response 'textDocument/hover - (48)' in 1516ms.
[Trace - 10:57:29 AM] Sending request 'textDocument/documentColor - (49)'.
[Trace - 10:57:29 AM] Sending request 'textDocument/documentLink - (50)'.
[Trace - 10:57:29 AM] Sending request 'textDocument/codeAction - (51)'.
[Trace - 10:57:29 AM] Received response 'textDocument/documentColor - (49)' in 189ms.
[Trace - 10:57:29 AM] Received response 'textDocument/documentLink - (50)' in 179ms.
[Trace - 10:57:29 AM] Received response 'textDocument/codeAction - (51)' in 193ms.
[Trace - 10:57:42 AM] Sending notification 'textDocument/didOpen'.
[Trace - 10:57:42 AM] Sending request 'textDocument/documentColor - (52)'.
[Trace - 10:57:42 AM] Sending request 'textDocument/documentLink - (53)'.
[Trace - 10:57:42 AM] Sending request 'textDocument/codeAction - (54)'.
[Trace - 10:57:43 AM] Sending request 'textDocument/documentSymbol - (55)'.
[Trace - 10:58:31 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 10:58:31 AM] Received response 'textDocument/documentColor - (52)' in 48719ms.
[Trace - 10:58:31 AM] Received response 'textDocument/documentLink - (53)' in 48707ms.
[Trace - 10:58:31 AM] Received response 'textDocument/codeAction - (54)' in 48706ms.
[Trace - 10:58:32 AM] Received response 'textDocument/documentSymbol - (55)' in 49171ms.
[Trace - 11:30:15 AM] Sending notification 'textDocument/didOpen'.
[Trace - 11:30:15 AM] Sending request 'textDocument/documentColor - (56)'.
[Trace - 11:30:15 AM] Sending request 'textDocument/documentLink - (57)'.
[Trace - 11:30:15 AM] Sending request 'textDocument/codeAction - (58)'.
[Trace - 11:30:15 AM] Received response 'textDocument/documentColor - (56)' in 34ms.
[Trace - 11:30:15 AM] Received response 'textDocument/documentLink - (57)' in 12ms.
[Trace - 11:30:15 AM] Received response 'textDocument/codeAction - (58)' in 11ms.
[Trace - 11:30:16 AM] Sending request 'textDocument/documentSymbol - (59)'.
[Trace - 11:30:17 AM] Sending request 'textDocument/codeAction - (60)'.
[Trace - 11:30:26 AM] Sending request 'textDocument/hover - (61)'.
[Trace - 11:30:26 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:27 AM] Sending request 'textDocument/hover - (62)'.
[Trace - 11:30:27 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:28 AM] Sending request 'textDocument/hover - (63)'.
[Trace - 11:30:28 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:28 AM] Sending request 'textDocument/hover - (64)'.
[Trace - 11:30:28 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:28 AM] Sending request 'textDocument/hover - (65)'.
[Trace - 11:30:28 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:29 AM] Sending request 'textDocument/hover - (66)'.
[Trace - 11:30:29 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:29 AM] Sending request 'textDocument/hover - (67)'.
[Trace - 11:30:29 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:30 AM] Sending request 'textDocument/hover - (68)'.
[Trace - 11:30:30 AM] Sending notification '$/cancelRequest'.
[Trace - 11:30:30 AM] Sending request 'textDocument/hover - (69)'.
[Trace - 11:30:36 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:30:36 AM] Received response 'textDocument/documentSymbol - (59)' in 19844ms.
[Trace - 11:30:36 AM] Received response 'textDocument/codeAction - (60)' in 18875ms.
[Trace - 11:30:36 AM] Received response 'textDocument/hover - (61)' in 10005ms.
[Trace - 11:30:37 AM] Received response 'textDocument/hover - (62)' in 9780ms.
[Trace - 11:30:37 AM] Received response 'textDocument/hover - (63)' in 9691ms.
[Trace - 11:30:38 AM] Received response 'textDocument/hover - (64)' in 9625ms.
[Trace - 11:30:38 AM] Received response 'textDocument/hover - (65)' in 9599ms.
[Trace - 11:30:38 AM] Received response 'textDocument/hover - (66)' in 9253ms.
[Trace - 11:30:38 AM] Received response 'textDocument/hover - (67)' in 9191ms.
[Trace - 11:30:39 AM] Received response 'textDocument/hover - (68)' in 9171ms.
[Trace - 11:30:39 AM] Received response 'textDocument/hover - (69)' in 9011ms.
[Trace - 11:31:11 AM] Sending request 'textDocument/hover - (70)'.
[Trace - 11:31:11 AM] Sending notification '$/cancelRequest'.
[Trace - 11:31:12 AM] Received response 'textDocument/hover - (70)' in 1115ms.
[Trace - 11:43:11 AM] Sending request 'textDocument/hover - (71)'.
[Trace - 11:43:11 AM] Sending notification '$/cancelRequest'.
[Trace - 11:43:12 AM] Received response 'textDocument/hover - (71)' in 1188ms.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Sending notification 'textDocument/didClose'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:02 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:29 AM] Sending notification 'textDocument/didOpen'.
[Trace - 11:44:29 AM] Sending request 'textDocument/documentColor - (72)'.
[Trace - 11:44:29 AM] Sending request 'textDocument/documentLink - (73)'.
[Trace - 11:44:29 AM] Sending request 'textDocument/codeAction - (74)'.
[Trace - 11:44:29 AM] Sending request 'textDocument/documentSymbol - (75)'.
[Trace - 11:44:29 AM] Received response 'textDocument/documentColor - (72)' in 272ms.
[Trace - 11:44:29 AM] Received response 'textDocument/documentLink - (73)' in 267ms.
[Trace - 11:44:29 AM] Received response 'textDocument/codeAction - (74)' in 289ms.
[Trace - 11:44:32 AM] Sending request 'textDocument/hover - (76)'.
[Trace - 11:44:33 AM] Sending notification '$/cancelRequest'.
[Trace - 11:44:34 AM] Sending request 'textDocument/hover - (77)'.
[Trace - 11:44:40 AM] Sending notification '$/cancelRequest'.
[Trace - 11:44:51 AM] Received response 'textDocument/documentSymbol - (75)' in 22102ms.
[Trace - 11:44:51 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:44:51 AM] Received response 'textDocument/hover - (76)' in 19135ms.
[Trace - 11:44:51 AM] Received response 'textDocument/hover - (77)' in 17753ms.
[Trace - 11:44:54 AM] Sending request 'textDocument/documentHighlight - (78)'.
[Trace - 11:44:54 AM] Received response 'textDocument/documentHighlight - (78)' in 2ms.
[Trace - 11:44:55 AM] Sending request 'textDocument/codeAction - (79)'.
[Trace - 11:44:55 AM] Received response 'textDocument/codeAction - (79)' in 1ms.
[Trace - 11:45:04 AM] Sending notification 'textDocument/didOpen'.
[Trace - 11:45:04 AM] Sending request 'textDocument/documentColor - (80)'.
[Trace - 11:45:04 AM] Sending request 'textDocument/documentLink - (81)'.
[Trace - 11:45:04 AM] Sending request 'textDocument/codeAction - (82)'.
[Trace - 11:45:04 AM] Sending request 'textDocument/documentSymbol - (83)'.
[Trace - 11:45:04 AM] Received response 'textDocument/documentColor - (80)' in 106ms.
[Trace - 11:45:04 AM] Received response 'textDocument/documentLink - (81)' in 103ms.
[Trace - 11:45:04 AM] Received response 'textDocument/codeAction - (82)' in 129ms.
[Trace - 11:45:48 AM] Received response 'textDocument/documentSymbol - (83)' in 43637ms.
[Trace - 11:45:48 AM] Received notification 'textDocument/publishDiagnostics'.
[Trace - 11:47:14 AM] Sending request 'textDocument/hover - (84)'.
[Trace - 11:47:14 AM] Received response 'textDocument/hover - (84)' in 4ms.
Debugger listening on ws://127.0.0.1:8000/d4662f2b-b8c3-493a-a113-b1e5ab55aac3
For help, see: https://nodejs.org/en/docs/inspector
[Trace - 11:59:00 AM] Sending request 'textDocument/documentHighlight - (85)'.
[Trace - 11:59:00 AM] Received response 'textDocument/documentHighlight - (85)' in 9ms.
[Trace - 11:59:01 AM] Sending request 'textDocument/codeAction - (86)'.
[Trace - 11:59:01 AM] Received response 'textDocument/codeAction - (86)' in 3ms.

CPU-20190603T105845.cpuprofile.zip

Reproducible Case

@octref octref added the perf label Jun 19, 2019
@yoyo930021
Copy link
Member Author

CPU-20190711T174444.cpuprofile.zip

Open one file when a big project.

@octref octref mentioned this issue Aug 6, 2019
9 tasks
@octref
Copy link
Member

octref commented Sep 27, 2019

Sorry for the late response — do you mind trying master again and see if #1442 helps?

From your profile I see very slow stylus parsing. Seems to originate from Stylus parser.

@yoyo930021
Copy link
Member Author

I'm trying.

It works when one file,
but opening other files was breaking.
All features are breaking.

@yoyo930021
Copy link
Member Author

Hi @octref I've tried master branch, but there were other bugs.

Open the first file is fine, but opening multiple files at once, all the vetur features are broken.

I'll upload another gif to demo this bug.

@yoyo930021
Copy link
Member Author

bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants