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 262817

Summary: Relative path to project source
Product: projects Reporter: artavazd
Component: Generic InfrastructureAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 10   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description artavazd 2016-07-14 17:26:11 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 10 Pro running on amd64
Java; VM; Vendor = 1.8.0_60-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b06

Reproducibility: Happens every time

Project data stored in <My Documents> \ NetBeansProjects

STEPS:
  * Open Windows Desktop / This PC
  * Right-click on "Documents"
  * Select "Properties" drop-down menu item
  * Click on "Location" tab and change the location
  * When Windows suggests to move files to that new location, answer "Yes"

ACTUAL:
  IDE cannot find source files for existing projects.

EXPECTED:
  Everything should work (can be accessed) as before.

REASON
  I think the problem appeared because in "<new location> \ NetBeansProjects \ <project-name> \ nbproject \ project.properties" file a relative path to the source files is used. As so, IDE calculates everything relatively to that new location while source files actually remained where there were before (usually for PHP it's "inetpub \ wwwroot \ ...". Perhaps using by default the absolute path there will correct everything?
Comment 1 artavazd 2016-07-14 17:26:20 UTC
Created attachment 160389 [details]
IDE log