Code Monkey home page Code Monkey logo

coc-php-phan's Introduction

PHP Phan (Analyzer)

Latest Release Installs Rating Build Status Minimum PHP Version Gitter

5.0.0 (2021-08-10)

  • Update Phan from 4.0.7 to 5.1.0
  • See Phan's NEWS for more details.

4.0.1 (2021-06-26)

  • Update Phan from 4.0.4 to 4.0.7
  • See Phan's NEWS for more details.

4.0.0 (2021-04-17)

  • Prevent the settings phan.phpExecutablePath, phan.phanScriptPath, phan.analyzedProjectDirectory, phan.additionalCLIFlags, and phan.connectToServerWithStdio from being overridden in VS Code workspace or folder settings. (i.e. configure them with "scope": "machine" for https://github.com/microsoft/vscode/blob/1.55.2/src/vs/workbench/api/common/configurationExtensionPoint.ts#L50-L55) (CVE-2021-31416) (checking in connectToServerWithStdio in workplace settings is harmless but may break the workflows of other developers working on different machines.) (vscode-php-phan is only intended for use with projects that a developer has manually trusted and enabled through analyzedProjectDirectory, although more convenient ways to securely trust php projects may be added in the future (e.g. using Memento). This is because phan allows executable paths or executable PHP code in third party plugins and InvokePHPNativeSyntaxCheckPlugin, as well as phan config files and due to certain CLI flags and config settings.)

    The VS code extension version can be downgraded to 3.0.0 if you rely on the ability to set those workspace settings.

  • Update Phan from 4.0.2 to 4.0.4

  • See Phan's NEWS for more details.

3.0.0 (2021-01-09)

  • Increase the minimum php-ast version to 1.0.7+ if php-ast is installed. The VS code extension version can be downgraded to 2.2.0 if you are unable to install/use a newer php-ast or Phan version.
  • Update Phan from 3.2.7 to 4.0.2
  • See Phan's NEWS for more details.

2.2.0 (2020-12-13)

  • Update Phan from 3.2.3 to 3.2.7
  • See Phan's NEWS for more details.

The full changelog can be found at NEWS.md

Troubleshooting

General troubleshooting advice:

  • By setting phan.enableDebugLog to true (and restarting Phan), you can get extra debug output. Enabling debug output will slow down this extension.

  • After any changes to the phan settings, the language server must be restarted.

  • VSCode has a built in debugger at "Help" > "Toggle Developer Tools" ( "Console" tab) This will let you see this extension's Phan's debug output.

Installing from source

This can be installed locally with the following method:

npm install
npm run build
node node_modules/.bin/vsce package

The generated VSIX file can be used locally with the steps from https://stackoverflow.com/a/38866913

Local changes can also be run locally by checking out vscode-php-phan, running npm install, then running your changes in an Extension Development Host with . See https://code.visualstudio.com/api/get-started/your-first-extension for more details.

Credits

This VS Code extension and many parts of the language server protocol implementation are based on PHP IntelliSense

This uses Phan

coc-php-phan's People

Contributors

dumbojetengine avatar felixfbecker avatar greenkeeper[bot] avatar greenkeeperio-bot avatar herbertpimentel avatar jens1o avatar koko-ng avatar mousetraps avatar tysonandre avatar tysonandre-tmg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.