X

An Oracle blog about NetBeans for PHP

  • News
    January 13, 2009

The first alpha version of Prado support

When I published the entry with the first screenshots of Prado support, I promised to publish first alpha version soon. Unfortunately from that time I'm extremely busy and I wasn't able to work on the project to fix all problems. On Sunday I found a little time to work on this and there is the first alpha version.

The bits are compiled against NetBeans development version. You can dawnload the latest nightly builds from NetBeans site. If you want to try it I suggest these steps:

  • Download the nbm with the Prado support. 
  • Download the latest nightly build. Download the OS independent zip file.
  • Unzip the zip file somewhere.
  • Open a console window and go to the folder, where you unziped NetBeans.
  • Go to the netbeans/bin folder.
  • Start NetBeans with --userdir switch:
    • Unix machines:
      ./netbeans --userdir /path/to/test/userdir/folder
    • Win machines:
      netbeans.exe --userdir X:\\path\\to\\test\\userdir\\folder 

    The main advantage of this approach is that you can run more instances of NetBeans on your machine and one instance doesn't influence others. I wrote more here.


  • In NetBeans invoke Plugin Manager (Tools -> Plugins).
  • In Download tab click on the Add Plugins... button. 
  • Browse the downloaded nbm.
  • Click on the Install button and follow instruction. 
  • You have to restart the IDE.

I created the nbm against the development version, because it was for me much easier to fix certain problems. I have tested just little bit due to luck of time, but I don't expect that everything will work and not everything is implemented. I have noticed that the Prado code completion doesn't have to work in page files at the first time. In such case open the appropriate php file and go back to the page file.

When you will play with this, don't forgot to put Prado framework into the include path of the project.


Join the discussion

