Hello Drupalers!

NetBeans 6.5 Release Candidate is out (with right PHP editing features : http://www.netbeans.org/kb/trails/php.html) and along with that I have released an update to the existing Drupal support in NetBeans. Please feel free to try out the enhanced wizard for assisting Drupal module development.

The modifications in the plugin are :
* Generates the new module in appropriate location
* Sticking to Drupal coding standards, generates template code for some of the common hooks (hook_block and hook_help) in the .module file
* Sticking to Drupal coding standards, generates the .install file, which when not required can be removed. Some template code for some common hooks (hook_install and hook_uninstall) are provided.

You can download the plugin from NetBeans plugin portal (http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?plug...) or from project page (https://nbdrupalsupport.dev.java.net/servlets/ProjectDocumentList?folder...). The source and documentation concerning usage of the plugin is hosted at the latter site.

Comments welcome!

Regards,
Sujit Nair

Comments

ergophobe’s picture

Downloading it now. I can't believe the effort you've put into this.

Guys, just Sujit's help document is 34 pages!

Great effort. Thanks.

Yosemite Explorer - hiking and climbing in Yosemite (drupal)

Anonymous’s picture

I want to try this out. I downloaded the Netbeans EA for PHP version for Mac. Then I downloaded the plugin. When I try to install the plugin, I am told that I am missing these plugins:

Editor Indentation
Editor Library
Editor
Common Palette

but there's no obvious way to download and install these plugins. I can only cancel. These missing plugins do not appear in the list of available plugins.

I also cannot download the Drupal plugin from within NetBeans from the plugin repository, which I suspect would make this all a lot easier.

Anonymous’s picture

Argh! i found the problem. I was clicking the "download" link from the page you linked above, but all those downloads are NetBeans 6.1. Netbeans 6.5 RC2 is available if you click a link in the upper right corner of that download page.

dkl4’s picture

I just downloaded the 6.5 formal release of NetBeans for PHP. I was really pleasantly surprised to see there seems to be god support for Drupal work. In addition to the written docs, is there a video planned? Videos really can excite and get people going.

Thanks again,

David Luhman
Social Security Help

arcaneadam’s picture

I just downloaded Netbeans and the drupal plugin for it and I am absolutely in love with it already. This thing is simply awesome, it is going to be replacing Coda on my Mac, Dreamweaver on my PC and Geany on my Linux. I have been dying to find a good editor for all three systems for sooo long. Finding one that has a drupla plugin also is simply too good to be true, but it is.

AWESOME!

Adam A. Gregory
_____________________________
Web Manger - Marketing Ministries
http://marketingministries.com
Founder - The Open Source Church
http://theopensourcechurch.org
Blogger - AdamAGregory.com
http://adamagregory.com

Adam A. Gregory
_____________________________
Drupal Developer and Consultant
https://goo.gl/QSJjb2
Acquia Certified Developer-Back end Specialist

kyutums’s picture

I just tested the plugin and it is absolutely amazing! The one I got is updated. It even has an option to develop a Drupal Theme. :)

Kudos to sujitnair!

jonem’s picture

I just downloaded NetBeans 6.5.1 and installed the Drupal plugin. So far so good. Now, Nothing happens when I click the finish button after entering module name. Anyone know anything about this?

Best regards .Jon

omar’s picture

with NetBeans 6.5.1 on Ubuntu 8.04.

dieDuiwel’s picture

Same thing happens here... Linux - Suse 11.1, Netbeans 6.5 & Netbeans 7m (dev). Wizzard runs through then does apperently nothing when clicking the Finish button. Having a closer look it is throwing Nullpointer Exceptions:

java.lang.NullPointerException
at org.netbeans.modules.php.drupal.module.wizard.NewModuleWizardIterator.instantiate(NewModuleWizardIterator.java:203)
at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1018)
at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588)
at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409)
at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:161)
at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1478)
at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1432)
at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:120)
at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1999)
at org.openide.WizardDescriptor$Listener$2.run(WizardDescriptor.java:2048)
at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1407)
at org.openide.WizardDescriptor.access$1300(WizardDescriptor.java:120)
at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:2055)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
.....
etc.... please request the rest if required

