Skip to content

Issue with experimental classRegex limit #514

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

Closed
Axedyson opened this issue Apr 1, 2022 · 2 comments
Closed

Issue with experimental classRegex limit #514

Axedyson opened this issue Apr 1, 2022 · 2 comments

Comments

@Axedyson
Copy link

Axedyson commented Apr 1, 2022

I'm getting the following error:

image

Hovering, linting and autocompletion doesn't work for me. Does it have something to do with the limit? If so, can it be increased somehow?
The problem occurs in this repo: https://github.com/AndysonDK/syncbase/tree/59c7026584576f006925f6bcee60c80bd581dad9

Originally posted by @AndysonDK in tailwindlabs/tailwindcss#7554 (comment)

Okay I have now updated the regex, and it works somewhat as you can see here:
image
This code is from this version of the repo: https://github.com/AndysonDK/syncbase/tree/3506c159331b65768385bc0826a3f2f8811367c5

The tailwindcss classes inside the closeButtonClasses function doesn't work at all, so it seems like there is some kind of regex limit

@Axedyson Axedyson changed the title Tailwindcss extension crashing because of experimental classRegex Issue with experimental classRegex limit Apr 1, 2022
@bradlc
Copy link
Contributor

bradlc commented Apr 20, 2022

Hey @AndysonDK. I'm pretty sure this is a duplicate of #499 and the issue was fixed in #501. Update the extension to the latest version (currently v0.8.1) and you should be good to go 👍

@bradlc bradlc closed this as completed Apr 20, 2022
@henrychea
Copy link

How would I go about using regex to match all in between the ' in this tw.style('text-sm', cool 'bg-blue-100', 'flex-row mb-2')

Matching so it becomes this tw.style('text-sm', cool 'bg-blue-100', 'flex-row mb-2')

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

No branches or pull requests

3 participants