ellisv / pronto-phpcs Goto Github PK
View Code? Open in Web Editor NEWPronto runner for PHP CodeSniffer
License: MIT License
Pronto runner for PHP CodeSniffer
License: MIT License
Unable to activate pronto-phpcs-0.3.0, because pronto-0.9.5 conflicts with pronto (< 0.10.x, ~> 0.8.0) (Gem::ConflictError)
I'm getting error while try to use this runner in GitLab CI:
$ pronto run -f gitlab_mr -c origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
/usr/local/lib/ruby/2.7.0/rubygems/specification.rb:2247:in `raise_if_conflicts': Unable to activate pronto-phpcs-0.4.0, because pronto-0.11.2 conflicts with pronto (~> 0.9.0) (Gem::ConflictError)
from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:1369:in `activate'
from /usr/local/lib/ruby/2.7.0/rubygems.rb:217:in `rescue in try_activate'
from /usr/local/lib/ruby/2.7.0/rubygems.rb:210:in `try_activate'
from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:147:in `require'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:57:in `block in run'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `each'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `run'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
from /usr/local/bundle/gems/pronto-0.11.2/bin/pronto:6:in `<top (required)>'
from /usr/local/bundle/bin/pronto:23:in `load'
from /usr/local/bundle/bin/pronto:23:in `<main>'
/usr/local/lib/ruby/2.7.0/rubygems/specification.rb:2247:in `raise_if_conflicts': Unable to activate pronto-phpcs-0.4.0, because pronto-0.11.2 conflicts with pronto (~> 0.9.0) (Gem::ConflictError)
from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:1369:in `activate'
from /usr/local/lib/ruby/2.7.0/rubygems.rb:211:in `try_activate'
from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:147:in `require'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:57:in `block in run'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `each'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `run'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
from /usr/local/bundle/gems/pronto-0.11.2/bin/pronto:6:in `<top (required)>'
from /usr/local/bundle/bin/pronto:23:in `load'
from /usr/local/bundle/bin/pronto:23:in `<main>'
/usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- pronto/phpcs (LoadError)
from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:57:in `block in run'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `each'
from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `run'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
from /usr/local/bundle/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
from /usr/local/bundle/gems/pronto-0.11.2/bin/pronto:6:in `<top (required)>'
from /usr/local/bundle/bin/pronto:23:in `load'
from /usr/local/bundle/bin/pronto:23:in `<main>'
I'm getting below error when running pronto with pronto-phpcs while overriding the standard
flag to 'phpcs.xml' file.
> [email protected] \
PRONTO_BITBUCKET_PASSWORD=mypassword \
PRONTO_PHPCS_STANDARD=phpcs.xml \
pronto run -f bitbucket_pr -c origin/master
/usr/lib/ruby/2.1.0/json/common.rb:155:in `parse': 757: unexpected token at 'Time: 237ms; Memory: 4Mb (JSON::ParserError)
'
from /usr/lib/ruby/2.1.0/json/common.rb:155:in `parse'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:39:in `run_phpcs'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:28:in `inspect'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:18:in `block in run'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:18:in `map'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:18:in `run'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/runners.rb:20:in `block in run'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/runners.rb:13:in `each'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/runners.rb:13:in `run'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto.rb:64:in `run'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/cli.rb:61:in `block in run'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/cli.rb:60:in `chdir'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/cli.rb:60:in `run'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
from /var/lib/gems/2.1.0/gems/pronto-0.9.5/bin/pronto:6:in `<top (required)>'
from /usr/local/bin/pronto:23:in `load'
from /usr/local/bin/pronto:23:in `<main>'
Really appreciate if someone can help me with this issue.
It works fine when I removed PRONTO_PHPCS_STANDARD environment variable.
The phpcs.xml
does exists and it works fine when I ran with phpcs
command. The phpcs.xml
content can be found in below link:
https://gist.github.com/paulund/8aacc8e8216c21136c182576fc078ec4
There seems to be a problem when you have a non-ascii letter in the folder name.
I had a folder with an "ΓΆ" inside an got this error.
pronto run -f gitlab -r phpcs -c origin/master
/usr/lib/ruby/2.1.0/json/common.rb:155:in `encode': "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError)
from /usr/lib/ruby/2.1.0/json/common.rb:155:in `initialize'
from /usr/lib/ruby/2.1.0/json/common.rb:155:in `new'
from /usr/lib/ruby/2.1.0/json/common.rb:155:in `parse'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:39:in `run_phpcs'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:28:in `inspect'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:18:in `block in run'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:18:in `map'
from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:18:in `run'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/runners.rb:20:in `block in run'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/runners.rb:13:in `each'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/runners.rb:13:in `run'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto.rb:56:in `run'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/cli.rb:54:in `block in run'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/cli.rb:53:in `chdir'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/cli.rb:53:in `run'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
from /var/lib/gems/2.1.0/gems/pronto-0.8.2/bin/pronto:6:in `<top (required)>'
from /usr/local/bin/pronto:23:in `load'
from /usr/local/bin/pronto:23:in `<main>'
ERROR: Job failed: exit code 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.