#381 closed Bugs (None)
Strange behaviour when using HTML auto completion
| Reported by: | manski-md | Owned by: | nobody |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | HTML Editor | Version: | v1.0 (example) |
| Keywords: | Cc: |
Description
Hi I've noticed a strange behaviour of PHPEclipse that seems to come with the auto completion of HTML. Steps to reproduce: 1. Close Eclipse 2. Open Eclipse 3. Open an existing(!) php file 4. Go to the end of the file 5. Type "<ht" (without ") 6. auto completion box will open - choose "<html - html page with head, title, body" and press return 7. the code will appear 8. go with your text cursor in front of the line called "cursor" Now some strange things happen: 1. hit the tab key. this will put the cursor in front of "title" and mark it. pressing tab again will lead to "cursor" again. (Is this behaviour normal or wanted? Can I disable it?) 2. delete the word "cursor" and type something else. You cannot indent the line with tab. Instead of this the cursor will go to "title" again. 3. the return button has no effect in the line where the word "cursor" is. This behaviour seems to disappear sometimes somehow - but I don't know really under which circumstances. If one of the described behaviours doesn't appear, just restart Eclipse, redo the step 3 - 8 and choose the "behaviour" (1 - 3) again. To "solve" this behaviour(s) you has to restart eclipse. There is another bug which might be connect to this one. Just do the steps 1 - 5. Then switch to another application. Now switch back to eclipse. The auto completion box has disappeared. Hit Ctrl+Space (normally, this should reopen the completion box) and you get an error that says: "java.lang.NullPointerException" ---- I'm using Eclipse 3.1.1 Build-ID: M20050929-0840 and PHPEclipse from your homepage. (seems to be version 1.1.7; no cvs snapshot)
Change History (2)
comment:1 Changed 6 years ago by emann
comment:2 Changed 6 years ago by scorphus
- Status changed from assigned to closed
Logged In: YES user_id=987242 Originator: NO This is the normal behavior when a template is placed in the code. R1: Pressing Tab makes the cursor jumps through macros (i.e. $title, $keywords and $cursor) around the placed template; R2: This does not occur with the current CVS. Pressing Tab behaves mentioned as above. There is no word "cursor", the $cursor macro gets replaced by the cursor itself; R3: Pressing return ends the template placement and macro editing process and the user can indent the line/content. I'm closing this issue.
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/eclipsebutton_med.png)