Community
Participate
Working Groups
When I use content assist in PDT 2.2M7 (all-in-one package from the download site with additionally installed DTP and Subclipse), the cursor makes improper jumps when filling in an associative array as the parameter. Example to reproduce: 1. Create a new php file starting with <?php 2. Start typing: is_f 3. Use content assist (ctrl+space) to pick the function: is_file 4. Start typing as the first parameter: $param[ 5. When you type the opening bracket [, the cursor jumps back to inbetween the 'm' and '[' 6. Move the cursor one ahead so its properly after '[' again 7. Continue typing: " (single-quote ' also works) 8. The cursor jumps back again now between '[' and '"' Example code: <?php is_file($param['foo']); ?> Regards, Marijn.
hi Marijn, What is your setting in PHP->Editor->Typing preference page? I can not reproduce this bug following your steps.Thanks
I was able to reproduce the problem following my steps on a clean install (no modifications) of eclipse-php-helios-M7-win32.zip, with a clean workspace. Settings default there to all selected for "Automatically close" ("Tab key indents the current line" is unchecked). Followed the following steps: 1. Extract eclipse-php-helios-M7-win32.zip to an empty directory 2. Start Eclipse from the new install 3. Choose a non-existing workspace directory (so that a fresh one is created) 4. Create a new PHP project 5. Continue with steps as described in the original report
Thanks,I can reproduce it now.
fixed in head
Verified at PDT-2.2.0.v20100517 After typing [ cursor stay at right position After typing " or ' cursor again stay at right position Closing this issue... Verified by Teodor Kirkov
another case: <?php define|//cursor use CA then choose define function,the content will be: <?php define($name, $value) choose $value,then type ',the dursor will go to the end of line.
(In reply to comment #6) > another case: > <?php > define|//cursor > > use CA then choose define function,the content will be: > <?php > define($name, $value) > choose $value,then type ',the dursor will go to the end of line. fixed this case in head
Verified at PDT-2.2.0.v20100616 In case that zhaozhongwei mention now it is ok Closing for now this issue, but feel free to reopened if can see the same bad behavior at some another cases of using CA Verified by Teodor Kirkov teodor.k@zend.com