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 78246 - [55cat][cc] wrong cursor possition after atributes code completion
Summary: [55cat][cc] wrong cursor possition after atributes code completion
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2006-06-19 11:57 UTC by Jindrich Sedek
Modified: 2007-11-08 14:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snap shot of the cursor possition (4.45 KB, image/png)
2006-06-19 11:58 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2006-06-19 11:57:11 UTC
Create new WebApplication

somewhere in in index.jsp type:

<p "wait for cc" alig "press Ctrl+Space to complete the atribute"
the code is completed to <p align="" but cursor si not moved between "|" It is
mosty moved to the third symbol of the line below.

It appears for <p tag, <h1, <h2... tags and so on. I've reproduced it also for
dir atribute. 
It's hard to reproduce. It appear maybe once in 10 attempts, but it's appearence
forbid using cc.
Comment 1 Jindrich Sedek 2006-06-19 11:58:00 UTC
Created attachment 31150 [details]
snap shot of the cursor  possition
Comment 2 Jindrich Sedek 2006-06-19 11:59:06 UTC
NetBeans5.5Dev 200606190200
Comment 3 Jiri Kovalsky 2006-06-19 14:41:39 UTC
This issue was first reported by NetCAT 5.5 participant.
Comment 4 cezariusz 2006-06-19 14:49:49 UTC
Is it related to issue 77511?
Comment 5 brviking 2006-06-21 18:59:08 UTC
Besides it's a editor error, don't think is same as #77511 - here main problem
are attributes, and cursor going to wrong place *after* completion.
Comment 6 Marek Fukala 2006-06-26 12:59:58 UTC
I cannot reproduce it at all :-(. Other guys commenting here: can you reproduce it?
Comment 7 Tomasz Slota 2006-06-26 13:10:34 UTC
I saw Jindra reproducing it, i first couldn't reproduce it myself neither
Comment 8 Marek Fukala 2006-06-26 14:13:55 UTC
So what is the magic you needed to use to reproduce it then? I'll ask Jindra to
show it the problem to me otherwise.
Comment 9 Jindrich Sedek 2006-07-19 13:14:45 UTC
This problem si better reproducible this way:
in Menu/tools/options/editor/code templates/Language=JSP
press new button and in Expanded Text type:
<tab + Ctrl+Space
the cursor is moved to the middle of end tag
Comment 10 Marek Fukala 2006-08-02 13:51:42 UTC
It looks like a cuncurrency issue when in the "smart enter" code. Since Tomasz
Slota reimplemented this recently I am reassigning to him and kindly asking
Jindra to check whether the issue is still valid. I have just tried to reproduce
and I does work properly even in the options dialog's template editor.
Comment 11 Jindrich Sedek 2006-08-02 14:56:52 UTC
I'm sorry, but I'm still able to reproduce this bug in both ways - in JSP editor
and in templates/Extended text editor either.
Comment 12 Tomasz Slota 2006-08-08 14:12:29 UTC
The changes mentioned by mfukala were actually committed later (issue 79366) and I cannot reproduce 
this bug anymore. It will be closed after Jindra's approval
Comment 13 Jindrich Sedek 2006-08-09 10:18:23 UTC
I'm not able to reproduce it in editor either. In Expanded Text editor getting
IAE. See issue 82242. You can close this bug. I'll wait for fixing of issue
82242 with verification.
Comment 14 Tomasz Slota 2006-08-09 10:43:11 UTC
fixed together with issue 79366.
Comment 15 Jindrich Sedek 2006-08-10 07:49:26 UTC
Verified NetBeans 5.5Dev 200608100000
Comment 16 Jindrich Sedek 2006-09-07 11:53:57 UTC
This issue is reproducible again, I've made automated qa-functional test that is
randomly able to reproduce it in a different cases
run using: -Dxtest.attribs=writing


Checking in
qa-functional/src/org/netbeans/test/web/core/syntax/WritingCompletionTest.java;
/cvs/web/jspsyntax/test/qa-functional/src/org/netbeans/test/web/core/syntax/Attic/WritingCompletionTest.java,v
 <--  WritingCompletionTest.java
new revision: 1.1.2.1; previous revision: 1.1
done
Comment 17 Tomasz Slota 2006-09-07 12:42:13 UTC
how often is it reproducible in your test? Are you able to reproduce it manually?
Comment 18 Jindrich Sedek 2006-09-07 12:49:09 UTC
for me it's reproducible in one or two cases in each test run and I can
reproduce it manually as well.
Comment 19 Tomasz Slota 2006-09-11 13:10:17 UTC
Removing the 'fix-in-55' tag. Jindro, feel free to amend the priority.
Comment 20 Jindrich Sedek 2007-11-01 16:23:25 UTC
I'm not able to reproduce this issue in actual build of 6.0, probably already fixed.
Comment 21 Jindrich Sedek 2007-11-08 14:32:27 UTC
verified
NetBeans IDE Dev (Build 071108)