-
Notifications
You must be signed in to change notification settings - Fork 119
Using ede-php-autoload with PHP-mode #256
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
Comments
Hi Andrea, ede-php-autoload is indeed fantastic :). I like the way you're using it, clean and simple. But what does
Yes and no. I'm actually working on splitting the phptags semanticdb and symref backends from EDEP as well as create a separate repository for semantic-php (which is now embedded in EDEP), making EDEP obsolete. I did make an experimental branch in the EDEP repository to see how we can combine ede-php-autoload with the phptags backends. I just pushed it but there's no benefit in getting it up and running yourself. I won't be using it either, but it's a good lesson to use in semantic-php.
I'm not using it in any workflow at the moment, but did try it out like you did in Stevens CEDET fork. I also (succesfully) tried replacing phptags with ede-php-autoload in EDEP master, before I created the experimental branch I mentioned. I keep getting better at creating half-broken haphazard implementations :) What I do use when I use Emacs but not develop for Emacs, is the master branch of EDEP to browse repositories. That works great with the phptags backend because it doesn't care about project structure. The control-click ( |
Hi, ede-php-autoload is always enabled at my work. I get auto-completion and accurate jump to definition on the part of my work's project that uses PSR-0 style with underscores, but this is not that good on PSR-4 namespaces, mainly because of my poor implementation of namespaces and use statements in my CEDET fork. I'm happy you can find interesting ways to use ede-php-autoload @trashofmasters , actually I did not expect it! |
@stevenremot the codebases I work with can really take a toll on both EDEP and wisent-php parsers and make my Emacs experience almost unbearable. But I really enjoyed class-sensitive autocompletion when using your enhanced I really like Oddly enough I still can't get it to work consistently all classes, for example I still can't resolve the This is how it looks w/o semantic-mode and with the functions I shown in my previous comment: A minor but very effective improvement would be using @jorissteyn AFAIK The tags are generated with the good enough version of Exuberant Ctags for PHP 5.4. In particular the function And here's the (still quite confusing) |
@jorissteyn ahaha thanks! Truth to be told is that I'm to dumb to actually understand how to use it correctly. Even after spending the entire afternoon chatting to Steven about using the thing! So I had to hack something away as not to waste his time :) |
@ejmr @jorissteyn @trashofmasters @stevenremot |
@vyazovoi I'm in favor of creating and joining such a GitHub organization if everyone else thinks it would be useful. |
+1. While I don't think we do formally need an organisation, this would certainly help us centralise all of our efforts and code, as well as keep us from using the bug-tracker as a discussion board/wiki. |
Recently I was searching for all efforts to support PHP in Emacs, and it was not easy. Therefore I propose to gather them in one place. |
I don't see how migrating the repositories (lets say php-mode, semantic-php and ede-php-) to a group-owned github account will help. We'd still have to discuss topics in the issue trackers of repositories right? Or is there more to a github organisation? What if we create an "emacs-php" mailing list on google? That would make it easier to keep track the different development efforts. And keep the noise out of the issue trackers. |
@jorissteyn I see where you are coming from. I think the suggestion was to move just php-mode contributions for Semantic php to a organisation, not actually change ownership of php-mode from Eric to an hypothetical EmacsPHP org. Besides team access to repositories I don't know if organisations offer much over a individual account. The only benefit I can think of would be the greater degree of freedom in terms of creating or changing wiki articles when required and provided we actually need to write any article. To conclude, the organisation can definitely wait, but a mailing list would surely be more useful to keep the noise down here. |
I agree with both you and @jorissteyn re. the usefulness of a mailing list. Personally I'd also like to put such a list on http://gmane.org/ |
Good idea. I created a mailing list called "emacs-php" on google groups: And it should be up on http://dir.gmane.org/gmane.emacs.php once that is approved. Spread the word! :) |
@jorissteyn Thanks! |
I've also added the mailing list links to the README so that hopefully more people will see them. And tweeted about it as well to spread the word. |
ede-php-autoload is a fantastic package that enables Emacs to understand the dependencies of PHP projects, the most immediate benefit of this is that Emacs can translate class names into files, for example allowing you to jump to the definition of a third-party package with the flick of a button.
The package provides PSR-0 and PSR-4 autoload capabilities to the SemanticDB Emacs subsystem and it can be either used as part of the Semantic parsing system, or with some customisation as a standalone package that doesn't require
semantic-mode
to be active on your php buffers.Since
ede-php-autoload
is by nature designed to work in conjunction with semantic PHP parsers, here's a couple of implementations that's worth knowing about:ede-php-autoload
.ede-php-autoload
as part of his work to update the CEDET contrib PHP parser to suit the updated PHP syntax, so it's inherently designed to work with it. Here's a version of the CEDET Contrib PHP parser that works withede-php-autoload
and the built-in CEDET version shipped with Emacs 24 and 25.I personally am using
ede-php-autoload
withoutsemantic-mode
so I've hacked a function that uses it to jump to the declaration of a class imported withuse
.I would be interested in knowing how @jorissteyn and @stevenremot are using it.
The text was updated successfully, but these errors were encountered: