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 190219 - Clicking on build errors gets empty file
Summary: Clicking on build errors gets empty file
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 00:03 UTC by _ gordonp
Modified: 2010-11-10 14:58 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 _ gordonp 2010-09-08 00:03:23 UTC
I build on a remote system configured with File System Sharing (NFS). If I get build errors (almost never:-) and click on the hyperlink, I get a new tab (even though the file is typically open) with an empty editor area.

I'm guessing that the hyperlink is following the "Smart Secure Sharing" (which always gives me build errors, but thats another issue) copy even though I'm using the NFS version of the file.

This makes the hyperlinks unusable!
Comment 1 Alexander Pepin 2010-09-08 14:39:09 UTC
Can not reproduce this in build 20100907
Comment 2 _ gordonp 2010-09-08 16:42:35 UTC
> Can not reproduce this in build 20100907

I downloaded the C/C++ loader for 20100908 to verify the problem in the latest build. Unfortunately, I had 100% failure bringing this build up. I tried 7-8 times, both on RedHat Enterprise Linux 5.5 and Ubuntu 10.04 systems. I tried as both root and gordonp. I tried with both new and existing userdirs. I tried with JDK 1.6.0_20 and 1.6.0_21. In all cases, the main window ignored all mouse actions every time (although the windows did redraw, except the 1st time when I used an existing userdir - then the UI window did not redraw). So I'm unable to verify that I still see the problem with a nightly build.

I can give more detail about my (somewhat complex) environment. First off, my build platform is Ubuntu 8.04. We chose this as our build platform even though few (if any) users will actually run our product on this system. However, programs built on this Linux distro run on SLES10, SLES11, RHEL5.x, Ubuntu, OpenSuSE (and probably others). Besides the Ubuntu 8.04 system, I've got 7-8 other Linux distros (the ones mentioned above) and all have NFS mounts of the /sonoma1 directory (exported from an RHEL5.5 system).

So my "build" configuration uses a remote dev host (root@harpo) which uses the NFS file share and maps sonoma:/sonoma1 to harpo:/sonoma1. Since files have the same path on all systems, there should be no name mismatches causing multiple tabs to different paths to the same file.

Here are the Host Properties of root@harpo:
    Identification:   root@harpo
    Authentication:   Password (stored)
    Display Name:     root@harpo
    Synchronization:  File System Sharing (no synchronization)
    Enable X11 Forwarding: <unset>

So using the above config, I added a syntax error to a file and recompiled. As expected, I got syntax errors in the build output including the following hyperlink:

    /sonoma1/lksaa/AgentMon/source/agentmon.cpp:1968: \
        error: 'xxx' was not declared in this scope

When I clicked on the hyperlink I get a new "agentmon.cpp" tab (even though agentmon.cpp was already open in another tab). This time, the file wasn't empty and the tooltip of the new tab gave a path name of "/home/gordonp/.netbeans/6.9/var/cache/cnd/remote-includes/harpo_22/.../agentmon.cpp". This file was not identical to the one compiled (it didn't have the "xxx" string I appended to cause the compilation error). But why does it even exist? I specified for my synchronization to be File System Sharing, not Smart Secure Copy!
Comment 3 _ gordonp 2010-09-09 15:05:58 UTC
I downloaded the 20100909 build and installed it. The first time I tried to duplicate the problem I did it by adding "xxx" to the end of a line. This produced the expected build failure but none of the errors were hyperlinks.

I removed the "xxx" and also removed a line ending ';' and tried again. This time the hyperlink correctly warped to my (open) source file/line. So I guess this problem is fixed.

However, I am concerned that the xxx test didn't generate any hyperlink!

Note: I put the xxx back (although I'm not sure it was on the same line) and this time I got hyperlinks to the error.
Comment 4 _ gordonp 2010-09-15 18:32:02 UTC
I'm still seeing this with recent dev builds (I closed it because it worked, but subsequently its failed with the same problem).
Comment 5 Alexander Pepin 2010-11-03 17:58:09 UTC
We (QA and developers) still can not reproduce this. 
Gordon, could you please check it once again in the latest build with a fresh userdir.