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.
(build 200304280000, JDK 1.4.1_02, Solaris 8 on Sparc) ------------------------------ The New wizard for creating a project for an "Empty Java Application" throws an IOException if the default Java package root already exists. Steps to reproduce: 1) In the operating system's console, create directory "$HOME/Projects/Mouse/src". 2) In the IDE, right-click on the Projects' root node and select "New Project...". 3) Select template "Empty Java Application" and click Next. 4) Type "Mouse" into field "Project Name" and click Next. A warning is displayed and the wizard remains in the current step. If the default directory exists because the user has already tried to create a project with the same name but cancelled the wizard (see bug #33430), an error dialog with an IOException is displayed instead of the warning.
The warning dialog comes from the Project intfrastructure, but in my personal opinion this is not a bug its is a feature. The project must be created in the new directory, this makes things much more simple. User is not able to overwrite accidentally the project file with new one.
(dev. build built on 14 July 2003) I investigated the behaviour and found that the behaviour differs depending on whether the IDE was started after the directory had been created or vice versa. If the directory is created first and then the IDE is started and the wizard activated, the warning dialog is displayed when the user comes to step "Specify Java Package Roots". It allows to continue (which is OK) but it does not offer the already existing "src" directory as a package root (it would offer it if the "Mouse" directory did not exist). * The only problem with this scenario is that the "src" directory is not offered. If the IDE is started first, then the directory is created in the OS console and the wizard is activated, a warning dialog with confusing information that the user "misspelled the location path or used characters which your OS doesnt permit for file names" is displayed. The wizard does not allow to advance to the next step (displaying the warning dialog again and again as the user presses the Next button). * Problem 1 - the confusing text of warning * Problem 2 - warnings should not block progress (to the next step) * Problem 3 - missing ampersand in "OS doesnt ..." * Problem 4 - when ther user presses the Finish button instead of Next, an error dialog with an exception is displayed. When the user confirms the dialog and presses Cancel in the wizard, the wizard disappears and the error message is displayed once more.
Hmm, this is the problem of automatical filesystems refresh, which was turned off some time ago. Just do not create anything on the disk outside of the IDE, because such created files/folders are then invisible for the IDE. (see also issue #33316) Re. problem2 - the warning here is telling then the folder for your project can't be created and that's why the wizard can't continue. There is no place where to put the new project.
to Tomas: The current UI does not make it clear that you can only create project in a new directory. The UI spec also. Instead it lets you type it or eve select(!) an existing directory w/o any complain. The IDE must either prevent creating project in existing folder OR warn the user OR disallow this. OR the wizard could possibly be implemented so that it survives and allows you to use the existing data. to Marian: Another problem with the first scenario (folder created before the IDE starts) is that the user has no clue what the message says ("Folder src already created in C:\"). The user did not tell the IDE to create src folder. She does not know where the folder is being created. This message is ok only if you are creating the folder manually, otherwise it must be prevented (call refresh()?)
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped.
Marking issue as VERIFIED --->
---> CLOSED