Skip to content
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

Tailwind: 'Unexpected token IDENT found' Error in a sass file #6860

Open
mhrownaghi opened this issue Dec 17, 2023 · 4 comments · May be fixed by #7837
Open

Tailwind: 'Unexpected token IDENT found' Error in a sass file #6860

mhrownaghi opened this issue Dec 17, 2023 · 4 comments · May be fixed by #7837
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@mhrownaghi
Copy link

mhrownaghi commented Dec 17, 2023

Apache NetBeans version

Apache NetBeans 20

What happened

When I use @apply with more than one class, second class is marked as 'Unexpected token IDENT found' error.

How to reproduce

In a sass file copy following code:

@layer components {
  .card {
    @apply bg-white p-5 rounded-lg shadow; // Unexpected token IDENT found
  }
}

p-5 is marked as error.

Did this work correctly in an earlier version?

No / Don't know

Operating System

OpenSUSE Leap 15.5 - x64

JDK

11

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

@mhrownaghi mhrownaghi added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Dec 17, 2023
@troizet troizet added the CSS [ci] enable web job label Dec 17, 2023
@matthiasblaesing
Copy link
Contributor

Where is @apply defined in CSS?

@mhrownaghi
Copy link
Author

It is related to the Tailwind CSS framework. If a plugin is made for Tailwind CSS framework, it is good.

@matthiasblaesing
Copy link
Contributor

So on top of CSS, SCSS and LESS, now every framework invents its own @rules. Great! We have to rethink how to handle @rules so that this mess can somehow be supported.

@matthiasblaesing matthiasblaesing removed the CSS [ci] enable web job label Dec 18, 2023
@matthiasblaesing matthiasblaesing changed the title 'Unexpected token IDENT found' Error in a sass file Tailwind: 'Unexpected token IDENT found' Error in a sass file Dec 18, 2023
matthiasblaesing added a commit to matthiasblaesing/netbeans that referenced this issue Oct 7, 2024
@matthiasblaesing
Copy link
Contributor

@mhrownaghi please check the build available from PR #7837. Checkpage, direct link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants