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 222600 - Sometimes the subversion menu is not available from the project context menu
Summary: Sometimes the subversion menu is not available from the project context menu
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-22 15:22 UTC by paolosca
Modified: 2012-12-07 13:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump taken while the menu was unavailable (13.47 KB, text/plain)
2012-12-03 02:38 UTC, paolosca
Details
Thread dump taken while the menu was unavailable (14.71 KB, text/plain)
2012-12-03 02:39 UTC, paolosca
Details
Thread dump taken after the menu became available again (15.55 KB, text/plain)
2012-12-03 02:39 UTC, paolosca
Details
Messages Log (81.19 KB, text/x-log)
2012-12-03 02:42 UTC, paolosca
Details
Messages Log (old) (172.39 KB, application/octet-stream)
2012-12-03 02:44 UTC, paolosca
Details
Messages Log (older) (96.78 KB, application/octet-stream)
2012-12-03 02:45 UTC, paolosca
Details
Metrics log (2.72 KB, application/octet-stream)
2012-12-03 02:45 UTC, paolosca
Details
Metrics log (old) (36.85 KB, application/octet-stream)
2012-12-03 02:46 UTC, paolosca
Details
UI Gestures log (56.20 KB, application/octet-stream)
2012-12-03 02:46 UTC, paolosca
Details
UI Gestures log (old) (4.32 KB, application/octet-stream)
2012-12-03 02:46 UTC, paolosca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2012-11-22 15:22:06 UTC
Sometimes, but not always, the Subversion context menu in the project window is not available for the root elements.

In example I have the following project tree and a changed file in "subdir1":

MyProject
    Source Files
        projectdir
            subdir1
            subdir2

Normally, the versioning icon appears in the folder containing changed files and all its parents (subdir1, projectdir, Source Files, MyProject), and the subversion context menu appears in all folders when I right click on them. 

Sometimes, only the folder containing the changed file has the versioning icon and the subversion context menu, all others don't.

When this happens I select the project root and then, from the "Team" menu, I select Subversion->Update. Once the Subversion update is finished, the icons appear in all the folders and the context menus are available again.

I suspect, but I'm not sure, that this happens when I open NetBeans and the local copy is not updated, but I can't confirm now because I have no updates waiting on any repository.

  
Product Version: NetBeans IDE Dev (Build 201211190002)
Updates: Updates available
Java: 1.7.0_03; OpenJDK Client VM 22.0-b10
Runtime: OpenJDK Runtime Environment 1.7.0_03-b21
System: Linux version 3.2.0-4-686-pae running on i386; UTF-8; en_US (nb)
User directory: /home/paolo/.netbeans/dev
Cache directory: /home/paolo/.cache/netbeans/dev
Comment 1 Ondrej Vrabec 2012-11-22 15:30:28 UTC
What do you mean by "Subversion context menu in the project window is not available"? Is there just Versioning -> Import into Subversion? Is there no subversion menu? Or is the menu full of disabled actions? Can you make a screenshot?
Comment 2 Ondrej Vrabec 2012-11-22 15:30:56 UTC
Plus when it happens, can you make a thread dump also? http://wiki.netbeans.org/GenerateThreadDump
Comment 3 paolosca 2012-11-22 15:56:14 UTC
(In reply to comment #1)
> What do you mean by "Subversion context menu in the project window is not
> available"? Is there just Versioning -> Import into Subversion? Is there no
> subversion menu? Or is the menu full of disabled actions? Can you make a
> screenshot?

Now I fixed it running Team->Subversion->Update so I can't check, but when it happens I'm sure the Subversion menu (the one below the History menu) is completely missing.

I don't remember if there was a Versioning->Import into Subversion menu item, I just checked and I don't have a Versioning context menu at all.

As soon as it happens again I'll do a thread dump and a screenshot of the context menu so you get a better idea of the problem.

Thanks.

Paolo
Comment 4 paolosca 2012-12-03 02:38:10 UTC
It just happened again, as suggested I attach a few jstack thread dumps and the log files.
Unfortunately I couldn't take a screenshot of the menus, but in the project context menu there was no subversion or any other versioning items, in the team menu there was a Subversion item, but it contained only Checkout and Import into Repository.

Curiously enough, while typing this the Subversion context menu became available again, but the Team->Subversion menu still contains only Checkout and Import.

jstack.1.txt and jstack.2.txt were taken when the menu wasn't available, jstack.3.txt was taken after the subversion menu item became available again.
Comment 5 paolosca 2012-12-03 02:38:55 UTC
Created attachment 128730 [details]
Thread dump taken while the menu was unavailable
Comment 6 paolosca 2012-12-03 02:39:19 UTC
Created attachment 128731 [details]
Thread dump taken while the menu was unavailable
Comment 7 paolosca 2012-12-03 02:39:50 UTC
Created attachment 128732 [details]
Thread dump taken after the menu became available again
Comment 8 paolosca 2012-12-03 02:42:18 UTC
Created attachment 128733 [details]
Messages Log

Note, toward the end of the session the menu became available again, maybe there is something useful in this log.
Comment 9 paolosca 2012-12-03 02:44:27 UTC
Created attachment 128734 [details]
Messages Log (old)

This is the on older log, I include it because the laptop has been on all night and this morning I noticed the menu missing so the problem could have been triggered yesterday.
Comment 10 paolosca 2012-12-03 02:45:29 UTC
Created attachment 128735 [details]
Messages Log (older)

As for messages.1.log, I include it because the laptop has been on all night and this morning I noticed the menu missing so the problem could have been triggered yesterday.
Comment 11 paolosca 2012-12-03 02:45:53 UTC
Created attachment 128736 [details]
Metrics log
Comment 12 paolosca 2012-12-03 02:46:16 UTC
Created attachment 128737 [details]
Metrics log (old)
Comment 13 paolosca 2012-12-03 02:46:39 UTC
Created attachment 128738 [details]
UI Gestures log
Comment 14 paolosca 2012-12-03 02:46:55 UTC
Created attachment 128739 [details]
UI Gestures log (old)
Comment 15 Ondrej Vrabec 2012-12-03 14:45:14 UTC
There is just one interesting message in the log:
> WARNING [org.netbeans.modules.subversion]: no repository url found for managed file /var/www/cogeweb/cgphp/cli
Are you trying to version /var/www/cogeweb/cgphp/cli folder? Isn't that a usual server directory? It should not be versioned i think.
From the thread dump there are references to cnd/c++:
> at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:101)
> at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:75)
> at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:92)
So what kind of project is it? C++ or PHP? Other?
Comment 16 paolosca 2012-12-03 17:08:28 UTC
(In reply to comment #15)
> There is just one interesting message in the log:
> > WARNING [org.netbeans.modules.subversion]: no repository url found for managed file /var/www/cogeweb/cgphp/cli
> Are you trying to version /var/www/cogeweb/cgphp/cli folder? Isn't that a usual
> server directory? It should not be versioned i think.

/var/www/cogeweb/cgphp/cli is a directory containing client data, usually uploaded files, but it's not versioned. It's marked as SVN ignored and it's grayed out in the project tree.

> So what kind of project is it? C++ or PHP? Other?

The project is PHP and it doesn't contain any C++ files, the C/C++ plugin however is installed in NetBeans but I seldom use it.
Comment 17 Ondrej Vrabec 2012-12-07 13:10:55 UTC
What about in the Files view or in the Favorites view? Does the popup menu look the same? Can you share the project with me? Or at least can you send me the project setup (project folders without source files)?