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

VS Code freezes during syntax coloring #79640

Closed
swbrenneis opened this issue Aug 22, 2019 · 5 comments
Closed

VS Code freezes during syntax coloring #79640

swbrenneis opened this issue Aug 22, 2019 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@swbrenneis
Copy link

  • VSCode Version: 1.37.1
  • OS Version: Windows 7 Professional

Steps to Reproduce:

  1. Open a Java file with a very long string constant.
  2. VS Code window freezes when it starts syntax coloring.

The entire window is frozen, so the process explorer can't be used. Task manager says that VS code is using 25% CPU. This is repeatable.

Java files without a long string constant open as expected.

Does this issue occur when all extensions are disabled?: Yes

@RMacfarlane
Copy link
Contributor

@swbrenneis Can you provide a code sample that results in this problem?

@swbrenneis
Copy link
Author

I cannot provide the original files since they contain extremely sensitive information. I will work up a similar file and try to reproduce it.

@RMacfarlane RMacfarlane added the info-needed Issue requires more information from poster label Aug 24, 2019
@RMacfarlane RMacfarlane self-assigned this Aug 26, 2019
@swbrenneis
Copy link
Author

Sorry for the delay. Other work got in the way. This file reproduces the problem repeatably.

MyTest.zip

@RMacfarlane RMacfarlane removed the info-needed Issue requires more information from poster label Aug 29, 2019
@RMacfarlane RMacfarlane assigned rebornix and unassigned RMacfarlane Aug 29, 2019
@rebornix rebornix added the bug Issue identified by VS Code Team member as probable bug label Oct 21, 2019
@rebornix
Copy link
Member

I can reproduce this issue with file above and latest Java grammar in master but there is no issue with a simple java grammar https://github.com/microsoft/vscode-textmate/blob/master/test-cases/first-mate/fixtures/java.json

@rebornix rebornix assigned aeschli and unassigned rebornix Oct 21, 2019
@aeschli aeschli assigned alexr00 and unassigned aeschli Oct 22, 2019
@alexr00 alexr00 added grammar Syntax highlighting grammar and removed editor labels Oct 23, 2019
@alexr00 alexr00 added the upstream-issue-linked This is an upstream issue that has been reported upstream label Oct 23, 2019
@alexr00
Copy link
Member

alexr00 commented Oct 23, 2019

Moved to the owning repo.

@alexr00 alexr00 closed this as completed Oct 23, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

5 participants