dugh’s picture

same thing in netbeans 6.7

java.lang.NullPointerException
	at org.netbeans.modules.php.drupal.module.wizard.NewModuleWizardIterator.instantiate(NewModuleWizardIterator.java:203)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1018)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:161)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1527)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1481)
	at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:127)
	at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2052)
	at org.openide.WizardDescriptor$Listener$2.run(WizardDescriptor.java:2101)
	at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1456)
	at org.openide.WizardDescriptor.access$1300(WizardDescriptor.java:127)
	at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:2108)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:451)
	at $Proxy20.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6263)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6028)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
	at java.awt.Dialog$1.run(Dialog.java:1045)
	at java.awt.Dialog$3.run(Dialog.java:1097)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1095)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:985)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1019)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1007)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:115)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
	at org.openide.util.Mutex.readAccess(Mutex.java:268)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:992)
	at java.awt.Component.show(Component.java:1563)
	at java.awt.Component.setVisible(Component.java:1515)
	at java.awt.Window.setVisible(Window.java:841)
	at java.awt.Dialog.setVisible(Dialog.java:985)
	at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:495)
	at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:362)
	at org.netbeans.modules.project.ui.actions.NewFile.doPerform(NewFile.java:154)
	at org.netbeans.modules.project.ui.actions.NewFile.access$200(NewFile.java:80)
	at org.netbeans.modules.project.ui.actions.NewFile$PopupListener.actionPerformed(NewFile.java:349)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
	at java.awt.Component.processMouseEvent(Component.java:6263)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6028)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
FrederickFortin’s picture

When you create a project, you should set your Drupal directory as source folder and then after you may create your module.

Took me a while to figure it out

Hope it help!

alltooeasy’s picture

Spent quite a long time chugging through this to no avail. I just dont think that Netbeans 6.7.1 can be easily pushed to accomodate the drupal add-on

marek12’s picture

I've downloaded Netbeans, wanted to try drupal plugin, got the same error (logs are exactly the same like posted above, 146 and 203 strings respectively for themes and modules).
Just because of curiousity, looks at source files - it's about forming a path for files. I feel too lazy atm to debug the problem deeper , so just did a dirty trick - i've created manually "sites/all" folder in project folder and got it to work.
Themes/modules created w/o problem.
If you will create another project - you will again have to create "sites/all" subfolders manually to get plugin to work.

frank ralf’s picture

Got not problems installing and using the plugin. Works like a charm.

Product Version: NetBeans IDE 6.7 (Build 200906241340)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
System: Windows 2000 version 5.0 running on x86; Cp1252; de_DE (nb)

ari-meetai’s picture

Works as needed. Great Work!

dalin’s picture

Works great in NetBeans 6.8!

________________________
Dave Hansen-Lange
Director of Technical Strategy, FourKitchens.com

1sp’s picture

Confirmed!! it works with netbeans 6.8

cfont’s picture

I've added the plugin and restarted NetBeans but am not getting the ability to add a new Drupal module in the "other > other" section. Anything you can think of for me to try differently?

FrederickFortin’s picture

Check my last post on January 18, 2010 - 11:25

I think it will solve your problem

gafir777’s picture

Fantastic! Great documentation job on the plugin.

Jamie Holly’s picture

Hopefully the author still maintains this plugin as it breaks in 6.9m1. They have updated the plugin editor library and the plugin needs updated for it.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

frank ralf’s picture

You might file an issue via the project homepage https://nbdrupalsupport.dev.java.net/

Jamie Holly’s picture

I tried a couple of times, but it wouldn't let me login. Pretty funny since I was able to login to CVS without any problems and download the source. I then recompiled the NBM in 6.9 and got it working. If anyone else wants it:

http://hollyit.net/files/org-netbeans-modules-php-drupal-module.nbm

