SublimeLinter / SublimeLinter-flow

SublimeLinter plugin for JavaScript static type checking, using flow.
MIT License
116 stars 24 forks source link

Fix settings handling #78

Closed YuppY closed 4 years ago

YuppY commented 4 years ago

Running flow linter results in this error in console:

SublimeLinter: ERROR: Unhandled exception:
Traceback (most recent call last):
  File "/Users/ypetrov/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package/lint/backend.py", line 155, in execute_lint_task
    errors = linter.lint(code, view_has_changed)
  File "/Users/ypetrov/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package/lint/linter.py", line 1132, in lint
    output = self.run(cmd, code)
  File "/Users/ypetrov/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter-flow.sublime-package/linter.py", line 50, in run
    or self.settings.get['all']
TypeError: 'method' object is not subscriptable
kaste commented 4 years ago

Holy shit, I did this 🤪

Actually the ".get" is the mistake bc the key is always present.

kaste commented 4 years ago

💐 Thanks for reporting and fixing.