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 248364 - Code completion does not always work after Copy&Paste&Save
Summary: Code completion does not always work after Copy&Paste&Save
Status: VERIFIED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2014-11-03 12:42 UTC by Vladimir Riha
Modified: 2014-11-28 12:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (188.88 KB, text/plain)
2014-11-03 12:42 UTC, Vladimir Riha
Details
screencast (2.20 MB, video/ogg)
2014-11-03 12:43 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-11-03 12:42:44 UTC
Created attachment 150233 [details]
IDE log

Please check the attached screencast, what I'm doing is basically:
 - Select whole content and copy it to clipboard
 - select whole content and paste clipboard content
 - save file
 - wait a moment [stepX]
 - invoke code completion for the ng-click directive on line

=> items like test, hello(), ironman or dog are not offered. They are offered on 2nd code completion invocation (so press Esc to hide the incomplete code completion and the press Ctrl+Space again to bring it back). The important thing is to save the file after pasting clipboard content.

There does not seem to be any difference in how long do I wait in [stepX] and also IDE does not indicate in anyway it is scanning/parsing something. When this happens, the only suspicious thing in IDE log is

INFO [FaceletsLibrarySupport]: Invalidating facelets libraries due to a library descriptor change.

which I have no idea where it comes from.


I'm marking it P2 because it used to work and it causes several qa tests to fail (the age of failing tests is 10 builds). In general the affected tests are reverting all changes in tearDown() method after each single test by Copy&Pasting content of the entire file. I could workaround it but this should still work.


Thank you


Product Version: NetBeans IDE Dev (Build 201411030002)
Updates: Updates available
Java: 1.7.0_67; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-11-03 12:43:26 UTC
Created attachment 150234 [details]
screencast
Comment 2 Vladimir Riha 2014-11-03 12:46:35 UTC
The used project can be found in

web-main/html.angular/test/qa-functional/data/ctrlglobal
Comment 3 Roman Svitanic 2014-11-04 17:16:25 UTC
I think this is rather P3 than P2, as it happens only under quite uncommon circumstances and workaround is pretty easy: delete the quotes and type them again.
Comment 4 Roman Svitanic 2014-11-20 12:57:00 UTC
This used to work before merge of the server-split branch. Adding Svata on CC for evaluation from (probably) Parsing API point of view.
Comment 5 Roman Svitanic 2014-11-24 09:35:19 UTC
Issue can't be reproduced in:
Product Version: NetBeans IDE Dev (Build 20141124-a55308d687a7)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Mac OS X version 10.10.1 running on x86_64; UTF-8; en_US (nb)
Comment 6 Vladimir Riha 2014-11-28 12:06:31 UTC
Thank you, works for me as well


Product Version: NetBeans IDE Dev (Build 201411280001)
Java: 1.7.0_71; Java HotSpot(TM) Client VM 24.71-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)