tusharjoshi / netbeans-php-drupal

Netbeans Drupal Development Tool
Apache License 2.0
107 stars 14 forks source link

Any plans for Drupal 8 integration? #38

Open uberhacker opened 8 years ago

uberhacker commented 8 years ago

Just wondering if this has been considered yet.

silkentrance commented 7 years ago

@uberhacker would this #39 be a viable solution for you?

uberhacker commented 7 years ago

@silkentrance: The nbddapigen project looks like just what the doctor ordered. I appreciate your effort to create operating system packages. This makes installation less painful. Not your fault, but it would be nice if Netbeans was smart enough to switch the search box based on the codebase. For example, it still searches the Drupal 7 api if you have a Drupal 8 project open. I suppose the plugin needs some more work in this regard. This is a great start, however. Nice work.

silkentrance commented 7 years ago

@uberhacker well, you need to set your project defaults to a drupal 8 version and before that you need to generate the api docs for that version and copy that to the DrupalDevel/code/... directory.

Unless you want to be able to generate this information automatically. However, the existing PHP integration for Netbeans is far from being integrated. First of all it does not expose any APIs that one could use with any plugin. And this is the main showstopper here as one is not able to import, say, the php parser a/o AST builder/generator, and with that, be able to generate such information on the fly. unless, of course, you reimplement the whole shebang, which, of course, is outside the scope of this plugin. And therefore the need for nbddapigen for now to be able to generate that information from the existing drupal 8+ sources, or, alternatively, any plugins that you create or use and which are not part of the core distribution.

silkentrance commented 7 years ago

@uberhacker and the plugin falls back to what is configured for being the default version, which by default AFAIK maps to 6.

silkentrance commented 7 years ago

@uberhacker as for the search box, well, the search is implemented using a hard coded set of search terms read from a specific local file,. e.g. https://github.com/HollyIT/NBDrupalDevel/blob/master/release/DrupalDevel/search/7.txt.

As such, that definitely needs additional work to make it more usable. As for myself, the search did actually never work, using the latest release of the plugin with Netbeans 8.1.

Altogether this would be a different use case.