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

No quick panel or error messages in the gutter and status bar #117

Closed
autumnlansing opened this issue Jul 25, 2014 · 3 comments
Closed

No quick panel or error messages in the gutter and status bar #117

autumnlansing opened this issue Jul 25, 2014 · 3 comments

Comments

@autumnlansing
Copy link

Phpcs has stopped showing the quick panel as well as errors in the gutter and status bar. This seemed to have happened fairly recently but I'm not sure when it started. I only realized it today when I began to wonder if I'd developed code-formatting superpowers because I hadn't seen any errors in a while.

I'm a Linux user and thought this might be related to #115, but my version of phpcs is 6.5.1 and I'm still getting nothing, so it must be a different issue.

Phpcs works in the console. Here's the relevant output:

[Phpcs] Linter found 0 errors
[Phpcs] Sniffer found 1 errors
Traceback (most recent call last):
  File "phpcs in /home/autumn/.config/sublime-text-3/Installed Packages/Phpcs.sublime-package", line 483, in generate
  File "/opt/sublime_text_3/sublime.py", line 861, in add_regions
    sublime_api.view_add_regions(self.view_id, key, regions, scope, icon, flags)
TypeError: String required

I'm also seeing this error in the console:

Writing file /srv/www/htdocs/autumnlansing/app/lib/Admin/EditPostModel.php with encoding UTF-8 (atomic)
[Phpcs] /usr/bin/phpcs -l -d display_errors=On /srv/www/htdocs/autumnlansing/app/lib/Admin/EditPostModel.php
[Phpcs] /usr/bin/phpcs -l -d display_errors=On /srv/www/htdocs/autumnlansing/app/lib/Admin/EditPostModel.php
[Phpcs] cwd: /home/autumn
[Phpcs] ERROR: option "- " not known.
@benmatselby
Copy link
Owner

Can you paste in your config please.

benmatselby added a commit that referenced this issue Jul 28, 2014
* Causes this bug #117
* Ideally find a way in Prefs to define a default value, but for now this
  resolves the issue
@benmatselby
Copy link
Owner

@autumnlansing Good spot. Figured out the issue from the stack trace. It's related to GH-114, which allowed you to stylise the icon in the gutter. I only tested when phpcs_icon_scope_color was defined.. But this may not always be the cause, which meant the preference was None and not a string. I now define the default and pushed up 6.5.2.

Apologies about this issue, and thanks for raising.

@autumnlansing
Copy link
Author

It's working perfectly again now. Thanks!

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