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

Getting exceptions in post save and query completions hook #5

Open
lokesh1729 opened this issue Oct 11, 2019 · 1 comment
Open

Getting exceptions in post save and query completions hook #5

lokesh1729 opened this issue Oct 11, 2019 · 1 comment

Comments

@lokesh1729
Copy link

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 576, in on_post_save_async
    callback.on_post_save_async(v)
  File "/Users/slokesh/Library/Application Support/Sublime Text 3/Installed Packages/TailwindCSSAutocomplete.sublime-package/TailwindCSSAutocomplete.py", line 115, in on_post_save_async
    if view.file_name() == self.instances[folder]['config_file']:
KeyError: 'config_file'
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 688, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "/Users/slokesh/Library/Application Support/Sublime Text 3/Installed Packages/TailwindCSSAutocomplete.sublime-package/TailwindCSSAutocomplete.py", line 126, in on_query_completions
    items = self.instances[folder]['items']
KeyError: 'items'
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 688, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "/Users/slokesh/Library/Application Support/Sublime Text 3/Installed Packages/TailwindCSSAutocomplete.sublime-package/TailwindCSSAutocomplete.py", line 126, in on_query_completions
    items = self.instances[folder]['items']
KeyError: 'items'
@james2doyle
Copy link

Try my fork: https://github.com/james2doyle/sublime-tailwindcss

This issue should be fixed and has extra logging as well

I have had 3 PRs open since March and they haven't been addressed so maybe give this a shot and see if it fixes your issues

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