Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't show suggestions for member variables #17

Open
olssonm opened this issue Jun 2, 2015 · 9 comments
Open

Doesn't show suggestions for member variables #17

olssonm opened this issue Jun 2, 2015 · 9 comments

Comments

@olssonm
Copy link

olssonm commented Jun 2, 2015

Having some major issues with autocomplete-php enabled, where I don't get already used member variables as a suggestion. However, with autocomplete-php disabled it works as it should. Example:

screen shot 2015-06-02 at 09 43 42
autocomplete-php enabled, should suggest "no_of_clicks" (doesn't even show up as an option)

screen shot 2015-06-02 at 09 44 04
autocomplete-php disabled, suggests the variable "no_of_clicks" just as it should

Is this a known issue?

Great package otherwise, just what I have been looking for (trying to migrate from Sublime Text where all this works flawlessly out of the box).

autocomplete-php v0.3.6
Atom v0.204.0

@Azakur4
Copy link
Owner

Azakur4 commented Jun 2, 2015

i know that, actually my package doesn't support for methods inside an object. Im still thinking how get that functionality here and i think im close to found a way.

@olssonm
Copy link
Author

olssonm commented Jun 2, 2015

Sounds cool, and that sure would be a great feature!

The problem here though is that using autocomplete-php trades the ability to autocomplete "already written" strings, for the snippets, functions and variables that autocomplete-php provides.

@Azakur4
Copy link
Owner

Azakur4 commented Jun 2, 2015

Yes that happens the problem with that was that the built in provider show variables twice one for the php suggestion and another for the built in provider, was for that was disabled.

@olssonm
Copy link
Author

olssonm commented Jun 2, 2015

Ah, gotcha – thanks for the clarification.

@ghost
Copy link

ghost commented Jun 4, 2015

Well, there is always the Padawan project, which is an auto completion server for PHP [1]. It may however not be interesting as you may be looking to keep the plugin self-contained; in the case of Padawan you'd have to turn the plugin into something that spawns a Padawan server for each Atom project and then sends a request to it to ask for autocompletion information (the plugin would do nothing more than ask the server for information).

[1] https://github.com/mkusher/padawan.php

@Azakur4
Copy link
Owner

Azakur4 commented Jun 5, 2015

Umm hi @Mineyme, i never see that padawan. i will go see that php server maybe we can integrate here.

@Azakur4
Copy link
Owner

Azakur4 commented Jul 6, 2015

only for update this i make a branch using padawan to get a better autocompletion for user classes and all the stuff but actually padawan need a lot of work and im a little off with time. I talk with the owner of the project padawan to try to help him to make it better and work on it but im still with open mind an always trying to find a better solution.

@ghost
Copy link

ghost commented Jul 6, 2015

There is also another PHP autocompletion plugin for Atom [1]. I also suggested Padawan there as I seems to work in the same line (using Composer to fetch a class map) but instead of using an entirely different server it only depends on Atom, PHP and Composer and builds the index locally (and the developer wishes to keep it that way). I know however that even though everyone likes a joint effort, it is not always possible ;-).

[1] https://github.com/Peekmo/atom-autocomplete-php

@Peekmo
Copy link

Peekmo commented Jul 9, 2015

Hello,

In fact, my plugin does not depend on any PHP server and all my completions (except classes list) are done "on the fly". Many features are already supported :

There's probably some bugs and there is and there will be some specific cases that the autocompletion will not work, because it's very hard to parse PHP, but I think that it's already not bad at all.
If you want to join the effort, you're welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants