[Bug 64869] Re: GEdit opens java files with C source highlighting
** Changed in: shared-mime Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/64869 Title: GEdit opens java files with C source highlighting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
** Changed in: shared-mime Importance: Medium => Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/64869 Title: GEdit opens java files with C source highlighting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
Sorry, I forgot to mention that I'm using Ubuntu 8.04 -- GEdit opens java files with C source highlighting https://bugs.launchpad.net/bugs/64869 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
This is a confirmation about the problem. It happened for me as well. The problem is identical to that mentioned in the post on Ubuntu Forums. To reiterate, javascript files ending in '.js' are detected as C source code files. The mime type in nautilus is 'application/javascript' and in gedit it is 'C source code (text/x-csrc)'. The beginning of the file starts with a comment of the form '/* ... */' and a line of the form 'function f(var) {'. Removing the comments causes the mime type to change to 'MATLAB script/function (text/x-matlab)'. -- GEdit opens java files with C source highlighting https://bugs.launchpad.net/bugs/64869 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
Someone mentioned that this might have reappeared for Ubuntu hardy heron 8.04 http://ubuntuforums.org/showthread.php?p=5480156 -- GEdit opens java files with C source highlighting https://bugs.launchpad.net/bugs/64869 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
** Changed in: shared-mime (upstream) Status: Confirmed => Fix Released -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
** Changed in: shared-mime (upstream) Status: Unknown => Confirmed -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
Should be fixed in feisty with shared-mime-info 0.19-1ubuntu3 now. ** Changed in: shared-mime-info (Ubuntu) Status: Confirmed => Fix Released -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
** Changed in: shared-mime (upstream) Importance: Undecided => Unknown Bugwatch: None => Freedesktop Bugzilla #9407 Status: Unconfirmed => Unknown -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
/* ... */ is what I was taught to use a Java comment by Professors. Furthermore, when I open the file on my Dapper box in nautilus, the mime-type is text/x-java -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
** Also affects: shared-mime (upstream) Importance: Undecided Status: Unconfirmed -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
shared-mime-info defines files starting by "/*" as a C source file. If you add an blank char before it it's detected as a java file. Is "/*" a regular java comment? ** Changed in: gedit (Ubuntu) Sourcepackagename: gedit => shared-mime-info Importance: Undecided => Low Status: Rejected => Confirmed -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
** Attachment added: "Java source file" http://librarian.launchpad.net/4732619/WeightedGraph.java -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
John, don't close bugs too fast. Having a .java detected as text/x-csrc is a bug. Could you attach an example of such file to the bug? -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
This was a wrong settings issue not a bug. Thank you for reporting this bug and feel free to report any more that you find. ** Changed in: gedit (Ubuntu) Status: Needs Info => Rejected -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
text/x-csrc Apologies for not checking that first :-( -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
If you right click on a .java from nautilus, open the properties, what mimetype is listed? if you go to the gedit preferences, what highlighting type is selected? ** Changed in: gedit (Ubuntu) Assignee: (unassigned) => Ubuntu Desktop Bugs -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
I'm not sure what you mean. Previously when a java file was opened it was highlighted for java. Now, when I open a java file it is stuck with C highlighting which means that words like public and class are not highlighted, but types that are part of c like int are. -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 64869] Re: GEdit opens java files with C source highlighting
Did you set it to no highlighting? if you go to view>highlight mode> none it should than not highlight any file that you open. ** Changed in: gedit (Ubuntu) Status: Unconfirmed => Needs Info -- GEdit opens java files with C source highlighting https://launchpad.net/bugs/64869 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs