gencer / SCSS-Everywhere

A Visual Studio Code extension that provides CSS class and ID atttribute completion with incremental build and usage explorer for the HTML class attribute based on the CSS/Template files in your workspace. Also supports React's className attribute.
https://marketplace.visualstudio.com/items?itemName=gencer.html-slim-scss-css-class-completion
MIT License
24 stars 9 forks source link

Failed to cache error popup #38

Closed Steve30 closed 5 years ago

Steve30 commented 5 years ago

Failed to cache the CSS classes in the workspace for the first time: Failed to cache the class definitions during the iterations over the documents that were found: Failed to parse the documents: selectors[className].indexOf is not a function

ksweetie commented 5 years ago

This happens to me, too, every time I try to run the extension.

Screen Shot 2019-07-09 at 8 49 22 AM

Let me know how I can give you more info if possible.

gencer commented 5 years ago

I also need a backtrace. You can open Developer Menu via Help -> Toggle Developer Tools

ksweetie commented 5 years ago

I set "html-css-class-completion.includeGlobPattern" to be more restrictive and that did the trick. It must've been picking up node_modules or something else. Thanks for your quick help!

gencer commented 5 years ago

Glad it did worked! Let me know if you need anything else.

gencer commented 5 years ago

Fixed in 1.5.18.