This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 113846 [details] The screenshots showing "no suggestions". Please, see the attachments. The default 'vdoc' completion is not working inside/out a class php file. Other templates only work *inside some class method*, not in anywhere else inside the class or out of it. What would be the issue?
Vdoc above the method has no sense. Above the field, it has a sense and doesn't work for me either (there are some issues in resolving contexts). Above an internal var, it works for me without any problem in dev build.
You are wright. 'Has no sense' a vdoc above a method. I had a docblock in mind when try to use vdoc. Thanks for reply.
*right*, i meant.
And of course...above the field, it has no sense too, because you should use classic phpDoc format /** @var MyObject */ instead of vdoc format /* @var $fieldName MyObject */ to let it properly work. So it seems that it works properly for all cases. Above classic variable it works for me without any problem and your other cases have no sense.
You are right again. Thank you so much and sorry for the time wasting.
I have created new Code templates and they do not work as expected in 7.1 when working with language set to PHP. These were all created in 7.0.1 and worked fine but no longer work after upgrade to 7.1 and import of settings. abbrev: pub Expanded Text: /** * ${functionName} */ public function ${functionName}() { ${selection}${cursor} } // ${functionName}{} abbrev: pubp Expanded Text: /** * Public Method ${functionName} * * @param ${paramType} $$${param} ${paramDescription} */ public function ${functionName}($$${param}) { ${selection}${cursor} } // ${functionName}{} abbrev: pubp Expanded Text: /** * Private Method ${functionName} */ private function ${functionName}() { ${selection}${cursor} } // ${functionName}() plus many several others in similar formats for combinations of public, private and protected, with and without parameters and return values. If I try to use the code completion inside a class it always fails, but if I use it outside the class it works correctly. I have even tried creating a new Code Completion called my_pub, with the same Expanded text as pub above and it still fails to work. I have tried changing all of the Expand Template On and On Template Expansion options and it never works. I have also noticed that the default fnc does not always work correctly inside a class. Sometime I will type fnc and hit tab and it will NOT complete, other times it will. It appears to be almost a timing issue as to whether it will work or not. This all occurs when working with PHP files, I have not tested with other file types as that is all I am working with. I downloaded the PHP version of 7.1 today and just found this issue.
I know about issues with code templates and their invocation contexts and I would like to improve them into 7.2. Have you tried to create new clean instalation? With clean user dir? Without importing 7.0.1 settings? Please, test it and create your code templates again...thanks (I think that they will not work either, but...you know ;)
I can confirm that even with a fresh install of 7.1 with no imported settings, in a fresh PHP project and a new class file, the code template for my sample public function code does not work. fnc works but my_pub does not
(In reply to comment #8) > I can confirm that even with a fresh install of 7.1 with no imported settings, > in a fresh PHP project and a new class file, the code template for my sample > public > function code does not work. > fnc works but my_pub does not I am encountering the same issue I am running nb 7.1 on Linux Ubuntu 10.04 (64-bit)
(In reply to comment #9) > (In reply to comment #8) > > I can confirm that even with a fresh install of 7.1 with no imported settings, > > in a fresh PHP project and a new class file, the code template for my sample > > public > > function code does not work. > > fnc works but my_pub does not > > I am encountering the same issue > I am running nb 7.1 on Linux Ubuntu 10.04 (64-bit) EDIT : "pf" TAB should create public function() {} this does not work within a class{} however, when doing so within an existing function (or any other code template) functions (although it is not formatted correctly)
Hey, I just want to notice i have same issue on NB7.1 and Windows 7 os. I've importet code completions from my older installation 7.0.1 Sometimes it works, sometimes not.
Hey, I also find code templates not workinig on windows 7, netbeans 7.1 (settings imported from 7.0.1) in PHP files. In html-files code completition works fine.
Hi, confirm the bug on NetBeans IDE 7.1 (Build 201112071828) System: Mac OS X version 10.7.2 running on x86_64; Some works other not :( Example JavaScript Abbreviation: d (Tab) Expanded Text: console.debug(${selection}${cursor});
*** This bug has been marked as a duplicate of bug 206413 ***