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 226848 - Unable to run project after changing sources folder
Summary: Unable to run project after changing sources folder
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 15:41 UTC by Vladimir Riha
Modified: 2013-06-19 15:01 UTC (History)
1 user (show)

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 2013-02-28 15:41:56 UTC
Please try following:
- create php project in [path]/project
- in NetBeans, switch to Files tab, create folder "src" in [path]/project/src and change src.dir in project properties to ./src
- switch to Projects tab
- create index file in sources root (so [path]/project/src/newEmptyPHP.php) and set it in Project Properties as Index file in Run Configuration:

     - Project URL is http://localhost/[project]/src
     - Index file is newEmptyPHP.php

- confirm 
- run project


=> instead of running project, Project Properties dialog is opened with preselected Run Configuration but there is no error message, no warning.


It seems that it could be a bit "random"


Product Version: NetBeans IDE Dev (Build 201302272300)
Java: 1.7.0_13; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20
System: Linux version 3.2.0-38-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-02-28 15:46:38 UTC
(In reply to comment #0)
> Please try following:
> - create php project in [path]/project
> - in NetBeans, switch to Files tab, create folder "src" in [path]/project/src
> and change src.dir in project properties to ./src
> - switch to Projects tab
> - create index file in sources root (so [path]/project/src/newEmptyPHP.php) and

It seems to work fine if the new file is again named "index.php". If the name is different, the problem seems to be 100% reproducible. 

The only thing I found that helps is to restart IDE
Comment 2 Tomas Mysik 2013-06-14 10:01:40 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/d8f474ca90f3
Comment 3 Quality Engineering 2013-06-15 03:03:19 UTC
Integrated into 'main-golden', will be available in build *201306142301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d8f474ca90f3
User: Tomas Mysik <tmysik@netbeans.org>
Log: #226848 - Unable to run project after changing sources folder
Comment 4 Tomas Mysik 2013-06-17 06:49:51 UTC
Láďo, this fix is not in Beta but maybe it would be good to have it there so we get feedback from our users. If anyone has "slow" upload-on-save (or maybe even local copying, the same code is used), dialog "Copy support still running..." will appear on every file save. Perhaps we could:

* increase timeout (currently 200 ms is used)
* add button to the dialog which would open Project Properties (category Browser) where user could simply disable "Reload browser on file change" checkbox

What do you think? Could you please test the current behaviour on some "slow" remote connection?

Thanks.
Comment 5 Tomas Mysik 2013-06-17 07:00:28 UTC
Please, ignore my last comment, wrong issue.

Thanks.
Comment 6 Vladimir Riha 2013-06-19 15:01:18 UTC
Thanks, verified

Product Version: NetBeans IDE Dev (Build 201306181109)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)