JetBrains / web-types

JSON standard for documenting web component libraries for IDEs, documentation generators and other tools
Apache License 2.0
279 stars 25 forks source link

web-types entry in package.json breaks (Vue) syntax highlighting #18

Closed dancarasco closed 3 years ago

dancarasco commented 3 years ago

The "web-types" entry in package.json seems to be breaking syntax highlighting in the editor, specifically with Vue:

Without web-types entry in package.json:

Screenshot from 2020-09-09 15-21-58

With web-types entry in package.json:

Screenshot from 2020-09-09 15-23-16

I also notice that IntelliJ is stuck on "Analzying" (but it isn't doing anything)

Screenshot from 2020-09-09 15-23-54

The "File" menu seems inaccessible too, clicking it does nothing, as if IntelliJ is stuck.

Removing the "web-types" entry in package.json fixes the syntax highlighting issue, and "Analyzing" message disappears. Happy to provide the web-types json file, and any other IntelliJ debug logs needed :)

IntelliJ debug log: https://gist.github.com/dancarasco/1bcf95efefc9ee12d6bde69b9c106e53

Screenshot from 2020-09-09 15-33-29

Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal

IntelliJ IDEA Ultimate:

Screenshot from 2020-09-09 15-33-09

piotrtomiak commented 3 years ago

@dancarasco - thanks for reporting that! Just in time. I have fixed the issue in Vue plugin already, but failed to cherrypick it to 202 release branch. I've done that just now and the fix will be in the 2020.2.2 release next week.