ui icon indicating copy to clipboard operation
ui copied to clipboard

bug due to conflict of auto-computation of shadcn/ui library

Open xarthurx opened this issue 9 months ago • 4 comments

When using shadcn/ui libraries, usually you'll have components with computed values:

			variant: {
				default: "bg-primary text-primary-foreground hover:bg-primary/90",
				destructive:
					"bg-destructive text-destructive-foreground hover:bg-destructive/90",
				outline:
					"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
				secondary:
					"bg-secondary text-secondary-foreground hover:bg-secondary/50",
				ghost: "hover:bg-accent hover:text-accent-foreground",
				link: "text-primary underline-offset-4 hover:underline",
			},

such as the bg-primary/90 above.

Somehow this will trigger some auto-computation module from nvchad (see img below) and create notification errors:

Image

Is there a way to disable it?

xarthurx avatar Mar 01 '25 19:03 xarthurx

for now , disable lsp field in colorify option, in chadrc

siduck avatar Mar 02 '25 02:03 siduck

Any update on this? Usually you're respectively fast on issues, but no pressure. @siduck

xarthurx avatar Mar 19 '25 19:03 xarthurx

Any update on this? Usually you're respectively fast on issues, but no pressure. @siduck

this month i'll be slow, i will look into this in april sorry. fow now just disable the colorify's lsp method

M.colorify = { 
          highlight = {  lspvars = false },
}

siduck avatar Mar 19 '25 23:03 siduck

unable to reproduce

siduck avatar Apr 11 '25 08:04 siduck

unable to reproduce

I'll setup up a repo around this weekend.

xarthurx avatar Apr 11 '25 08:04 xarthurx

unable to reproduce

I'll setup up a repo around this weekend.

i have the repo already, i installed the button package

Image

siduck avatar Apr 11 '25 08:04 siduck

but i dont see that error, show a video!

siduck avatar Apr 11 '25 08:04 siduck

OK, somehow the issue disappeared... Perhaps something got updated during the past weeks. All good now.

xarthurx avatar Apr 13 '25 13:04 xarthurx