padawan-php / padawan.vim Goto Github PK
View Code? Open in Web Editor NEWA vim plugin for padawan.php completion server
License: MIT License
A vim plugin for padawan.php completion server
License: MIT License
I use Vundle to install plugins.
I added Plugin 'mkusher/padawan.vim'
to my vimrc and installed plugins.
Then i ran ./install.sh
which completed without errors (as far as I can tell).
However, vim doesn't find any of the Padawan Commands.
:PadawanGenerateIndex
:PadawanStartServer
etc
Hello, I managed to install this plugin on my Ubuntu (I had to install vim-gnome-py2 and remove vim-gnome because of python).
I am now able to complete standard objects (such as $this->generateRoute(/*...*/)
) but native PHP functions are not autocompleted, it keeps saying Pattern not found:
How can I fix this?
Thanks and keep up the good job on this!
Hi, after I run the command below
:PadawanGenerateIndex
I get error this error:
Progress [=================== ] 98%
Error occured, code: 139
Press ENTER or type command to continue
Please, can you figure out what is the problem?
quick question on padawan. Love the idea and the demo's but is it possible to use this when my php app is running in a vagrant box and my vim is living on my mac.
taking a look at the code, it's matching the project based on the current path. can this be manipulated somehow ?
I get the following error message: Error Occured, code: 255
.
Any idea?
I created the project file in the root directory, but there is no complete response, I was very anxious to complete the semantic configuration of God, beg God for help!
I cloned the plugin into my plugins directory and added the line starting Plugin
into my ~/.vimrc file, however my vim doesn't pick up on the plugin. I'm using this Vim set-up https://github.com/amix/vimrc
Do you have any idea/have you checked how to configure this plugin to be used with the supertab plugin?
The recommended installation method is too use composer global install
. This failed on my machine, because of a conflict with other global packages. I ended up using composer create-project
to work this around, which gives me an independent project, with its packages. It would be great to provide a self-updating phar, like Composer does, for instance.
Currently, Padawan.vim gives a generic error message of Error code: 255.
my project is not composer project.
it's plan php project, can i use this plugin?
NeoVim complains about undefined variable. It would be nice if it was mentioned in README.md or there was a default value set for it.
Vim(if):E121: Undefined variable: g:padawan#enabled
NVIM 0.1.4.
When generating index get this error :
Progress [=================== ] 98%
Error occured, code: 255
Press ENTER or type command to continue
Also I got segment fault when running from console:
[2016-07-31 12:00:09] completer.INFO: Found 1 nodes [] []
[2016-07-31 12:00:09] completer.INFO: Parsing: [0.00057792663574219]s [] []
[2016-07-31 12:00:09] completer.DEBUG: Processing nodes 1 [] []
[2016-07-31 12:00:09] completer.DEBUG: Processing node Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass [] []
[1] 15310 segmentation fault padawan generate
I was evaluating to use this kind of features but vim support for tags, but with padawan is not useful create tags only for that so I was wondering if it is possible to do it with padawan itself.
I saw that padawan is executed also on html files, there is a way to disable this behaviour?
I just installed padawan server and plugin. Running :PadawanGenerateIndex
in root of composer project returns Error occured, code: 255
. My home dir .composer/vendor/bin
is in $PATH
, I run neovim
on Ubuntu GNOME 16.04 (up to date) and successfully called sudo pecl install event-2.0.4.tgz
(which should provide ext-event
). What else can I do? How do I debug this?
Padawan.php submodule should be removed in order to use global installed package of padawan.php
When I tried generate index using :PadawanGenerateIndex, I'm getting 255 error, just like in #15 issue.
So, I tried generate using padawan generate
command. But I'm getting: Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 10 bytes)
How can I fix it?
Running :PadawanGenerateIndex
worked once.
Running it second time goes to about 95% and ends with Error occured, code: 139
.
Running padawan generate
runs for some time, then ends with:
...
[2016-05-18 14:40:48] completer.INFO: Traversing with 2 processors [] []
[2016-05-18 14:40:48] completer.INFO: Found 4 nodes [] []
[2016-05-18 14:40:48] completer.INFO: Parsing: [0.00077700614929199]s [] []
[2016-05-18 14:40:48] completer.DEBUG: Processing nodes 4 [] []
[2016-05-18 14:40:48] completer.DEBUG: Processing node Symfony\Component\VarDumper\Tests\Fixtures\NotLoadableClass [] []
Segmentation fault
This plugin seems to be incompatible with the padawan-server. The server uses HTTP, but this plugin just sends JSON messages over a raw TCP socket.
Hi, I have this error during the installation:
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
and during the indexation:
Error detected while processing function padawan#GenerateIndex: line 4: Traceback (most recent call last): File "<string>", line 2, in <module> NameError: name 'client' is not defined
I try to execute "padawan generate" on my Laravel Project, error 255 has occur.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4718592 bytes) in /Users/ryutaro/.config/composer/vendor/mkusher/padawan/src/Padawan/Framework/Domain/Project/Persister.php
and Call Stack is
Call Stack:
0.0005 358680 1. {main}() /Users/ryutaro/.config/composer/vendor/mkusher/padawan/bin/padawan:0
0.0623 2102192 2. Padawan\Framework\Application\Cli->run() /Users/ryutaro/.config/composer/vendor/mkusher/padawan/bin/padawan:25
0.0880 2417568 3. Padawan\Framework\Application\Cli->doRun() /Users/ryutaro/.config/composer/vendor/symfony/console/Application.php:148
0.0884 2417568 4. Padawan\Framework\Application\Cli->doRunCommand() /Users/ryutaro/.config/composer/vendor/symfony/console/Application.php:240
0.0885 2417568 5. Padawan\Command\GenerateCommand->run() /Users/ryutaro/.config/composer/vendor/symfony/console/Application.php:938
0.0892 2422616 6. Padawan\Command\GenerateCommand->execute() /Users/ryutaro/.config/composer/vendor/symfony/console/Command/Command.php:252
46.3347 235416336 7. Padawan\Framework\Domain\Project\Persister->save() /Users/ryutaro/.config/composer/vendor/mkusher/padawan/src/Padawan/Command/GenerateCommand.php:43
46.3348 235416384 8. Padawan\Framework\Domain\Project\Persister->serialize() /Users/ryutaro/.config/composer/vendor/mkusher/padawan/src/Padawan/Framework/Domain/Project/Persister.php:31
46.3348 235416384 9. serialize() /Users/ryutaro/.config/composer/vendor/mkusher/padawan/src/Padawan/Framework/Domain/Project/Persister.php:79
I checked :echo has('python')
return 1, and composer is in $PATH.
How solve it?
I use neovim, php-7.0.25 and fish shell
I tried this plugin on a Drupal project and the generation of the index seems to fail, when PHP tried to allocate more than two GB of memory.
Didn't make much sense to begin with cause I've set the PHP memory limit to -1 in the CLI ini.
So I did a grep -R 'ini_set('
from the ~/.composer/vendor/mkusher
folder and realised that the memory is fixed to two GB in padawan/bin/padawan
.
Why is that, and would there be a way to increase it, without hacking the PHP component?
Can you add support for automatically launching the padawan server when php completion is being used, or is the user expected to script that in manually if he / she wants to automate it?
It's bothersome checking if padawan.php is running, and typing the Start command.
So I tried removing the symfony component and auto-completing with vim it doesn't show any matchings with either using , ->, :: . I used YouCompleteMe in this case but somehow even with it, no results are found; even renamed new ycm triggers too (Windows x64):
`let g:ycm_semantic_triggers = {
\ 'c' : ['->', '.'],
\ 'ocaml' : ['.', '#'],
\ 'cpp,objcpp' : ['->', '.', '::'],
\ 'perl' : ['->'],
\ 'php' : ['->', '::', '(', 'use ', 'namespace ', ''],
\ 'cs,java,javascript,typescript,d,python,perl6,scala,vb,elixir,go' : ['.'],
\ 'ruby' : ['.', '::'],
\ 'lua' : ['.', ':'],
\ 'erlang' : [':'],
\ }`
Hi, when I try to run :PadawanGenerateIndex I get the following error:
This Vim cannot execute :python after using :py3
I am using Ubuntu 17.04 and vim 8.
Any hints? Thanks.
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.