Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
db27c8e
Validate composer file in CI (#814)
dantleech Aug 25, 2019
5c3eee5
Goto Class Implementation(s) (#818)
dantleech Sep 8, 2019
763e14f
Fix instanceof bug in WR
dantleech Sep 8, 2019
bf4978e
Gh 816 update cl (#819)
dantleech Sep 13, 2019
8729c68
Fix 6.0 typo (#824)
chinleung Oct 13, 2019
47d6c9e
Bugfix 777 (#825)
dantleech Oct 15, 2019
9771656
Added link to phpactor-mappings package (#826)
dantleech Oct 16, 2019
e150c2d
Fix context menu handler callback offset (#827)
dantleech Oct 16, 2019
ca40931
Vim extract functions handles motions (#823)
camilledejoye Oct 18, 2019
0b910ea
Add keepjumps when using "goto" (#828)
camilledejoye Oct 18, 2019
bd6a121
Updates text-document to fix #833 (#834)
dantleech Oct 23, 2019
4b87bf5
Updates maestro.json
dantleech Oct 26, 2019
9d2ec14
Explodes package config
dantleech Oct 26, 2019
afc2cdf
Fix keepjumps for the goto feature (#837)
camilledejoye Oct 31, 2019
bc59bc0
Fzf references (#832)
camilledejoye Nov 6, 2019
bd6a214
Move option definition to phpactor.vim (#839)
dantleech Nov 6, 2019
f412f73
Updated to new maestro schema
dantleech Nov 11, 2019
04f2b7f
Fix for #841 (#842)
dantleech Nov 16, 2019
e345aa2
Unresolvable classes import #2 (#847)
dantleech Dec 1, 2019
da16a43
Composer update (#849)
dantleech Dec 1, 2019
e0f4f8a
Fixed maestro package configurations
dantleech Dec 4, 2019
c6fabcf
Updates composer.lock
dantleech Dec 4, 2019
c8f8884
Updated composer
dantleech Dec 4, 2019
cf0b291
Updated CHANGELOG
dantleech Dec 4, 2019
ec64aed
Support PHP 7.4 Property Types (#854)
dantleech Dec 6, 2019
6e33087
Updates code-builder (#863)
dantleech Dec 14, 2019
bd7b424
Handle templates by php version (#869)
dantleech Jan 11, 2020
4f3e196
Only import unique names (class import all) (#870)
dantleech Jan 11, 2020
f3935e7
The undocumented Expand Class (#871)
QzCurious Jan 12, 2020
111951d
Integrates the code transform "style fixer" / sanitizer. (#862)
dantleech Jan 18, 2020
d4f85f4
Added documentation about fixer settings
dantleech Jan 18, 2020
40e6106
Support for generating code with nullable types (#876)
dantleech Jan 19, 2020
4a0558e
Improved CS fixer (#878)
dantleech Jan 25, 2020
046717b
Revert style fixer (#880)
dantleech Feb 8, 2020
5a29716
Updated composer
dantleech Feb 9, 2020
11b080f
Make FZF / BAT strategies "experimental" (#883)
dantleech Feb 15, 2020
82b3f87
Change document to not install dev deps
dantleech Feb 15, 2020
ff4aab1
Added Phpversoin resolver extension (#884)
dantleech Feb 15, 2020
03619a9
[vim-plugin] Catch json_decode errors
dantleech Feb 15, 2020
3045126
Updated CHANGELOG
dantleech Feb 15, 2020
84e5c67
Preserve original path if available when generating new class (#796)
dantleech Feb 15, 2020
493d03a
Support aliases with complete constructor (#887)
dantleech Feb 22, 2020
5374715
Support renaming variables from use (#888)
dantleech Feb 22, 2020
9ec2b32
VIM Plugin Resturcturing and help (#889)
dantleech Feb 23, 2020
654cc40
Exit fzf immediatley with no result (#895)
przepompownia Feb 27, 2020
b23d5f7
Allow to reuse open window when go to definition (#893)
przepompownia Feb 29, 2020
d98d0ff
Updated doc and changelog
dantleech Feb 29, 2020
b02b31a
Add the autogenerated disclaimer
dantleech Feb 29, 2020
0d53ec8
Stable Context Menu Shortcuts (#897)
dantleech Feb 29, 2020
0e7c75b
Merge remote-tracking branch 'origin/master' into develop
dantleech Mar 4, 2020
7bd51c5
Updated composer lock
dantleech Mar 4, 2020
131bd86
Fix force reload behavior with useOpenWindow
dantleech Mar 4, 2020
a974bb8
Remove conflict markers and duplicated key (#903)
dantleech Mar 5, 2020
2c8de6f
Goto type (#906)
dantleech Mar 8, 2020
93300a2
Adds goto_type context menu shortcut
dantleech Mar 8, 2020
9cf8695
Fix: Goto type not definition
dantleech Mar 8, 2020
8b7b8be
Update refactorings.md (#900)
Great-Antique Mar 9, 2020
22f7864
Fix "VIM Plugin" example mappings and add missing command definitions…
yaegassy Mar 9, 2020
277c1a5
Updated mappings (#908)
dantleech Mar 10, 2020
d5265a9
Specify args for install and remove extension commands
dantleech Mar 13, 2020
2cfb349
Update documentation to use command rather than function
dantleech Mar 22, 2020
c6d484b
Fix #926 (#928)
dantleech Mar 23, 2020
d76aa99
Add worse reflectio TTL cache
dantleech Mar 29, 2020
db2758e
Determine the current workspace directory (#923)
przepompownia Mar 30, 2020
688209e
Updated CHANGELOG
dantleech Mar 30, 2020
696a4be
Misc fixes (#932)
dantleech Mar 30, 2020
b08d9a4
Make travis-vimrc CWD-independent (#933)
przepompownia Mar 30, 2020
5c015dc
Updated LSP documentation
dantleech Apr 2, 2020
ff3ae50
Updated coc doc
dantleech Apr 2, 2020
9c106a1
Integrate consolidated completion extension (#935)
dantleech Apr 4, 2020
e31565f
Revert previous package consolidation (#938)
dantleech Apr 5, 2020
2360a2a
Corrected spelling mistakes in ADR
dantleech Apr 5, 2020
62b5323
Include indexer
dantleech Apr 5, 2020
543beae
Include reference finder and indexer
dantleech Apr 5, 2020
87f12d9
Remove bundled and removed extensions
dantleech Apr 5, 2020
836b552
Include latest text-document update and changelog (#940)
dantleech Apr 5, 2020
69b0e97
Language Server Improvements (#945)
dantleech Apr 10, 2020
4c14302
Force all errors to stderr rather than stdout
dantleech Apr 11, 2020
10f9d56
Language Server Update #2 (#949)
dantleech Apr 12, 2020
d991f97
Use macro repository for language server (#950)
dantleech Apr 13, 2020
8810515
Renamed indexer extension + moved indexer LSP handler to LSP ext (#956)
dantleech Apr 13, 2020
cba1f8a
Update 0002-language-server-package-structure.md
dantleech Apr 13, 2020
f38eab2
Language server Changes (#957)
dantleech Apr 13, 2020
53e554b
De-duple completion and fix fswatch (#958)
dantleech Apr 13, 2020
1e1b3e1
Updated composer (#962)
dantleech Apr 14, 2020
faecc43
Use pretty formatter for verbose console output (#963)
dantleech Apr 14, 2020
2322481
Add documentation to hover RPC handler
dantleech Apr 15, 2020
5597654
Add documentation to RPC and LSP hovers
dantleech Apr 15, 2020
cfdbe3f
Put method signature at top of hover RPC text
dantleech Apr 15, 2020
e7f8a16
Revert additional documentation
dantleech Apr 15, 2020
e39e55a
Add underline for LSP hover documentation
dantleech Apr 15, 2020
2951f49
Adds language server workspace indexer (#968)
dantleech Apr 18, 2020
00a73c5
Various language-server related updates: (#971)
dantleech Apr 19, 2020
6b7b02e
Fix ftplugin (#964)
camilledejoye Apr 20, 2020
9468abd
Updated CHANGELOG
dantleech Apr 20, 2020
977a676
Fix test expectation
dantleech Apr 21, 2020
18bb994
Updated composer.lock
dantleech Apr 21, 2020
b8851a3
improvement: Add phpactor status to :healthcheck (#974)
camilledejoye Apr 21, 2020
8e32005
Support for LSP goto implementation (#979)
dantleech Apr 21, 2020
cee8497
Updated CHANGELOG
dantleech Apr 21, 2020
3d8b1d1
Updated composer (#984)
dantleech Apr 27, 2020
0f6d77f
Enable the LS hover extension
dantleech Apr 27, 2020
8a56372
Fix commands (#965)
camilledejoye Apr 29, 2020
d2ffe6a
Updated CHANGELOg
dantleech Apr 29, 2020
5bd108d
Disable root patterns
dantleech Apr 29, 2020
33a1302
Skip searching for empty set of root patterns (#988)
przepompownia Apr 29, 2020
dbd6441
Update composer (#991)
dantleech Apr 30, 2020
6e12ecf
Updated compoesr.lock (#993)
dantleech May 1, 2020
221b54f
Restructured Text Documentation (#995)
dantleech May 2, 2020
a9996f7
Update README.md
dantleech May 2, 2020
aac024b
Update README.md
dantleech May 2, 2020
c6db002
Updated links in documentation
dantleech May 2, 2020
d1d3ce2
Update Docs with LSP Features (#997)
dantleech May 2, 2020
356d59b
Doc lsp (#998)
dantleech May 2, 2020
1a4c532
Fix responsive mode
dantleech May 2, 2020
63944b5
Updated health check text
dantleech May 3, 2020
8c9e2e1
Updated indexer and getting started
dantleech May 3, 2020
e51ebb6
Update doc to use tabs
dantleech May 3, 2020
ee458e0
Make target for Vimdoc (#1000)
dantleech May 3, 2020
8a72892
Revert project root (#923) (#1001)
dantleech May 3, 2020
f0c52f0
Fix regression in generate accessor behavior (#1002)
dantleech May 3, 2020
8d423ec
Updated composer
dantleech May 3, 2020
e608ee5
Prepare 0.15.0 release
dantleech May 3, 2020
61a273a
Merge remote-tracking branch 'origin/master' into develop
dantleech May 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
/.phpactor/*

# docs
/.couscous
/doc/_build

# php-cs-fixer
/.php_cs.cache
./.php_cs
/build
47 changes: 23 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,15 @@ env:
- GH_REF: github.com/phpactor/phpactor
- secure: "VW6FdcejZkI5Qir/MqzTsDxGGmrPKr1CLrFZirkD9wHUehiaJr2Z8JixBQsZy7D1z9nEycdt6Yq4ZFqoI0mSUhElOO8AY96Wed4PjIIhJ3tJKta8Eoks0KtHT12qxaFmZvVAkqfzQ3RrtIexwTb2axS7/tQRE0ZhECGppUnCges/tjqTm0nRox96l4pdtTXXlWsjbLjyFhDdURZY0t5QXDKiNh0ctHswc3MrSCc9BcRsX5+zuz/E/0RAI+J0w2ghVWRj9eIeuhvf9zIiFZdA07B4V3TSdF0E2ftPli7YUyZA2KmQ/8MBOF3PBI48KhU+kt6iHFa1EDlqp4t2NqHaRUEtmaHhlv+0cXHmKF1xMKLbMQdnqTg/NeWa9p87wAJ4dnvF1k1I9T2c0opKM7D4hUDBkFsx62jlstVxjmv+STwdaAw8WDZUnyNOLczTrAEg7jzwroigd/mYF6/8hiNsol1PeQsVbJqsi/61y3T8WkjeqnJJYisRrXcgi09sJ64crnr4CW+PxBR/88ETp8mLeM3oBGn+Nh5FjOKPc9pAVoai6DgfeJZ3UATY+7i82Q5vRlG860axhLVqqt2nYMnjKDBwHnh6CNaPArT5hIQgq/9AmW30dhFXheHy8XKgJMiyUtgktBk2zx4YilwcZKtP2/Gb5DCTbdQPjLJAu9/h6w4="

sudo: false

cache:
directories:
- "$HOME/.composer/cache"

before_script:
- composer install

script:
- vendor/bin/phpunit
# Run the benchmarks and send the results to the PHPBench reports server
# (only if the secure key is present)
- if [ -n "${REPORTS_API_KEY}" ]; then vendor/bin/phpbench run --store; else vendor/bin/phpbench run; fi;
# Run the test suites for all the Phpactor packages
- config/travis/testdeps
- config/travis/testexts

jobs:
include:
- stage: test
- name: VIM Tests
env: VIM
php: 7.2
php: 7.3
before_script:
- composer validate --strict
# Install the PHP dependencies
Expand All @@ -43,13 +29,26 @@ jobs:
script:
# Run the VIM Plugin tests
- config/travis/vim-plugin-test.sh
- php: 7.2
- stage: docs
php: 7.2
if: branch = master
- name: Phpactor Tests
php: 7.3
before_script:
- composer install
script:
- vendor/bin/phpunit
# Run the benchmarks and send the results to the PHPBench reports server
# (only if the secure key is present)
- if [ -n "${REPORTS_API_KEY}" ]; then vendor/bin/phpbench run --store; else vendor/bin/phpbench run; fi;
# Run the test suites for all the Phpactor packages
- name: Phpactor Extensions
php: 7.3
before_script:
- composer install
script:
- config/travis/testdeps
- config/travis/testexts
- name: Docs
before_script:
- git config --global user.email "phpactor@dantleech.com"
- git config --global user.name "Phpactor"
- curl -OS http://couscous.io/couscous.phar
- sudo apt-get -y install python3-pip python3-setuptools
- pip3 install -r requirements.txt
script:
- php couscous.phar travis-auto-deploy
- make docs
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
Changelog
=========

## 2020-05-03 0.15.0

Features:

- [reference-finder] Goto type: goto the type of the symbol under the cursor #892 - @dantleech
- [worse-reflection] Enable cache lifetime (important for long running
processes) (#929) - @dantleech
- [language-server] Included in the core - @dantleech
- [indexer] Indexer included in the core - @dantleech
- [rpc] Add docblock prose to hover
- [vim-plugin] Add support `:checkhealth` and provide `:PhpactorStatus` in
terminal window (#974) - @elythyr

Improvements:

- [text-document] Include `<` and `>` when getting "class" name undercursor
(allow implorting `Foobar` from an `@var array<Foobar>` doc
- [completion] Option to deduplicate suggetions (#905) - @dantleech
- [completion] Option to limit completion options - @dantleech
- [completion] Allow completors to return `true` when they finish (allow
final consumer to know if list is complete) - @elythyr
- [vim-plugin] Improved command registration (#965) - @elythyr
- [completion] Improved signature help (https://github.com/phpactor/completion/pull/31) - @elythyr
- [completion] Completors can return if they are complete (https://github.com/phpactor/completion/pull/30) - @elythyr

Bug fixes:

- [code-transform] Generate accessor doesn't work on selected property (regression)
- [vim-plugin] Configuration was not global (#964) - @elythyr
- [class-mover] `$` was removed when renaming static variables (#925) -
@dantleech
- [class-to-file] Remove duplicate candidates (fixes issue with class
completion duplicate suggestions)

Documentation:

- [doc] Fix examples in refactoring documentation - @Great-Antique
- [doc] Fix example mappings and add missing commands - @yeagassy

## 2020-03-04 0.14.1

Bug fixes:
Expand Down
42 changes: 42 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SOURCEDIR = doc
BUILDDIR = doc/_build

.PHONY: help sphinx

build:
mkdir build

build/vimdoc:
git clone https://github.com/google/vimdoc build/vimdoc

build/vimdoc/build: build/vimdoc
cd build/vimdoc; python3 setup.py config
cd build/vimdoc; python3 setup.py build

build/bin/vimdoc: build/vimdoc/build
cd build/vimdoc; python3 setup.py install --user

vimdoc: build/bin/vimdoc
vimdoc .

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

sphinxwatch:
@config/bin/watchdocs.sh

sphinx:
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs: sphinx vimdoc

clean:
rm -Rf build
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ This project aims to provide heavy-lifting *refactoring* and *introspection*
tools which can be used standalone or as the backend for a text editor to
provide intelligent code completion.

- Accurate code [completion](https://phpactor.github.io/phpactor/completion.html) including class name auto-import.
- [Various](https://phpactor.github.io/phpactor/refactorings.html) refactoring,fixes and code generation options.
- Native [VIM plugin](https://phpactor.github.io/phpactor/vim-plugin.html) ([emacs](https://github.com/emacs-php/phpactor.el) plugin is in development).
- [Navigation](https://phpactor.github.io/phpactor/navigation.html) (jump to
- Accurate code [completion](https://phpactor.readthedocs.io/en/develop/reference/completion.html) including class name auto-import.
- [Various](https://phpactor.readthedocs.io/en/develop/reference/refactorings.html) refactoring,fixes and code generation options.
- Provides a [Language Server](https://phpactor.readthedocs.io/en/develop/usage/language-server.html)
- Native [VIM plugin](https://phpactor.readthedocs.io/en/develop/usage/vim-plugin.html) ([emacs](https://github.com/emacs-php/phpactor.el) plugin is in development).
- [Navigation](https://phpactor.readthedocs.io/en/develop/reference/navigation.html) (jump to
definition, related classes, references etc).
- Context menu.
- [More](http://phpactor.github.io/phpactor).
- [More](https://phpactor.readthedocs.io/en/develop).

Installation
------------

Phpactor is a general tool, it is not intended that it be installed as a project dependency.

See
[Installation](http://phpactor.github.io/phpactor/standalone.html#installation)
[Installation](https://phpactor.readthedocs.io/en/develop/usage/standalone.html)
for installation instructions.

Requirements
Expand All @@ -44,7 +44,7 @@ a lesser extent, with [GiT](https://git-scm.org).
Documentation
-------------

Full documentation can be found on the [Github page](http://phpactor.github.io/phpactor)
Full documentation can be found on [Read the Docs](https://phpactor.readthedocs.io/en/develop)

Community
---------
Expand Down
40 changes: 40 additions & 0 deletions autoload/health/phpactor.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
function! s:check_info(status) abort
call health#report_start('Info')

call health#report_info('Phpactor version: '. a:status.phpactor_version)
call health#report_info('PHP version: '. a:status.php_version)
call health#report_info('Filesystems'. join(a:status.filesystems, ', '))
call health#report_info('Working directory'. a:status.cwd)
endfunction

function! s:check_diagnostics(diagnostics) abort
call health#report_start('Diagnostics')

for [l:diagnostic, l:isOk] in items(a:diagnostics)
if l:isOk
call health#report_ok(l:diagnostic)
else
call health#report_warn(l:diagnostic)
endif
endfor
endfunction

function! s:check_config_files(configFiles) abort
call health#report_start('Config files (missing is not bad)')

for [l:configFile, l:isOk] in items(a:configFiles)
if l:isOk
call health#report_ok(l:configFile)
else
call health#report_warn(l:configFile)
endif
endfor
endfunction

function! health#phpactor#check() abort
let l:status = phpactor#rpc('status', {'type': 'detailed'})

call s:check_info(l:status)
call s:check_diagnostics(l:status.diagnostics)
call s:check_config_files(l:status.config_files)
endfunction
54 changes: 44 additions & 10 deletions autoload/phpactor.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
" https://github.com/google/vimdoc. See
" https://phpactor.github.io/phpactor/developing.html#vim-help

let s:_phpactorCompletionMeta = {}

function! phpactor#Update()
let current = getcwd()
execute 'cd ' . g:phpactorpath
Expand Down Expand Up @@ -53,7 +55,7 @@ function! phpactor#Complete(findstart, base)
let issues = result['issues']

let completions = []
let g:_phpactorCompletionMeta = {}
let s:_phpactorCompletionMeta = {}

if !empty(suggestions)
for suggestion in suggestions
Expand All @@ -66,7 +68,7 @@ function! phpactor#Complete(findstart, base)
\ 'icase': g:phpactorCompletionIgnoreCase
\ }
call add(completions, completion)
let g:_phpactorCompletionMeta[phpactor#_completionItemHash(completion)] = suggestion
let s:_phpactorCompletionMeta[phpactor#_completionItemHash(completion)] = suggestion
endfor
endif

Expand All @@ -87,16 +89,20 @@ endfunction

function! phpactor#_completeImportClass(completedItem)

if get(b:, 'phpactorOmniAutoClassImport', g:phpactorOmniAutoClassImport) != v:true
return
endif

if !has_key(a:completedItem, "word")
return
endif

let hash = phpactor#_completionItemHash(a:completedItem)
if !has_key(g:_phpactorCompletionMeta, hash)
if !has_key(s:_phpactorCompletionMeta, hash)
return
endif

let suggestion = g:_phpactorCompletionMeta[hash]
let suggestion = s:_phpactorCompletionMeta[hash]

if !empty(get(suggestion, "class_import", ""))
call phpactor#rpc("import_class", {
Expand All @@ -106,7 +112,7 @@ function! phpactor#_completeImportClass(completedItem)
\ "path": expand('%:p')})
endif

let g:_phpactorCompletionMeta = {}
let s:_phpactorCompletionMeta = {}

endfunction

Expand Down Expand Up @@ -210,6 +216,14 @@ function! phpactor#GotoDefinitionTab()
call phpactor#_GotoDefinitionTarget('new_tab')
endfunction

function! phpactor#GotoType()
call phpactor#rpc('goto_type', {
\'offset': phpactor#_offset(),
\'source': phpactor#_source(),
\'path': expand('%:p'),
\'language': &filetype})
endfunction

function! phpactor#Hover()
call phpactor#rpc("hover", { "offset": phpactor#_offset(), "source": phpactor#_source() })
endfunction
Expand Down Expand Up @@ -288,7 +302,17 @@ function! phpactor#CacheClear()
endfunction

function! phpactor#Status()
call phpactor#rpc("status", {})
if exists(':terminal')
if has('nvim')
split term://phpactor\ status
" Press any key to leave
normal i
else
terminal phpactor status
endif
else
call phpactor#rpc("status", {'type': 'formatted'})
endif
endfunction

function! phpactor#Config()
Expand Down Expand Up @@ -319,7 +343,7 @@ endfunction
" Utility functions
"""""""""""""""""""""""
function! s:isOpenInCurrentWindow(filePath)
return expand('%:p') == a:filePath
return phpactor#_path() == a:filePath
endfunction

function! phpactor#_switchToBufferOrEdit(filePath)
Expand All @@ -345,7 +369,15 @@ function! phpactor#_source()
endfunction

function! phpactor#_path()
return expand('%:p')
let l:path = expand('%:p')

if filereadable(l:path) || stridx(l:path, '/') == 0
return l:path
endif

" todo if empty path
"
return printf('%s/%s', g:phpactorInitialCwd, l:path)
endfunction

function! s:getStartOffsetFromMark(mark, linewise)
Expand Down Expand Up @@ -433,8 +465,10 @@ function! phpactor#rpc(action, arguments)

let request = { "action": a:action, "parameters": a:arguments }

let cmd = g:phpactorPhpBin . ' ' . g:phpactorbinpath . ' rpc --working-dir=' . g:phpactorInitialCwd
let result = system(cmd, json_encode(request))
let l:workspaceDir = g:phpactorInitialCwd
let l:cmd = g:phpactorPhpBin . ' ' . g:phpactorbinpath . ' rpc --working-dir=' . l:workspaceDir

let result = system(l:cmd, json_encode(request))

if (v:shell_error == 0)
try
Expand Down
2 changes: 2 additions & 0 deletions bin/phpactor
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ foreach ([
}
}

ini_set('display_errors', 'stderr');

if (!isset($autoloadFile)) {
echo sprintf(
'Phpactor dependencies not installed. Run `composer install` (https://getcomposer.org) in "%s"' . PHP_EOL,
Expand Down
Loading