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 247094 - "Other sources" not always shown
Summary: "Other sources" not always shown
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 247237 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-13 13:05 UTC by jvissers-nl
Modified: 2014-09-30 09:08 UTC (History)
8 users (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 jvissers-nl 2014-09-13 13:05:17 UTC
After upgrading to 8.0.1 there are projects that do not show 'other sources' anymore (src/main/resources) is not displayed in the project outline.

Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Linux version 3.13.0-35-generic running on amd64
Java; VM; Vendor = 1.7.0_67
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Comment 1 jvissers-nl 2014-09-13 15:24:48 UTC
I removed 8.0.1 and reinstalled 8.0 - which shows the 'Other sources' as I expected them to be.
Comment 2 scottwouw 2014-09-15 20:08:04 UTC
I see the same behavior.  In v8.0.01 "Other Sources" node doesn't show in Maven projects.  Same projects in v8.0 does show the "Other Sources" does show.
Comment 3 scottwouw 2014-09-15 20:08:32 UTC
(In reply to scottwouw from comment #2)
> I see the same behavior.  In v8.0.1 "Other Sources" node doesn't show in
> Maven projects.  Same projects in v8.0 does show the "Other Sources" does
> show.
Comment 4 Tomas Stupka 2014-09-19 14:44:31 UTC
*** Bug 247237 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Stupka 2014-09-19 14:45:51 UTC
could no reproduce by simply creating src/main/resources 

any chance to provide a sample project?
Comment 6 Tomas Stupka 2014-09-19 15:00:13 UTC
added some logging, perhaps it will provide some insight 

once it is announced in this issue, that it was integrated into the daily builds, get a build, reproduce the issue and atach yur messages.og

thanks
Comment 7 jvissers-nl 2014-09-19 15:17:00 UTC
I don't have 8.0.1 installed at the moment. For me it doesn't happen on each project, only on some of my multi-module maven build.
Comment 8 facunlk 2014-09-20 02:00:16 UTC
I'm having the same issue since I upgraded from 8.0 to 8.0.1 in all of my projects that have a parent pom.
A few projects show the "Other sources" node but with some weird extra nodes: props, prop-base, text-base and tmp.
Comment 9 jvissers-nl 2014-09-20 07:55:37 UTC
Yes, those 'extra' nodes/items show up in my projects also. This issue makes 8.0.1 unusable for me. Also because 'Navigate To' acts weird, where finding a resource that is supposed to be found in the folder that is mysteriously hidden, is found in a jar dependency of another project in the multi-module build.
Comment 10 Geertjan Wielenga 2014-09-24 07:51:38 UTC
Escalating to P2. This is a blocker to move to 8.0.1 for developers with complex Maven projects, because project view of Maven projects is incorrect and because 'Navigate To' does not work correctly, see comments by jvissers-nl below.
Comment 11 Geertjan Wielenga 2014-09-24 08:06:22 UTC
Here is a multi-module Maven project:

http://code.google.com/p/jannocessor/source/checkout

On Windows 7, I do not see the problem described in this issue. I.e., "Other Sources" is visible. Maybe it is a problem specific to Linux?
Comment 12 Quality Engineering 2014-09-24 12:49:08 UTC
Integrated into 'main-silver', will be available in build *201409241121* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e23c071ff34b
User: Tomas Stupka <tstupka@netbeans.org>
Log: more logging

issue #247094 - "Other sources" not always shown
Comment 13 roti 2014-09-25 10:16:32 UTC
Tested with 201409250001, but has the same behavior as with 8.0.1.

One project shows these directories under Other sources:
- prop-base
- props
- text-base
- tmp
- resources (src/main/resources)
- sql (src/main/sql)

The other project does not show the Other sources, but it has the src/main/resources directory.

Which loglevel should I change to provide useful logs?
Comment 14 Geertjan Wielenga 2014-09-25 10:19:27 UTC
Is it possible to share one or both of these projects with us?

And, are you on Ubuntu? Or some Linux? Or what?
Comment 15 roti 2014-09-25 10:55:14 UTC
I use ubuntu.
I could create a step by step test case using jannocessor source, mentioned at Comment 11.
I only played with jannocessor-bootstrap from the sources above.

1. when I open the maven project, it show up good, with Other sources
2. keeping the project open, I created a .svn/tmp directory in src/main from commandline
3. when I click "Reload POM", the "tmp" appears under Other sources
4. close the project
5. open the project again, and the "Other sources" disappears

Without that .svn directory, all works fine.
I hope this description will be useful.
Comment 16 Tomas Stupka 2014-09-26 13:50:51 UTC
was able to reproduce when creating .svn/tmp  in src/main. Thanks for the tip.

generally speaking - the problem would appear with any kind of VCS metadata folder - .svn, .hg, ...
Comment 17 Tomas Stupka 2014-09-26 13:51:09 UTC
btw - would be good to know if somebody else was able to reproduce without having VCS files laying around
Comment 18 Tomas Stupka 2014-09-26 16:38:05 UTC
fixed in core-main #06ce8d14e702
Comment 19 jvissers-nl 2014-09-27 11:56:49 UTC
I tried to reproduce this issue in a project that didn't have SVN related information, by doing a svn export. However after I opened the same project from the exported location 'Other Sources' showed up. As was outlined by roti - as soon as I created .svn/tmp in src/main 'Other Sources' magically disappeared.
Comment 20 Marian Mirilovic 2014-09-27 19:10:24 UTC
(In reply to Tomas Stupka from comment #18)
> fixed in core-main #06ce8d14e702

Tomas, could you please fix that in releases/relese801 branch ? We will add it into Patch 1 as well. Thanks in advance.
Comment 21 Quality Engineering 2014-09-28 01:57:22 UTC
Integrated into 'main-silver', will be available in build *201409280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/06ce8d14e702
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #247094 - "Other sources" not always shown
Comment 22 roti 2014-09-28 20:45:13 UTC
Works perfectly! Thanx guys.
Comment 23 Tomas Stupka 2014-09-29 11:40:32 UTC
integrated into releases #fa2d7d6b78df
Comment 24 Quality Engineering 2014-09-30 09:08:08 UTC
Integrated into 'releases/release801', will be available in build *201409300841* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/fa2d7d6b78df
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #247094 - "Other sources" not always shown

integrated from trunk