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

bug: prettier plugin for tailwind write credits and sometime tailwind lsp stopped on vim #3036

Closed
fiik346 opened this issue May 15, 2024 · 3 comments

Comments

@fiik346
Copy link

fiik346 commented May 15, 2024

What version of daisyUI are you using?

latest

Which browsers are you seeing the problem on?

No response

Reproduction URL

https://play.tailwindcss.com/RGJUjgS2RK

Describe your issue

{
  "bracketSameLine": true,
  "plugins": ["prettier-plugin-jinja-template", "prettier-plugin-tailwindcss"],
  "overrides": [
    {
      "files": ["*.html"],
      "options": {
        "parser": "jinja-template"
      }
    }
  ]
}

that is in the .prettierrc.json config, so when the formatting with prettier run in vim, it will write credits on topline of code like below.
image

sometime the lsp stopped working.

In other times, i had try it in vscode and no problems with that.

Copy link

Thank you @fiik346 for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@saadeghi
Copy link
Owner

Probably the problem is Vim, using the raw terminal output as the result code. That can be problematic even without daisyUI (for example when Tailwind CSS returns a warning or error to the console log)

As a workaround, you can disable the daisyUI logs from the config file:
https://daisyui.com/docs/config/#logs

Let me know if you have any questions

@fiik346
Copy link
Author

fiik346 commented May 16, 2024

Thank you, I think this will work. I will try when possible.

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

2 participants