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 240917 - New class wizard creates wrong folders incrementally
Summary: New class wizard creates wrong folders incrementally
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on: 231763
Blocks:
  Show dependency tree
 
Reported: 2014-01-24 09:32 UTC by Vladimir Riha
Modified: 2014-01-28 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-01-24 09:32:45 UTC
Please try:
 - create PHP project
 - create new folder "pokus" in source files
 - right click on the folder, select New -> PHP Class
 - in opened wizard, specify some path for Folder field

pokus/test/ahoj


=> IDE creates following directories

pokus/t
pokus/te
pokus/tes
pokus/test
pokus/test/a
pokus/test/ah
pokus/test/aho
pokus/test/ahoj
pokus/test/ahoj/MyClass.php


Expected would be of course only pokus/test/ahoj . The same works in HTML5 project


Product Version: NetBeans IDE Dev (Build 201401240001)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Tomas Mysik 2014-01-24 09:39:48 UTC
Hmm, unfortunately there is not much we can do in PHP since we need issue #231763 to be fixed. I will try to look at it (or at least, improve our hack).

Thanks.
Comment 2 Tomas Mysik 2014-01-24 10:26:16 UTC
Unfortunately, we cannot do more than I did now, I guess. OTOH, this functionality is there since 7.4 and no other duplicates are reported. Lowering to P4 and keeping opened as a reminder

Please verify it, thanks.

http://hg.netbeans.org/web-main/rev/0f3f6c30e826
Comment 3 Tomas Mysik 2014-01-24 10:27:19 UTC
BTW I have added timeout (300 ms) so there should not be a single folder for each key press, I hope.
Comment 4 Quality Engineering 2014-01-25 03:38:51 UTC
Integrated into 'main-silver', will be available in build *201401250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0f3f6c30e826
User: Tomas Mysik <tmysik@netbeans.org>
Log: #240917 - New class wizard creates wrong folders incrementally

Hack improved a bit.
Comment 5 Vladimir Riha 2014-01-27 10:27:13 UTC
It seems to trigger issue 241005 (at least I cannot reproduce 241005 in older build)
Comment 6 Vladimir Riha 2014-01-28 11:52:15 UTC
Frankly I originally haven't noticed that these folders were created on typing in folder field, I thought they were created after hitting Finish button :) This is definitely improvement, thank you.
Comment 7 Tomas Mysik 2014-01-28 12:27:08 UTC
Unfortunately, after discussion with Miloš it is not easy to fix issue #231763 :/
So, closing this issue as fixed, sorry.
Comment 8 Vladimir Riha 2014-01-28 12:45:34 UTC
No problem, better something than nothing :)