Likewise, if anyone else wants to rebuild it on their own, just download the source from CVS, open the project and update the lib-editor module dependency (under the library tree item) to major release version 2 and specific version to 2.8.1.10.2. After that clean+build and then right click the project and select Create NBM.

I don't know if this is the best route or not. I'm a PHP, Javascript, Actionscript and C person LOL. It did work for me though.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

frank ralf’s picture

Thanks for the recompiled version! I filed a bug at nbdrupalsupport together with a link to this issue and your version.

Jamie Holly’s picture

Awesome! Once I get the time I might start playing with the plugin source code. Soon it's going to need support for D7. Might be a good chance for me to start learning a little Java.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

frank ralf’s picture

Tried it with the brand new NetBeans 6.9. Installs without problems and works like a charm.

Product Version: NetBeans IDE 6.9 (Build 201006101454)
Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
System: Windows 2000 version 5.0 running on x86; Cp1252; de_DE (nb)

dalin’s picture

What it really needs is to support multiple versions of Drupal. In the real world we're all developing many sites: some on D5, some on D6, some on D7. Ideally you would set a project's Drupal version, and the plug-in would create the appropriate syntax for the given version.

In order to prevent duplication of code I wonder if it could somehow reuse the hook examples from api.drupal.org?

________________________
Dave Hansen-Lange
Director of Technical Strategy, FourKitchens.com

neutrons’s picture

Due to the lack of experience, I don't get how to install the plugin. This link gives me a folder with some files. What should I do with them to make the plugin for 6.9?

frank ralf’s picture

1) Download the plugin file from http://hollyit.net/files/org-netbeans-modules-php-drupal-module.nbm (right click, "Save target as...")
2) Open NetBeans and go to Tools > Plugins > Downloaded and click "Add Plugins..." where you can install the downloaded file.

hth
Frank

neutrons’s picture

The problem is that the file is a zipped folder, not a .nbm file, so NetBeans does not recognize it as a plugin. Do I miss something?

Jamie Holly’s picture

Just right click:

http://hollyit.net/files/org-netbeans-modules-php-drupal-module.nbm

And select "save file as". Once it's downloaded open up Netbeans 6.9. Go to:

tools->plugins

And then click on the "downloaded" tab. From there browse to where you downloaded the file and select it. It should appear in the list box. Check the box for the plugin and click install. You'll get a couple of screens to accept the license, continue and then a warning about the plugin being unsigned. After you click through all those it will be installed. I just reinstalled it to make sure it's working, and it installed with no problem at all.

(FYI - nbm files are zip files with the nbm extension.)

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

neutrons’s picture

Thanks for helping. I don't get what was wrong. Now it does download the file correctly (the only thing -- it has ".nbm.nbm" extension).

Update: I see, I should have renamed the file extension from ".nbm.zip" to ".nbm". Thanks again

drupaul.z’s picture

It works for netbeans6.9, thank you very much.

raix’s picture

I guess I had a problem with som rights otherwise project folders didn't create by itself (plugin miss?)
I had to manualy create /sites/all/modules folders.. before the plugin could create module folder and files...

jdevelop’s picture

can't install the plugin in netbeans 6.9 ... Need help from developer...

selvakumar’s picture

http://hollyit.net/files/org-netbeans-modules-php-drupal-module.nbm

Right click this link and then choose Save link as option and download it.

softlares’s picture

Installed it on linux with netbeans version 6.7.1 with out any hassle. Absolutely brilliant work. I've just come off using magento, and I am warming more to Drupal and its extensive support with each day that passes. I love the way netbeans now recognises .module files in the same way as .php. Thank you very much Sujit, excellent mate.

benhammond’s picture

Hi there

just tried installing 1230700865973_org-netbeans-modules-php-drupal-module.nbm onto NB 6.9.1 and it tells me

The plugin Editor Library is requested in version >= 1.29.1.8.2 (release version 1) but only 2.10.2.10.2 (of release version different from 1) was found.

The following plugin is affected:
Drupal Module

