Comments (14)
I can confirm that it is not working on OS X
from vscode-phpcs.
phpcs: Unable to locate phpcs. Please add phpcs to your global path or use composer depency manager to install it in your project locally
Still occurring on OS X.
from vscode-phpcs.
@auz1111 me too, phpcs: Unable to locate phpcs. Please add phpcs to your global path or use composer depency manager to install it in your project locally.
still occurring on macOS.
OS: macOS High Serria
Version: 10.13.1 beta(17B46a)
VSCode version: 1.17.2
from vscode-phpcs.
This issue should be resolved in latest develop branch so please consider testing your use cases.
from vscode-phpcs.
cmd run as admin and type following command
pear install PHP_CodeSniffer
from vscode-phpcs.
I can't get it working in windows though.
from vscode-phpcs.
me to macOS Sierra phpcs is installed globally via composer it terminal I can get output of phpcs i.e. PATH is present in environment but still now working
from vscode-phpcs.
@auz1111 Which version of the extension are you using? The marketplace one or the development one?
from vscode-phpcs.
Also having this problem on Sierra with the marketplace extension.
from vscode-phpcs.
I just pushed some major new features in develop branch that need testing and include:
ability to set phpcs.executablePath
ability to set phpcs.showWarnings
ability to set phpcs.showSources
ability to enable phpcs.trace.server with messages or verbose option for tracing errors.
ability to set phpcs.composerJsonPath to something other that workspaceRoot/composer.json
Your feedback is very welcome!
from vscode-phpcs.
@ikappas I'm using Ubuntu 16.04 and I can confirm that I was able to go around this issue with version 1.0.0-beta.4
. My use cases worked and I was able to see warnings from phpcs
and fix files. I still had to set the full path to my phpcs
global alias, was that what you intended?
from vscode-phpcs.
Hello @ikappas, I am very new to using VSCode, are there instructions to installing/switching to the development branch of a plug-in so that I can test?
from vscode-phpcs.
@Wrenbjor Hey, you can see some instruction on running the development branch of vscode-phpcs here in the README of this repo.
from vscode-phpcs.
I just released vscode-phpcs 1.0.0 which supports the VSCode 1.20+ and includes many enhancements most notable of which are:
- multi root support
- lint as you type support
- automatic configuration search support
- ability to set phpcs.executablePath
- ability to set phpcs.showWarnings
- ability to set phpcs.showSources
- ability to set phpcs.composerJsonPath to something other that workspaceRoot/composer.json
- ability to enable phpcs.trace.server with messages or verbose option for tracing errors.
I would like to give my thanks to all the people that helped track down issues in the previous betas and hope the new features help you get things done easier.
On that note, I am closing this issue to properly track any new issues in the new release. If you find this issue persists or any other issue please feel free to open a new ticket for v.1.0.0.
from vscode-phpcs.
Related Issues (20)
- Extension unable to find nested phpcs executable
- PHP 7.4 support HOT 1
- Compiling Errors using VSCode v1.47.3
- unmaintained? HOT 14
- .
- Git diff errors HOT 1
- turn on/off
- use files.associations php files instead of "php" document HOT 4
- Command with xdebug enabled causes invalid json HOT 4
- Do not check coding standards in diff view
- Extension issue HOT 2
- Display Rule Namespaces alongside Errors / Warnings HOT 1
- phpcs: Unknown error ocurred. Please verify that .... returns a valid json object. HOT 1
- Fatal error: Uncaught TypeError: vsprintf(): Argument #2 ($values) must be of type array, string given
- Error occurring on auto_detect_line_endings deprecation HOT 1
- phpcs: Referenced sniff "Drupal" does not exist HOT 3
- phpcs Reports Errors When Opening Git Diffs (and Also in Random Cases) HOT 1
- Unexpected token D in JSON at position 1
- Project stewardship
- Phpcs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-phpcs.