Code Monkey home page Code Monkey logo

padawan.vim's People

Contributors

azangru avatar mkusher avatar mte90 avatar xintron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

padawan.vim's Issues

Cannot Execute Padawan Commands in Vim

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

PHP native functions

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:

defaultcontroller php -site t-src-appbundle-controller - gvim_004

How can I fix this?
Thanks and keep up the good job on this!

I get Error occured, code: 139

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?

use of vagrant possible ?

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 ?

No complete response

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!

Use with ervandew/supertab

Do you have any idea/have you checked how to configure this plugin to be used with the supertab plugin?

Installation method

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.

Undefined variable padawan#enabled

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.

Error code 255

When generating index get this error :

Progress [=================== ] 98%
Error occured, code: 255
Press ENTER or type command to continue

Errorcode 139 when indexing

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

Go to definition

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.

Use it only on php file

I saw that padawan is executed also on html files, there is a way to disable this behaviour?

`Error occured, code: 255` when calling `PadawanGenerateIndex`

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?

Segmentation fault, error code 139

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

Error: During Indexing

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

Cannot Generate Index by Error 255

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

2GB of memory isn't enough

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?

Autostart padawan service

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.

No Autocomplete in padawan server

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' : [':'],

\ }`

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.