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.

Bug 187700 - Template expansion does not work inside /* */ type comment
Summary: Template expansion does not work inside /* */ type comment
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal with 3 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 07:34 UTC by victorberchet
Modified: 2011-08-16 12:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description victorberchet 2010-06-17 07:34:09 UTC
When using the following template:

/**
* Executes ${action} action
*
* @param sfRequest $request A request object
*
*/
public function execute${action}(sfWebRequest $request)
{
  ${cursor};
}

The template expansion would not work (not asking "action" to be replaced)

It starts working again:
- when ${action} is removed from the comment or
- when comments are converted to // type.

Note using /* ... */ rather than /** ... */ causes the same bug.
Comment 1 Filip Zamboj 2010-08-24 11:34:30 UTC
works in 
Product Version: NetBeans IDE Dev (Build 200812180001)
Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01

please download latest development build or wait for 70M1. If you can reproduce this issue then reopen, please. thanks
Comment 2 Filip Zamboj 2010-08-25 20:16:53 UTC
reproduced in 
Product Version: NetBeans IDE Dev (Build 100825-ba4898edabae)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

steps from user 'jbw'. thread http://forums.netbeans.org/post-82577.html

not working:  
Code:
/**
* Set ${varname}
* @param test
*/
public function set${methodname}($$${varname})
{
$$this->_${varname} = $$${varname};
} 

but the one without variable in the DocBlock works correctly

Code:
/**
* Set 
* @param test
*/
public function set${methodname}($$${varname})
{
$$this->_${varname} = $$${varname};
}
Comment 3 Filip Zamboj 2010-09-15 12:31:53 UTC
batch reassigning
Comment 4 victorberchet 2011-06-08 15:05:44 UTC
Still does not work with NB7:

Product Version: NetBeans IDE 7.0 (Build 201104080000)
Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02
System: Linux version 2.6.38-8-generic running on amd64; UTF-8; en_US (nb)
Userdir: /home/victor/.netbeans/7.0

The template from the first comment expands as:


/**
                        
 
                                            
*/
public function executeaction(sfWebRequest $request)
{
   ;
}

without any chance to enter the "action" parameter !
Comment 5 Ondrej Brejla 2011-08-16 10:09:12 UTC
Works for me properly in NB 7.0.1.
Comment 6 victorberchet 2011-08-16 12:25:05 UTC
The issue is solved for me with NB 7.0.1

Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Linux version 2.6.38-10-generic running on amd64; UTF-8; en_US (nb)