Skip to content

TypeError: sequence item 8: expected str instance, NoneType found #427

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

Closed
zigi05 opened this issue Oct 10, 2021 · 2 comments
Closed

TypeError: sequence item 8: expected str instance, NoneType found #427

zigi05 opened this issue Oct 10, 2021 · 2 comments

Comments

@zigi05
Copy link

zigi05 commented Oct 10, 2021

What version of Tailwind CSS IntelliSense are you using?

v0.7.0

What version of Tailwind CSS are you using?

v2.2.9

What package manager are you using?

npm

What operating system are you using?

Windows 10

Reproduction URL

sublimelsp/LSP-tailwindcss#21

Describe your issue

The issue seems to be with tailwind-intellisense when using LSP-Tailwindcss in Sublime Text 4 on Windows 10.

More details of the issue can be found here.

It works well in tailwind-example on my local machine, but it doesn't work in my project. The tailwind-example uses tailwindcss@1.1.2 and my project uses tailwindcss@2.2.9. Once I update tailwindcss to version 2.2.9 in tailwind-example, it stops working as well and I get the same error as in my project, so it seems not to be working with tailwindcss version at least 2.2+:

Traceback (most recent call last):
  File "C:\Users\zigi\AppData\Roaming\Sublime Text\Installed Packages\LSP.sublime-package\plugin/session_view.py", line 175, in on_capability_added_async
  File "C:\Users\zigi\AppData\Roaming\Sublime Text\Installed Packages\LSP.sublime-package\plugin/session_view.py", line 96, in _register_auto_complete_triggers
  File "C:\Users\zigi\AppData\Roaming\Sublime Text\Installed Packages\LSP.sublime-package\plugin/session_view.py", line 130, in _apply_auto_complete_triggers
TypeError: sequence item 8: expected str instance, NoneType found
@predragnikolic
Copy link

Thanks for opening the issue here!

Are you sure you are using version 0.7.0?

I think that you are using version 0.6.15. (that is the latest released version of LSP-tailwindcss https://github.com/sublimelsp/LSP-tailwindcss/releases)

@bradlc
Copy link
Contributor

bradlc commented Jan 17, 2022

Hey @zigi05. It sounds like this was already fixed in LSP-tailwindcss, but I also made a small change to ensure that we don't try to register an undefined (None in Python) trigger character, just in case 👍

@bradlc bradlc closed this as completed Jan 17, 2022
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

3 participants