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 148646 - Unable to save metadata on another drive then sourcedrive
Summary: Unable to save metadata on another drive then sourcedrive
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 153533 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-29 16:40 UTC by ota
Modified: 2009-02-19 22:52 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 ota 2008-09-29 16:40:39 UTC
When creating a new PHP project with existing sources and setting the metadata directory to a directory on another drive
then where the sourcefiles reside, the message "Project and Source directories cannot be relativized." appears. I guess
it has something todo with the driveletter?

Netbeans Nighlty Build: Product Version: NetBeans IDE Dev (Build 2008-09-22_04-13-48)
Comment 1 Milan Kubec 2008-09-30 07:22:56 UTC
Please evaluate.
Comment 2 Tomas Mysik 2008-09-30 10:03:08 UTC
Yes, this is intentional (the reason is sharability of the PHP project, see issue #145477). However, the question is 
whether this has to be an error... Maybe just warning that then one will very likely have problems with any SCM or 
similar. I will try to discuss it more with other developers.
Thanks for reporting.
Comment 3 Tomas Mysik 2008-09-30 12:35:03 UTC
The current behaviour will stay as it is now - at least for NB 6.5. Sorry for any inconveniences, I will keep this 
issue opened as a reminder. Thanks for reporting.
Comment 4 ota 2008-09-30 12:39:20 UTC
Is there a special reason for this? Saving the project data on a privat disk prevents people from bombarding the dev
space with their project etc files.
Comment 5 Tomas Mysik 2008-09-30 13:36:02 UTC
> Is there a special reason for this?

Sure - as I wrote earlier, versioning of the project is the reason. If there was an absolute path for source directory 
(e.g. "D:\www\project1") then it wouldn't be possible to share this project in cvs/svn/hg/... (all the developers 
would have to have Windows and "D:\www\project1" directory). Now, the source folder is stored relatively 
(e.g. "../../../project1") so if one clones/checkouts the project from repository, it will work no matter where (s)he 
puts his project. Moreover, the same applies for project dependencies (PHP Include Path) - folders are stored 
relatively as well.

Could you please describe what's your problem exactly?
Comment 6 koubel2 2008-11-14 08:51:41 UTC
I dont use any of IDE VCS features, I have php source drive mounted as disk of my Windows PC (with sftpdrive) and I 
used my local profile folder (C:\Documents And Settings\....) for the netbeans project (metadata), it will be possible 
in older builds, but some news build breaks this.

It is still possible with hand made edited configuration (keep this workaround please). I vote for enabling store 
metadata directory on another drive with disabling VCS features with warning in the project wizard.
Comment 7 Tomas Mysik 2008-11-14 09:48:22 UTC
> It is still possible with hand made edited configuration (keep this workaround please).

Well, if it works for you then fine :) But please notice that this scenario is not supported.

> I vote for enabling store metadata directory on another drive with disabling VCS features with warning in the
> project wizard.

The problem here is that we cannot easily disable VCS functionality for specific projects. But I will investigate this 
possibility and try to solve it for NB 7.0.
Comment 8 Tomas Mysik 2008-11-20 13:32:28 UTC
*** Issue 153533 has been marked as a duplicate of this issue. ***
Comment 9 Tomas Mysik 2008-12-05 11:14:42 UTC
Fixed. Now it's possible to use different hard drives (although relative path is still preferred), warning was 
updated. Could you please verify this issue using development version of NetBeans? Thanks a lot.
http://hg.netbeans.org/main/rev/3c6e0a18eb30
Comment 10 Quality Engineering 2008-12-07 05:26:21 UTC
Integrated into 'main-golden', will be available in build *200812070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3c6e0a18eb30
User: Tomas Mysik <tmysik@netbeans.org>
Log: #148646: Unable to save metadata on another drive then sourcedrive
Comment 11 koubel2 2008-12-09 07:40:49 UTC
nice solution, works fine