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.
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)
Please evaluate.
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.
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.
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.
> 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?
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.
> 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.
*** Issue 153533 has been marked as a duplicate of this issue. ***
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
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
nice solution, works fine