-
Notifications
You must be signed in to change notification settings - Fork 206
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
[Eclipse] js syntax highlight disabled by STS4 #702
Comments
STS 4.12.1 Plugin The above also causes problems. |
I can reproduce this issue, thanks for reporting this. I do not immediately see the reason why this breaks, so this needs some deeper investigation. My initial guess is that this is related to newer versions of the tm4e bundles being installed when the Spring Tools 4 get installed and maybe causing some incompatibility here, but this is just initial guesswork. I will continue the investigations here. |
This works out-of-the-box in the Spring Tools 4 for Eclipse distributions that you can download from https://spring.io/tools or even the latest nightly builds on Eclipse 2021-12 milestones from https://dist.springsource.com/snapshot/STS4/nightly-distributions.html, but I can reproduce this after installing the Spring Tools into an existing Eclipse JEE package. Now need to find out why this breaks when the Spring Tools are installed as an extension to an existing Eclipse JEE package. |
The solution to this is to install the latest TM4E via:
This should bring back the syntax highlighting for JavaScript files. This problem doesn't seem to occur in the latest Eclipse 2021-12 RC1 when installing the latest Spring Tools 4 extension from https://dist.springsource.com/snapshot/TOOLS/sts4/nightly/e4.22 - if you want to use the latest for the upcoming Eclipse 2021-12 release. |
Hello, the issue persists both in a fresh installation of Spring Tool Suite 4 (4.17.2.RELEASE) and as a plugin (4.17.2.202301311045) of latest Eclipse (2022-12). |
@cdiama Can you share a few more details here? I have a fresh STS 4.17.2.RELEASE running, created a JS file and it looks like I get syntax highlighting just fine. Do you open the JS files with the |
Hello Martin (@martinlippert), Thanks for your prompt reply! Let me share the steps I went through:
... then, an interesting sequence follows ...
Exported Error Logs: |
Thanks a lot @cdiama for the detailed description, this helps a lot to actually see the issue in action. That is great. I can reproduce this with the latest STS builds as well. I also tried the latest Eclipse WWD release, which does NOT have the issue. The latest Eclipse JEE 2023-03 milestone builds also do NOT show the issue, so it seems to be very specific for the STS builds. Based on the error log, it might be related to the snapshot version of lsp4e that we use and ship (to include a number of important fixes), so let's see if we can get to the root cause of this. |
Let's track this in a separate issue: #993 |
Thanks again @cdiama for the detailed report, this is now fixed in the latest lsp4e snapshot builds, will be included in the upcoming STS 4.18.0 release (scheduled for next week). |
STS 4.12.1
eclipse-jee 2021-09
The text was updated successfully, but these errors were encountered: