Skip to content

console.log('Listening for messages…') breaks LSP-clients that read data over stdin #1607

Description

@predragnikolic

What version of VS Code are you using?

I use Sublime Text.

What version of Tailwind CSS IntelliSense are you using?

For example: v0.16.0

What package manager are you using?

For example: npm

What operating system are you using?

For example: Ubuntu 26.04

Tailwind CSS Stylesheet (v4) or config file (v3)

Describe your issue

There are console logs in tailwindcss intellisense that don't follow JSON RPC,
like this one -> console.log('Listening for messages…')
https://github.com/search?q=repo%3Atailwindlabs%2Ftailwindcss-intellisense%20listening%20for%20messages&type=code

These log can crash LSP clients that read JSONRPC data over stdin
and cause issues like this sublimelsp/LSP-tailwindcss#119

I would suggest removing these logs OR adjusting them to follow JSONRPC.

These are places that needs to be re-check as well:
https://github.com/search?q=repo%3Atailwindlabs%2Ftailwindcss-intellisense+console.&type=code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions