-
Notifications
You must be signed in to change notification settings - Fork 2
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
Regex for errors from tailwindcss #14
Labels
help wanted
Extra attention is needed
Comments
Oof i don't know how i missed this ! Thanks for this, it gives me an idea as to what the problemMatcher is looking for. |
transferring issue to the templates' new home, TailBlazor-Templates |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regex test
The regex seems to work for every flavour except ECMAScript (which unfortunately VSCode uses), where in the example you can see that it no longer assigns groupings compared to the other flavours.
The regex is divided into two parts by the | character which means Alternate match. The part before | catches the Windows filepath and the latter part captures macOS/Linux. Using either of those parts on their own allows VSCode to correctly report the problem in the Problems pane with a link to the source code file, line and character - this can be tested by throwing some garbage characters into app.css
Short term solution could be to use the platform conditional in the template installation and insert the platform specific string, but it definitely isn't the right solution.
There is a second area to investigate which is how to reference the groups from the tasks.json file - but it seems to be a basic int reference.
tasks,json snippet so far:
This is work in progress, but just wanted to capture the actual regex in an issue in case others may have some ideas on how to make it work properly cross platform.
The text was updated successfully, but these errors were encountered: