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

Semantic Tokens: Do not use default theme #1029

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

ahmedneilhussain
Copy link
Contributor

Fix for #1028 - we requested the default theme if no TM mapping for the editor, but this calls syncExec. Reconciler threads mustn't block on the UI thread as it is possible for the UI thread to be blocked waiting for reconciliation; this deadlock was indeed observed.

Fix for eclipse#1028 - we requested the default theme if no TM mapping for the editor, but
this calls syncExec. Reconciler threads mustn't block on the UI thread as it is possible for the UI thread to be blocked
waiting for reconciliation; this deadlock was indeed observed.
@ahmedneilhussain ahmedneilhussain requested review from sebthom and rubenporras and removed request for sebthom June 17, 2024 14:52
@ahmedneilhussain
Copy link
Contributor Author

Hi @rubenporras without the fallback a test failed. I added a custom content type with a real TM grammar mapping and tweaked the expected tokens to match. Is that OK? Felt a bit heavyweight, but I couldn't see an easy way of mocking/injecting a TM mapping in the test setup. I thought it best to create a new content type mapping so that this change was segregated from the other tests.

@rubenporras
Copy link
Contributor

hi @ahmedneilhussain ,

some tests are still failing. Are these some flaky tests or does the removal of the fallback break those tests as well?

Regards

@ahmedneilhussain
Copy link
Contributor Author

hi @ahmedneilhussain ,

some tests are still failing. Are these some flaky tests or does the removal of the fallback break those tests as well?

Regards

HI according to this https://ci.eclipse.org/lsp4e/job/lsp4e-github/job/PR-1029/2/testReport/ all the tests are passing. Am I missing something? Some of the CI runs are complaining because of the eclipse version bump check - I'm not sure if I'm supposed to do something about that or whether it will get bumped as part of prep for next release.

There are definitely some flaky tests but I think the fallback should not interfere with the majority of tests: the mock language server won't have anything in place for semantic tokens other than where we are explicitly testing that functionality, and we don't configure tm4e other than where I just introduced it (for a new content type used only for this one case). I could be wrong, but the test run above and the fact they ran clean (but flaky!) locally suggests not...

Cheers,
Ahmed

@rubenporras
Copy link
Contributor

Sorry, I have not noticed that. You need to manually bump the version of org.eclipse.lsp4e.test, if I recall right in the manifest.mf and in the pom.xml.

Copy link
Contributor

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@rubenporras rubenporras merged commit 5f0770d into eclipse:main Jun 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants