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

phpcs run too long time when saving file #181

Open
hustclf opened this issue Aug 17, 2017 · 1 comment
Open

phpcs run too long time when saving file #181

hustclf opened this issue Aug 17, 2017 · 1 comment

Comments

@hustclf
Copy link

hustclf commented Aug 17, 2017

Hi, When I run phpsc on saving file, it takes almost 3 seconds to wait.
I am using python3. And I have modified phpcs.py in line 182.
`
// bofore
return data.decode()

//after
return data.decode('UTF-8', 'ignore')
`

the console informations is as below:
[Phpcs] D:/PHP_CodeSniffer-3.0.1/PHP_CodeSniffer-3.0.1/bin/phpcs.bat --report=checkstyle -n --standard=Shenma D:\ui\sm_common\application\Search\Shortcut\Module\Peoplestar.php [Phpcs] D:/PHP_CodeSniffer-3.0.1/PHP_CodeSniffer-3.0.1/bin/phpcs.bat --report=checkstyle -n --standard=Shenma D:\ui\sm_common\application\Search\Shortcut\Module\Peoplestar.php [Phpcs] cwd: D:\ui\sm_common\application\Search\Shortcut\Module [Phpcs] MZ // this step takes too long time [Phpcs] Linter found 0 errors [Phpcs] Sniffer found 0 errors

thanks for your help.

@benmatselby
Copy link
Owner

benmatselby commented Oct 15, 2023

Hey @hustclf How long does the command take if you run this outside of Sublime Text? Could you provide your settings file please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants