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

Crashes with PHP files #9

Open
alexbet opened this issue Mar 27, 2018 · 3 comments
Open

Crashes with PHP files #9

alexbet opened this issue Mar 27, 2018 · 3 comments

Comments

@alexbet
Copy link

alexbet commented Mar 27, 2018

I am having a problem with the linter. It seems to crash with PHP files when there is PHP code in the files. Here is the latest error that I got.

`SublimeLinter: #59 htmlhint routes.php ERROR:

Linter crashed.

Traceback (most recent call last):
File "lint.backend in /Users/AlexBet/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package", line 100, in execute_lint_task
File "lint.linter in /Users/AlexBet/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package", line 777, in lint
File "linter in /Users/AlexBet/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter-contrib-htmlhint.sublime-package", line 38, in find_errors
File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 215, in decode_value
raise ValueError(err)
ValueError: Error trying to decode value: Unexpected character, expected a comma or closing bracket in (data):1:65538`

This happened when I opened a PHP file which has all PHP code, no HTML code at all.

@AirBashX
Copy link

与php语法的 <p? ?>发生兼容性问题,会提示错误

@hirschferkel
Copy link

hirschferkel commented Jan 24, 2020

`Traceback (most recent call last):
  File "/Users/user/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/user/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package/lint/linter.py", line 1138, in lint
    return self.filter_errors(self.parse_output(output, virtual_view))
  File "/Users/user/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package/lint/linter.py", line 1164, in filter_errors
    for error in errors
  File "/Users/user/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package/lint/linter.py", line 1163, in <listcomp>
    error
  File "/Users/user/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter.sublime-package/lint/linter.py", line 1204, in parse_output_via_regex
    for m in self.find_errors(output):
  File "/Users/user/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter-contrib-htmlhint.sublime-package/linter.py", line 36, in find_errors
    output_json = sublime.decode_value(output)
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 215, in decode_value
    raise ValueError(err)
ValueError: Error trying to decode value: Expected value in (data):1:64377`

@Monox18
Copy link

Monox18 commented Jun 15, 2023

Do the trick in #20 to fix this issue.

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

4 participants