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 256210 - In the new file dialog, folders are created on key up
Summary: In the new file dialog, folders are created on key up
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.2
Hardware: All All
: P4 normal (vote)
Assignee: Tomas Mysik
Depends on:
Reported: 2015-10-27 17:08 UTC by AnthonyMassie
Modified: 2015-11-02 06:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Picture of the issue (10.74 KB, image/png)
2015-10-27 17:08 UTC, AnthonyMassie

Note You need to log in before you can comment on or make changes to this bug.
Description AnthonyMassie 2015-10-27 17:08:16 UTC
Created attachment 157006 [details]
Picture of the issue

If you type in a folder name in the new file dialog, it will create the new folder on key up. This means if you type in the folder "Test" it will make the folders:

I only have this issues on the PHP file dialogs. The others appears to work properly (only creating the file after the form is entered.)
Comment 1 junichi11 2015-10-28 13:57:25 UTC
I can reproduce it.

Tomas, is this the project area?

Comment 2 junichi11 2015-10-29 03:31:09 UTC
More information:

PHP File and PHP Web Page are no problems.
We can reproduce it if PHP Class and PHP Interface are selected.

my environment:
Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Linux version 3.13.0-66-generic running on amd64; UTF-8

Comment 3 Tomas Mysik 2015-11-02 06:49:02 UTC
Unfortunately, this is caused by detection of the existing namespaces and cannot be avoided right now (the directories are created by NetBeans infrastructure and there is no way for PHP support to avoid such behavior, sorry).

So, we have to choose - allow to specify namespaces for new classes or not... Feel free to reopen, perhaps some system property could be introduced to switch between these options.

Thanks for understanding.