Is there a patch for NB 6.9.1?
Is this project still active?

It looks like the last commits were in 2008.

It would be fantastic to get modern tooling available for Drupal development; coding modules currently makes me think I've fallen into an early-nineties timewarp.

I'm up for a bit of org.netbeans.modules.csl.spi.DefaultLanguageConfig hacking, but trying to figure out the workflow from the sourcecode and the limited docs available is proving quite a challenge !

kpm’s picture

same problem here.

lesleyfernandes’s picture

same here...

Lesley Fernandes Moreira
Web Consultant | Drupal Developer | Entrepreneur
www.lesleyfernandes.com

sapox’s picture

Is this plugin maintained any more? Considering that the last release was 2 years ago.

philipperen’s picture

subscribing

frank ralf’s picture

As this is a Java plug-in for the NetBeans IDE you will be more successful when you post your wishes in the project's issue queue at https://nbdrupalsupport.dev.java.net/

burt.lo’s picture

In this link (http://drupal.org/node/327486#comment-2894186), intoxination recompiled the Netbeans plugin.

In this link (http://drupal.org/node/327486#comment-2939952), Frank Ralf offers directions for installing the plug-ins for newbies like me.

As of this comment posting, the plug-in installs correctly with Netbeans 6.9.1 on OS X.

sapox’s picture

Although the last version of the plug-in (downloaded from http://hollyit.net/files/org-netbeans-modules-php-drupal-module.nbm) runs well in my netbeans 6.9.1 on linux, it won't work on my windows machine. Specifically the auto-completation of drupal functions.

Any idea how to make it work?

Thx.

frank ralf’s picture

As mentioned before, this plug-in is a Java based plug-in so any request will have a better chance of success if filed in the appropriate issue queue at https://nbdrupalsupport.dev.java.net

However,

Java.net is migrating to a new infrastructure and project owners must request that projects be moved by November 30, 2010.

Therefore I filed a request for moving the project (and thus keeping it alive) at http://www.java.net/pmr-71

Please support the further development of this useful plug-in by commenting over there (free registration required).

tia
Frank

frank ralf’s picture

The plug-in installs and works ok on my machine:

 Product Version: NetBeans IDE 6.9.1 (Build 201007282301)
 Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01
 System: Windows 2000 version 5.0 running on x86; Cp1252; de_DE (nb)

I never knew there was an auto-completion of Drupal functions. Are you sure this is provided by the plug-in?

Jamie Holly’s picture

The plugin doesn't handle autocomplete of Drupal functions. That's actually a core feature of NetBeans (it autocompletes all PHP functions). Start typing a function and try hitting ctrl+space and see if that pops-up the autocomplete dialog.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

sapox’s picture

Sure, that works perfectly for all the php functions but not for the drupal functions. And thats something related with windows because in linux the autocomplete works perfectly.

Probably I war wrong to assume that the plug-in was in charge of the autocompletation. So, if it is not the plug-in, how netbeans recognize the drupal functions to autocomplete?

Jamie Holly’s picture

Try going to options->misc->files and associate .inc and .module files with the PHP editor and see if that helps. I have inc in mine and not module, though it still picks up module on my Windows desktop and laptop.

You might also have to clear the cache and let Netbeans rescan the project. To do that (Vista/Win7), go to:

C:\users\{username}\.netbeans\var\cache

And delete everything in there. Netbeans is notorious for the cache becoming corrupt.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

jfha73’s picture

Hey guys this is a very usefull plugin, but I don't see any updates for it to work with Netbeans 6.9.1 or 7.0 M2 do any of you know if this is going to be done? I tried to install this version but it says the Plugin Editor 7.0 M2 has is too new for it, the plugin asks for plugin editor version 1.x.x and 7.0 has version 3.x.x

I'd appreciate any help you can give me on this one, or at least any information about it.

Sohodojo Jim’s picture

In order to get the much-appreciated word-wrap in 6.9.1, I run the nightly development version. Sadly, this gets the following mismatch error similar to what is reported here and there above:

The plugin Editor Library is requested in version >= 2.8.1.10.2 (release version 2) but only 3.4.0.11.5 (of release version different from 2) was found.

Not really set up (mentally or physically) to recompile as wisely suggested above. If I do accomplish this feat, will post here. Otherwise, will keep tuned in the event that an updated version is made available.

--Sohodojo Jim--

Jamie Holly’s picture

I've rebuilt the plugin against Netbeans 7-m2 to fix the broken dependencies issue. You can get it here:

http://hollyit.net/sites/default/files/org-netbeans-7-modules-php-drupal...

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

jfha73’s picture

I downloaded this one but it still says it needs editor version 2 and NetBeans 7 comes with version 3

Jamie Holly’s picture

I just installed it without any problem on Win 7 with the latest beta version of Netbeans 7.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

jfha73’s picture

OK, let me try this one, I have been using M2 for this and I keep getting the message.

I'll let you know if it installs for me in this Beta.

Thanks for the info.

jfha73’s picture

Well, it looks like it does work for the Beta.

Jamie Holly’s picture

That's odd. When I rebuilt the plugin, I actually did it against M2 and it installed fine on that also, as well as the beta release. True I always go in and clear out all the cache when upgrading NetBeans. It seems like there are a lot of problems with the way it caches stuff. I wouldn't be surprised if the plugins fall under that category.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

jfha73’s picture

I guess I spoke too soon,

It does install, but when I try to create a new Theme it gives me an exception and it doesn't let me create anything, I have not tested it with a Module though.

Also, keep up the good work, this is an excellent plug-in, it just needs some tweak to get it up and running.

jfha73’s picture

Jamie Holly’s picture

I'm not actually the maintainer of that plugin. I just been rebuilding it so it works in newer versions of NetBeans. I think the author of the plugin has actually abandoned it. Sadly I'm not a Java developer, so what I can do with it is really limited.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

frank ralf’s picture

JFTR
The original Java project will soon be migrated to the new infrastructure, see http://java.net/projects/help/pages/RequestedProjects for details. And no, I'm also not the maintainer of that plugin ;-)

jfha73’s picture

Thanks for the info.

frank ralf’s picture

JFTR
The project has been migrated and now lives at http://java.net/projects/nbdrupalsupport

derridaDD’s picture

hi
i have just installed netbeans 6.9.1

and when i try to install the plugin i get this message:

The plugin Editor Library is requested in version >= 1.29.1.8.2 (release version 1) but only 2.10.2.10.2 (of release version different from 1) was found.

what should i do?

it say >= but if i understand correctly the 2 version does pass this test no?

best regards

marcoka’s picture

same here.

frank ralf’s picture

Have you tried the recently rebuilt releases from this thread?

alex.skrypnyk’s picture

Recent rebuilt unavailable. Anyone to upload it again?

Founder, Software Engineer | www.drevops.com

Jamie Holly’s picture

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Jamie Holly’s picture

Netbeans pushed a new update out that again breaks the version 7 plugin. I've rebuilt it again to work. This update came out on 2/10/11. so the plugin below will work with any installations/updates from 2/10/11 on.

http://www.hollyit.net/blog/drupal-netbeans-plugin-rebuilt-against-versi...

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

electrichound’s picture

Well, I can't download this plugin at all. Official download page says, that "There are no downloads for this project".
And I need plugin for NetBeans 6.8, not 6.9 or 7.

Jamie Holly’s picture

Rebuilding the module against your version of Netbeans is really easy. You got to have the full version of Netbeans. Then download the source code through SVN:

http://java.net/projects/nbdrupalsupport/sources

Open the project in Netbeans, then right click on it and select properties. Go to Libraries and select the "module dependencies" tab. After that select "Editor Library" and edit it. Change the version to whatever version it says you need. Click OK, then right click on the project again and select "Create NBM". After that you have the module with the proper dependencies that you can install.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

frank ralf’s picture

Will try that myself sometime ;-)

electrichound’s picture

Thank you very much!
I've finally built it for NetBeans 6.8 on Mac OS X PPC Tiger (Java 1.5.0_19). If someone need it, I could upload it.

tomsherlock’s picture

I've attempted to follow these instructions but am stumped because I don't know which java category I should use.
Simply choosing the category java and the Java Project with Existing Sources results in errors such as:

Project folder already used in project.
/Applications/MAMP/htdocs/nbdrupalsupport~svn/trunk/plugin/src
/Applications/MAMP/htdocs/nbdrupalsupport~svn/tags/default_release/plugin/src

It's not clear at what point I should be adding the folder with existing code.

It would nice to be able to create and save the project so that I could move along with following the above instructions.

Any suggestions?

Thanks.

tomsherlock’s picture

Please ignore my previous post. I've managed to set up the project.

However, when I select properties and go to Libraries there is no 'module dependencies' tab and no "Editor Library' either. I'm working with the full version of Netbeans 7.

suggestions?

Thanks.

lukus’s picture

Install a module called 'Netbeans Plugin Development' .. that should clear up the dependency issues.

EDIT: scratch that, this didn't work for me after all.

sher1’s picture

There is a link on this page:
http://www.hollyit.net/blog/drupal-plugin-netbeans-70-final
that seems to work ok

estepix’s picture

I have tried many of the modified nbm files linked here to no avail, after many tries I got it working. My Netbeans version is 6.9 and the editor library version I required was 2.10.1.10.2. Here are the steps I followed, hope this helps someone:
1. Go to http://java.net/projects/nbdrupalsupport/sources
2. Checkout nbdrupalsupport source code:
svn co https://svn.java.net/svn/nbdrupalsupport~svn /destination/path
3. On NetBeans File > Open Project > search for the /destination/path/trunk and double click on plugin
4. Open Important Files > Project Metadata
5. Change Editor Library version to the one you require:

                <dependency>
                    <code-name-base>org.netbeans.modules.editor.lib</code-name-base>
                    <build-prerequisite/>
                    <compile-dependency/>
                    <run-dependency>
                        <release-version>2</release-version>
                        <specification-version>2.10.1.10.2</specification-version>
                    </run-dependency>
                </dependency>

That is you need to change the "release-version" and the "specification-version"
6. Then save the document and right click on Projects > Drupal Module and select Create NBM
7. The file location is shown at the end of the compiling log:
Building jar: /destination/path/trunk/plugin/build/org-netbeans-modules-php-drupal-module.nbm
8. Click Tools > Plugins > Downloaded Tab > Add Plugins... button and search for the nbm file you just compiled
9. Then install the plugin as usual

Jamie Holly’s picture

I finally bit the bullet and started relearning Java. I have made a new module for Netbeans (7.0) that is a total rewrite of the old module. This one actually uses templates to insert hooks and create modules and themes. You can grab it from GitHub:

https://github.com/HollyIT/NBDrupalDevel

I do have future plans for the module once I get the time:

https://github.com/HollyIT/NBDrupalDevel

http://www.hollyit.net/projects/drupal-development-tool-netbeans

If anyone is interested in contributing to the development, just let me know. I've got the source code included on Github, so have at it. Just be warned my Java skills are horrible, so the code isn't that great, but it does work!

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

frank ralf’s picture

Many thanks! I added a notice to the issue queue at http://java.net/jira/browse/NBDRUPALSUPPORT-4

sense-design’s picture

The Drupal icon in the toolbar is not shown on NetBeans 7.1 when opening drupal files, any solutions?
UPDATE: Reading CHANGELOG helps: "moved to window"

Jamie Holly’s picture

And actually it's moving back to the top bar in 2.0, which I just pushed out RC1 of yesterday. I did a bunch of redesign on the API window with a lot more awesomeness in it. Oh and 2.0 does have Drush support in it. Hoping for the final release next week. I've been using it like crazy on some sites for clients and it looks like all the bugs are about squashed.

---------------------

HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

frank ralf’s picture

scott m. sanders’s picture

:)