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 248485 - IDE does not wait for package.json response when renaming project
Summary: IDE does not wait for package.json response when renaming project
Status: REOPENED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-07 10:58 UTC by Vladimir Riha
Modified: 2015-03-04 07:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (76.58 KB, text/plain)
2014-11-07 10:58 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-07 10:58:51 UTC
Created attachment 150341 [details]
IDE log

Please try:
  - create a NodeJS sample project List Directory
  - right click on project and select Rename
  - check to also rename project folder (not relevant, happens in both cases)
  - confirm

=> IDE shows for a quick moment dialog asking for confirmation to update package.json but does not wait for response. The dialog disappears almost instantly.

Thank you


Product Version: NetBeans IDE Dev (Build 201411070002)
Updates: Updates available
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Tomas Mysik 2014-11-07 11:41:31 UTC
Should be fixed I hope - I had to delay the dialog (currently, 500 ms). The only problem could happen when renaming the projetct folder as well - please, try it with some big(ger) project.

Thanks.

http://hg.netbeans.org/web-main/rev/644fd55e7fa9
Comment 2 Quality Engineering 2014-11-08 10:59:04 UTC
Integrated into 'main-silver', will be available in build *201411080653* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/644fd55e7fa9
User: Tomas Mysik <tmysik@netbeans.org>
Log: #248485 - IDE does not wait for package.json response when renaming project
Comment 3 Vladimir Riha 2014-11-13 15:42:45 UTC
Thank you, but I've noticed following:
  - create a NodeJS sample project List Directory
  - right click on project and select Rename
  - check to also rename project folder
  - confirm

=> randomly it sometimes asks twice, few times (rarely) I saw the original behavior where IDE does not wait for response but the dialog was displayed shortly.

When I tried the same with Messages sample (after NPM install), I haven't seen the dialog at all.


Product Version: NetBeans IDE Dev (Build 201411130002)
Java: 1.7.0_72; Java HotSpot(TM) Client VM 24.72-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_72-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 4 Tomas Mysik 2014-11-14 06:39:01 UTC
Renaming a folder as well is problematic and it could easily happen that we will be not able to handle it correctly.
Comment 5 Tomas Mysik 2014-11-20 11:52:54 UTC
Code changed the way it should be but still - no luck :/ So, one case is still broken:
- rename project together with its directory

Could be P4 IMHO, will try to look at it later.

Thanks.

http://hg.netbeans.org/web-main/rev/e19ebce306ac
Comment 6 Quality Engineering 2014-11-22 05:51:33 UTC
Integrated into 'main-silver', will be available in build *201411220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e19ebce306ac
User: Tomas Mysik <tmysik@netbeans.org>
Log: #248485 cont'd - IDE does not wait for package.json response when renaming project

Unfortunately, renaming project with its directory as well is still broken.
Comment 7 Tomas Mysik 2015-03-04 07:47:45 UTC
Unfortunately, I am not able to fix (or work around) it, the result is the same. Lowering to P4 since only one minor case does not work.

Thanks.