microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.61k stars 28.67k forks source link

Getting Error for whenever creating HTML doc #227926

Closed MSmit99 closed 1 week ago

MSmit99 commented 1 week ago

Type: Bug

On the top of any of my html files, I get an error. On the top of the page usually under the '<'or html' in <!DOCTYPE html> i get a red squiggly that tells me: "Unknown Word (cssSyntaxError) styleLint(cssSyntaxError). When I click to view the problem it tells me the exact same thing with no solutions or anything. Same goes with comments,

, (function () { for my js files, etc on the first line. The code works and runs just its really annoying whenever you look at it and all of your html and even js files tell you have an error. Disabled all of my extensions to no avail so its clearly not that either.

VS Code version: Code 1.92.2 (Universal) (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Darwin arm64 23.4.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|5, 3, 2| |Memory (System)|16.00GB (0.09GB free)| |Process Argv|--crash-reporter-id e0a7ab88-5dcc-44a9-9357-0fe1350886a1| |Screen Reader|no| |VM|0%|
Extensions (36) Extension|Author (truncated)|Version ---|---|--- vscode-eslint|dba|3.0.10 javascript-ejs-support|Dig|1.3.3 gitlens|eam|15.4.0 vscode-toggle-column-selection|eri|1.0.6 prettier-vscode|esb|11.0.0 file-icons|fil|1.1.0 auto-close-tag|for|0.5.15 stylelint-plus|hex|0.57.0 ftp-sync|luk|0.3.9 csharp|ms-|2.45.20 vscode-dotnet-runtime|ms-|2.1.5 autopep8|ms-|2024.0.0 debugpy|ms-|2024.10.0 flake8|ms-|2023.10.0 python|ms-|2024.14.0 vscode-pylance|ms-|2024.8.2 cmake-tools|ms-|1.19.51 cpptools|ms-|1.22.2 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.10.26 vscode-typescript-next|ms-|5.7.20240904 sftp|Nat|1.16.3 color-highlight|nau|2.8.0 cs-script|ole|2.2.3 java|red|1.34.0 LiveServer|rit|5.7.9 pdf|tom|1.2.2 cmake|twx|0.0.17 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-gradle|vsc|3.16.4 vscode-java-debug|vsc|0.58.0 vscode-java-dependency|vsc|0.24.0 vscode-java-pack|vsc|0.29.0 vscode-java-test|vsc|0.42.0 vscode-maven|vsc|0.44.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 9c06g630:31013171 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl1:31104043 refactort:31108082 pythonrstrctxt:31112756 flightc:31119335 wkspc-onlycs-t:31132770 wkspc-ranged-t:31125599 autoexpandse:31133494 fje88620:31121564 ```
vs-code-engineering[bot] commented 1 week ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.93.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

IllusionMH commented 1 week ago

/causedByExtension

As you can see from gray text after error message it comes from stylelint-plus extension. Please refer to extensions config or issue tracker (don't forget to search for duplicates).

vs-code-engineering[bot] commented 1 week ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!