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 243322 - Avatar.js breakpoints are not hit when the project is inside of symlinked directory
Summary: Avatar.js breakpoints are not hit when the project is inside of symlinked dir...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-27 12:38 UTC by Jaroslav Tulach
Modified: 2014-04-11 07:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Compares file: URLs with getCanonicalPath when they seem similar (11.57 KB, patch)
2014-03-31 14:38 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2014-03-27 12:38:43 UTC
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.
Comment 1 Jaroslav Tulach 2014-03-31 14:37:13 UTC
I think I have a fix.
Comment 2 Jaroslav Tulach 2014-03-31 14:38:11 UTC
Created attachment 146438 [details]
Compares file: URLs with getCanonicalPath when they seem similar

Can I integrate the change?
Comment 3 Martin Entlicher 2014-03-31 14:47:27 UTC
The patch looks fine, thanks.
Comment 4 Jaroslav Tulach 2014-03-31 14:52:21 UTC
http://hg.netbeans.org/core-main/rev/cefcb0faa733
Comment 5 Quality Engineering 2014-04-02 01:39:02 UTC
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.
Comment 6 Jiri Kovalsky 2014-04-11 07:55:58 UTC
Jardo, do you really consider this to be a patch candidate for NetBeans 8.0?