Comments ( 32 )
  • Michal Tuesday, January 13, 2009

    Nice work, but i'm waiting for symfony support ;)

    Have you made any progress on this?

    Also i have another question, unrelated to this topic, but maybe someone could answer me:

    Are there any possibility to show commit log for specific directory in mercurial repository? I would like to see what's happening on subversion module.


  • dbazza Tuesday, January 13, 2009

    Great!

    This is very useful for my job. Thanks.

    Will we have other versions (with more features) or prado support ends here?

    thanks,

    Diego


  • hantsy Tuesday, January 13, 2009

    There is a problem about the file type resolver.

    The page template configuration file of the Tapestry framework is also end with the same extension(.page). How to differentiate the two type file in NetBeans.

    The "File Type" in Option panel is lack of this feature to do this.


  • Diego Tuesday, January 13, 2009

    Thanksssssssssssssss


  • Marlon J. Manrique Tuesday, January 13, 2009

    I write a lot of PHP code for my web applications with vi, gedit or bluefish cause i can't found a nice IDE until now, NetBeans for PHP rules !!!

    I also work with the Prado Framework and this module is amaizing, i hope you don't end the support for this framework.

    Thanks


  • Petr Tuesday, January 13, 2009

    To Michal:

    >Nice work, but i'm waiting for symfony support ;)

    >Have you made any progress on this?

    I have to admit, that I'm still learning Symfony. I have some ideas and I discuss with people, what should be done. So I'm working on this, but there is no bits yet.

    To dbazza:

    >Will we have other versions (with more features)

    >or prado support ends here?

    The Prado support is my extra project and I'm working on this only in my spare time. Unfortunately in recent months it's very hard for me to find out time to work on this. I want to continue on this. So we will see.


  • Lucas Wednesday, January 14, 2009

    Hi Petr,

    Remember me in other posts ? :-)

    I was updating netbeans nightly build every week, and php support is getting real cool.

    My goal instead is symfony, if you want some people to talk about features, send me e-mails on domluc||gmail.

    I use netbeans and symfony every day and I'll be glad to help you.

    Cheers

    Lucas


  • ofl Wednesday, January 14, 2009

    Hi guys,

    I would like to say something (It is not attached to the topic.) .

    So I found a very annoying bug, i posted to the issues.

    When i want to use global variables in some method, the auto code completion wasnt work. So Example;

    try {

    $global_variable=new some_class($p1,$p2);

    }catch(Exception $e ) {..... }

    class some_class {

    public function some_method()

    {

    global $global_variable;

    // I want to see to instance methods

    $global_variable-> (That is a problem)

    }

    }

    Please guys, fix it to the next patch, or create a patch, thank you very much .


  • radek Thursday, January 15, 2009

    To ofl:

    Seems to work fine in development builds

    http://bits.netbeans.org/download/trunk/nightly/latest/


  • Roger Padilla Thursday, January 15, 2009

    Great!, finally we count with a good plugin and an excellent IDE for PRADO.

    Thanks a lot Petr.


  • ofl Saturday, January 17, 2009

    Radek thank you very much =)


  • Felix Saturday, January 24, 2009

    Hello Guys,

    Am I the only that cannot get this working under Windows Vista nor XP ?

    I'm using nightly builds bis , configure a prado framework project (with the framework path on the include path). Can't get any real completion from sub-component : for example :

    <?PHP

    class Home extends TPage {

    $this->Application .. IS NOT RECOGNIZE

    $this->Service..... IS NOT RECOGNIZE

    but

    $this->getHasProperty IS RECOGNIZE

    }

    I tries the trick of Symen but in vain. Unable to have any code completion on sub-class, childs, and such..

    Can you please confirm any success doing this working good on XP or Vista env ?

    I'm using wampp (WamppServer 2.0 for Vista).

    Thank you for any answer as it is almost a week I trying to figure out how to make this working with the Prado Plugin correctly.

    Felix


  • Petr Sunday, January 25, 2009

    Hi Felix,

    the support handles few functionality in page files (http://blogs.sun.com/netbeansphp/entry/first_screenshots_of_alfa_version) . It doesn't touch the functionality, which you have describe. It is supported by the editor itself.

    Where did you define the type of the Application and Service field?

    Regards,

    Petr


  • Felix Monday, January 26, 2009

    Hello Petr,

    thank you for your time.

    I understand what you are saying and I agree with it.

    But my problem here is about autocomplete feature while working with Prado framework (as if it were any other script) in the edition of php file (not .page or .tpl).

    I have put 3 screenshots together with comments on them that explain the pb and config. If you can have a look at it it would be great as I think that there might be other people out there facing same and needing some clarification like me.

    http://absysinfo.com/prado_pb1.gif

    http://absysinfo.com/prado_pb2.gif

    http://absysinfo.com/prado_pb3.gif

    Thanks in advance for any help.

    Regards.

    Felix


  • Felix Thursday, January 29, 2009

    Hello Petr, Hello Guys,

    Am I the really the only one to face this pb ? Any help would be greatly appreciated.

    Thanks is advance.

    Felix


  • Ctrlaltca Sunday, February 1, 2009

    java.lang.IllegalArgumentException: Invalid org.netbeans.libs.svnjavahlwin32 for operation UPDATE

    while trying to install the plugin in netbeans-Build 200902010201


  • Felix Tuesday, February 3, 2009

    Hello Ptr,

    I have tried with last night build : same pb.

    Any hint ?

    regards.

    Felix


  • Petr Tuesday, February 3, 2009

    Hi Felix,

    which OS do you use? And which java? Could you sand me your massage.log file from user dir?

    Regards,

    Petr


  • Felix Thursday, February 5, 2009

    Hello Petr,

    my OS is Vista Pro, with jdk6.

    4GoRam and 400Go HDD

    Due to lack of hints, we had to move to www.yiiframework.com with great success ! Everything is working flawless there.

    Thank you nayway for you kind time.

    Best regards.

    Felix


  • Jeetu Monday, March 9, 2009

    Hi guys,

    I am new to PHP and Prado, and netbeans is my first PHP Editor. I have added and installed the nbm pluggin and included the prado framework path in my included file folder.

    My problem is I cannot get the auto complete tags for com controls of Prado in my .page or even php file.


  • Luis molina Tuesday, March 31, 2009

    hi, i would like to know two things

    1. why dont put the code of the plugin in svn?

    2. i have the problems like Felix, i dont get code completion


  • Paul A Norman Wednesday, April 1, 2009

    I have been looking at using Prado and this would encourage me to do so.

    However I ma trying to install it as shown below, and it will not get past the first step after clicking Install / Next it produces an error message (underneath NetBeans and system info here)

    Any advice would be appreciated please.

    Paul

    Product Version: NetBeans IDE Dev (Build 200903250219)

    Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01

    System: Windows XP version 5.1 running on x86; Cp1252; en_NZ (nb)

    http://www.netbeans.org/issues/show_bug.cgi?id=161643


  • Maciej Monday, April 6, 2009

    hi,

    i tested extension on latest Stable build of nb, and only navigator worked bad. Switched to dev build and after installing, restarting IDE, and opening .page file the error apears:

    java.lang.NoClassDefFoundError: org/netbeans/api/html/lexer/HTMLTokenId

    at org.netbeans.modules.php.prado.lexer.PageTokenId$1.embedding(PageTokenId.java:114)

    at org.netbeans.spi.lexer.LanguageHierarchy$Accessor.embedding(LanguageHierarchy.java:363)

    at org.netbeans.lib.lexer.LexerUtilsConstants.findEmbedding(LexerUtilsConstants.java:208)

    at org.netbeans.lib.lexer.EmbeddingContainer.embeddedTokenList(EmbeddingContainer.java:153)

    at org.netbeans.api.lexer.TokenSequence.embeddedImpl(TokenSequence.java:355)

    at org.netbeans.api.lexer.TokenSequence.embedded(TokenSequence.java:303)

    at org.netbeans.modules.gsf.LanguageRegistry.addLanguages(LanguageRegistry.java:368)

    at org.netbeans.modules.gsf.LanguageRegistry.getEmbeddedLanguages(LanguageRegistry.java:402)

    at org.netbeans.modules.gsfret.hints.infrastructure.SuggestionsTask.getHintsProviderLanguage(SuggestionsTask.java:72)

    at org.netbeans.modules.gsfret.hints.infrastructure.SelectionHintsTask.run(SelectionHintsTask.java:86)

    at org.netbeans.modules.gsfret.hints.infrastructure.SelectionHintsTask.run(SelectionHintsTask.java:60)

    at org.netbeans.napi.gsfret.source.Source$CompilationJob.run(Source.java:1417)

    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

    at java.util.concurrent.FutureTask.run(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

    [catch] at java.lang.Thread.run(Unknown Source)

    my platform:

    Product Version: NetBeans IDE Dev (Build 200904030200)

    Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02

    System: Windows XP version 5.1 running on x86; Cp1250; pl_PL (nb)

    Any ideas what to do to make it work?


  • Emon Thursday, April 9, 2009

    i've same problem when i press ctrl+space to auto complete:

    java.lang.NoSuchMethodError: org.netbeans.modules.php.editor.index.PHPIndex.get(Lorg/netbeans/modules/gsf/api/Index;)Lorg/netbeans/modules/php/editor/index/PHPIndex;

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:224)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:208)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:80)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:72)

    at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:493)

    at org.netbeans.modules.gsf.SourceAdapter.runUserActionTask(SourceAdapter.java:71)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.getComponents(PradoHTMLCompletionProvider.java:280)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.access$100(PradoHTMLCompletionProvider.java:79)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$Query.query(PradoHTMLCompletionProvider.java:188)

    at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)

    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)

    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)

    Product Version = NetBeans IDE Dev (Build 200904070200)

    Operating System = Windows XP version 5.1 running on x86

    Java; VM; Vendor = 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19; Sun Microsystems Inc.

    Runtime = Java(TM) SE Runtime Environment 1.6.0_04-b12


  • Aleh Tuesday, April 14, 2009

    Hello. I am newbie in the NetBeans development.

    I want to create plugin for suppor Yii framework. But I don't have more experience to make it.

    Can you help me?


  • dvd film izle Tuesday, June 9, 2009

    Hello. I am newbie in the NetBeans development.

    I want to create plugin for suppor Yii framework. But I don't have more experience to make it


  • medyum Thursday, August 13, 2009

    Hello. I am newbie in the NetBeans development.

    I want to create plugin for suppor Yii framework. But I don't have more experience to make it.

    Can you help me?


  • uiratan Thursday, August 13, 2009

    I have the same problem:

    java.lang.NoSuchMethodError: org.netbeans.modules.php.editor.index.PHPIndex.get(Lorg/netbeans/modules/gsf/api/Index;)Lorg/netbeans/modules/php/editor/index/PHPIndex;

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:224)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:208)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:80)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:72)

    at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:493)

    at org.netbeans.modules.gsf.SourceAdapter.runUserActionTask(SourceAdapter.java:71)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.getComponents(PradoHTMLCompletionProvider.java:280)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.access$100(PradoHTMLCompletionProvider.java:79)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$Query.query(PradoHTMLCompletionProvider.java:188)

    at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)

    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)

    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)

    Caused: org.openide.util.RequestProcessor$FastItem: task failed due to

    any one can help?


  • Javier Sunday, August 16, 2009

    @uiratan I have the same problem:

    java.lang.NoSuchMethodError: org.netbeans.modules.php.editor.index.PHPIndex.get(Lorg/netbeans/modules/gsf/api/Index;)Lorg/netbeans/modules/php/editor/index/PHPIndex;

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:224)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:208)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:80)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:72)

    at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:493)

    at org.netbeans.modules.gsf.SourceAdapter.runUserActionTask(SourceAdapter.java:71)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.getComponents(PradoHTMLCompletionProvider.java:280)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.access$100(PradoHTMLCompletionProvider.java:79)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$Query.query(PradoHTMLCompletionProvider.java:188)

    at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)

    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)

    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)


  • mirc Saturday, August 22, 2009

    Thank you by Admin


  • Nechor Friday, September 4, 2009

    The same problem here. Ctrl+space on \*.page file causes error:

    java.lang.NoSuchMethodError: org.netbeans.modules.php.editor.index.PHPIndex.get(Lorg/netbeans/modules/gsf/api/Index;)Lorg/netbeans/modules/php/editor/index/PHPIndex;

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:224)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$ComponentAnalyzer.run(PradoHTMLCompletionProvider.java:208)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:80)

    at org.netbeans.modules.gsf.SourceAdapter$1.run(SourceAdapter.java:72)

    at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:493)

    at org.netbeans.modules.gsf.SourceAdapter.runUserActionTask(SourceAdapter.java:71)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.getComponents(PradoHTMLCompletionProvider.java:280)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider.access$100(PradoHTMLCompletionProvider.java:79)

    at org.netbeans.modules.php.prado.completion.PradoHTMLCompletionProvider$Query.query(PradoHTMLCompletionProvider.java:188)

    at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:218)

    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)

    [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)


  • ara&ccedil; sorgulama Tuesday, December 29, 2009

    Hello. I am newbie in the NetBeans development.

    I want to create plugin for suppor Yii framework. But I don't have more experience to make it.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.