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 77680 - [60cat] Missing context menu Items: Compile/Run/Debug File
Summary: [60cat] Missing context menu Items: Compile/Run/Debug File
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-10 15:40 UTC by ulfzibis
Modified: 2008-12-04 14:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (402.82 KB, text/plain)
2006-06-14 00:08 UTC, ulfzibis
Details
log file (63.87 KB, text/plain)
2006-06-14 00:09 UTC, ulfzibis
Details
Attribs file (5.50 KB, text/xml)
2006-06-15 14:30 UTC, ulfzibis
Details
Java file context menu (38.23 KB, image/jpeg)
2006-06-15 14:32 UTC, ulfzibis
Details
Java file menu (13.38 KB, image/jpeg)
2008-12-04 14:59 UTC, ulfzibis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulfzibis 2006-06-10 15:40:13 UTC
Since yesterday I had the following Items on the context menu (right mouse
button) on a single Java file in the Project Browser (J2SE Project):
- Compile File
- Run File
- Debug File

Now they are gone.

... where ???
Comment 1 Jesse Glick 2006-06-12 18:03:46 UTC
Who knows, need some way to reproduce.

Not sure why #77678 was listed as a dep, appears unrelated.
Comment 2 ulfzibis 2006-06-12 18:50:52 UTC
> Who knows, need some way to reproduce.

Are there any settings files which I can send you? Can I manipulate them?

> Not sure why #77678 was listed as a dep, appears unrelated.

Issues 77678 and 77524 sparsely describe, what I did the last 2 days:
- debugging JDK 6.0 Beta, particularly sun.jdbc.odbc
- switching between different Java Platforms
- adding and deleting source paths outside of the src-folder, because of 77678
- compiling, running and debugging single files via contextmenu

At some moment the Menu-Entries are gone.
Comment 3 Jesse Glick 2006-06-12 18:57:27 UTC
The log file (var/log/messages.log) may or may not be helpful if you are unable
to reproduce the problem.
Comment 4 ulfzibis 2006-06-14 00:08:17 UTC
Created attachment 31019 [details]
log file
Comment 5 ulfzibis 2006-06-14 00:09:19 UTC
Created attachment 31020 [details]
log file
Comment 6 ulfzibis 2006-06-14 00:13:19 UTC
> if you are unable to reproduce the problem.

The problem exists any more, but I can't repair it. For this I asked you if
there are there any settings files which I can send you? Can I manipulate them?
Comment 7 Jesse Glick 2006-06-14 00:16:17 UTC
Don't see anything obviously wrong. o.n.m.java.project module is enabled. Maybe
you have these actions masked in your
$userdir/config/Loaders/text/x-java/Actions/ folder?
Comment 8 ulfzibis 2006-06-14 20:58:48 UTC
> Maybe you have these actions masked in your
> $userdir/config/Loaders/text/x-java/Actions/ folder?

Here it is. I found:
- CompileFile.instance_hidden
- RunFile.instance_hidden
- DebugFile.instance_hidden

I don't know, how this could happen.

Thanx a lot.

Comment 9 ulfzibis 2006-06-14 21:11:11 UTC
By the way, ist this good programming style to waste 3 files (3x512 Bytes) and 3
folders for 3 simple settings ? ;-)
Comment 10 Jesse Glick 2006-06-14 22:10:04 UTC
Well we can see the immediate cause of the bug. I'm trying to think of what
could have caused those masks to be created, but for now with no success, nor
have I heard of anyone else having the same problem. If you manage to reproduce
the steps that caused the masks to be created, by all means reopen with more info.
Comment 11 ulfzibis 2006-06-15 14:28:12 UTC
I have some little more Info:

IMHO the order of the menu entries is not correct and there is missing a
separator after 'Properties' (see attachment), after I renamed to
RunFile.instance_hidden.bak etc.
As I remember right, entry 'Properties' was the last before the bug occured.

There is another file ..\config\Loaders\text\x-java\.nbattrs (see attachment)
which didn't exist before (has same creation timestamp as the '.._hidden' files,
and whole folder 'Loaders' didn't exist in my 5.0beta installation.

Can I delete whole folder 'Loaders', or do I risk to loose the 'SVN ...' menu
entries?

Creation timestamp of the files is: 9. Juni 2006, 21:45:05 MEZ
Perhaps you can compare to any events in the log file.


Comment 12 ulfzibis 2006-06-15 14:30:59 UTC
Created attachment 31080 [details]
Attribs file
Comment 13 ulfzibis 2006-06-15 14:32:27 UTC
Created attachment 31081 [details]
Java file context menu
Comment 14 Jesse Glick 2006-06-15 16:26:34 UTC
You can delete the .nbattrs and probably the whole folder that contains it.
Comment 15 ulfzibis 2006-06-16 11:17:59 UTC
I have deleted the whole folder 'Loaders', and now the order of the entries and
the separators are correct.
Comment 16 ulfzibis 2007-11-24 00:16:07 UTC
The context menu items are still there, the the separator seems to be wrong. It should be after "Paste" and before
"Compile File".
Comment 17 Jesse Glick 2007-11-30 20:44:22 UTC
Please do not change the 'Version' field of a bug after it has been filed.
Comment 18 Lukas Hasik 2008-09-09 13:32:35 UTC
this issue seems to be incomplete for almost a year -> worksforme
Please, reopen if it still happens with 6.5
Comment 19 ulfzibis 2008-09-09 13:55:27 UTC
The main problem is resolved since long time :-)
IMO INCOMPLETE could be removed.

...but the menu separator is any more in wrong position between Compile and Run, also in 6.5.

Comment 20 Lukas Hasik 2008-12-04 13:17:11 UTC
>The main problem is resolved since long time :-)
>IMO INCOMPLETE could be removed.
>
>...but the menu separator is any more in wrong position between Compile and Run, also in 6.5.

I'm closing as fixed again as I'm confused by the last message from ulf. 
If the main problem is fixed then verify this issue. If there is wrong position of separator in NB6.5 (check with
http://wiki.netbeans.org/ProjectContextualMenus) then fill new issue, please.
Comment 21 ulfzibis 2008-12-04 14:57:55 UTC
> If there is wrong position of separator in NB6.5 (check with http://wiki.netbeans.org/ProjectContextualMenus) then
fill new issue, please.

Thanks for the hint, but this page doesn't cover the menu, I'm speaking about. See new attachment.
Comment 22 ulfzibis 2008-12-04 14:59:01 UTC
Created attachment 74539 [details]
Java file menu