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 "Parse error" since vscode 1.52.0 #45

Closed
storm1er opened this issue Dec 29, 2020 · 1 comment
Closed

Getting "Parse error" since vscode 1.52.0 #45

storm1er opened this issue Dec 29, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@storm1er
Copy link

storm1er commented Dec 29, 2020

Describe the bug
Better give some screenshot to explain well what happens:

Brace on a new line
gnome-shell-screenshot-XP4ZV0

Brace on the same line
gnome-shell-screenshot-KX89V0

This cause side effect like this
gnome-shell-screenshot-WOXJW0

To Reproduce
Steps to reproduce the behavior:

  1. Create a basic PHP class
  2. Trigger sniff/lint
  3. See the lint error

Expected behavior
Braces should be correctly detected.

Environment

  • OS: Ubuntu 18.04 LTS
  • VSCode version: 1.52.1
  • PHP CLI version: 7.3.24
  • squizlabs/PHP_CodeSniffer version: 2.9.2 project scoped

Extension settings

{
    "phpSniffer.autoDetect": true,
    "phpSniffer.standard": "/.../project-workspace/build/config/phpcs/Calleo3",
    "phpSniffer.executablesFolder": "/.../project-workspace/bin/"
}

Additional context
Was working fine on vscode 1.51.0

@storm1er storm1er added the bug Something isn't working label Dec 29, 2020
@storm1er storm1er changed the title Getting "Parse error" since vscode 1.52.1 Getting "Parse error" since vscode 1.52.0 Dec 29, 2020
@storm1er
Copy link
Author

Damned, the error was raised by something else, see squizlabs/PHP_CodeSniffer#316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants