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.
I am trying to make our Avatar.js part of other project (built with Maven) which hosts all its projects inside its repository. Thus I ended up with following structure: $HOME/src/j4tw/.hosted/users/jtulach/workspaces/NovyAvatar3 The project is generated from the simple template and I've just added "console.log('Starting at xyz');" as a last line (and put a breakpoint to it). When I debug the project in the IDE, it really runs: ----- ant -Ddebug.file=AvatarServer2.js -Dnb.internal.action.name=debug -Ddebug.class=N/A debug init: deps-jar: Updating property file: $HOME/src/j4tw/.hosted/users/jtulach/workspaces/NovyAvatar3/build/built-jar.properties compile: Staring at 7543 ----- So the right message is printed, but breakpoint on the line is not hit. Originally I thought the problem is ".hosted" directory so I tried to move the project to: $HOME/src/j4tw/AvatarServer3 where "j4tw" is the root of the Maven project, the topmost directory that contains pom.xml - but such setup does not debug either. But if I move the project to $HOME/src/AvatarServer4 (e.g. the there is no Maven root directory above) the breakpoints start to work! I don't know what is wrong, but I expect some interference between Avatar.js and Maven projects.
I think I have a fix.
Created attachment 146438 [details] Compares file: URLs with getCanonicalPath when they seem similar Can I integrate the change?
The patch looks fine, thanks.
http://hg.netbeans.org/core-main/rev/cefcb0faa733
Integrated into 'main-silver', will be available in build *201404020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/cefcb0faa733 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #243322: URLEquality tries harder to find out whether file URLs are the same. It users cannonical path in case they seem so.
Jardo, do you really consider this to be a patch candidate for NetBeans 8.0?