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 238104 - CSL does not support compound mime types
Summary: CSL does not support compound mime types
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: 8.0_WAIVER_APPROVED
: 243602 245000 245009 (view as bug list)
Depends on:
Blocks: 237099
  Show dependency tree
 
Reported: 2013-11-07 15:32 UTC by Jan Becicka
Modified: 2014-07-17 02:18 UTC (History)
7 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 Jan Becicka 2013-11-07 15:32:52 UTC
I need to write support for gruntfile.js (something like build.xml for javascript). So I registered lookup resolver in order to introduce compound mime-type "text/grunt+javascript" in hope, that I will have all javascript features plus ability to implement something more for gruntfile.js. Unfortunately everything is now broken for gruntfile.js. It is no more recognised as javascript file.
Comment 1 Svata Dedic 2013-11-12 17:45:34 UTC
The bad thing (tm) is that MIME specializations like grunt+js are not defined. I was only able to find a convention talking XML-like content types (with mimes text/whatever+xml), but such a convention is not established generally.

Our loaders also do not recognize + as compositor, so various things will fail with such MIME type, e.g. actions will be loaded only from the specific MIME type, not from text/javascript.
Comment 2 Svata Dedic 2013-11-12 19:42:23 UTC
So far I managed to work around the DataObject recognition and action loading. CSL-powered features should be OK as I implemented fallback in the Language lookup. Navigator is yet to be fixed.
Comment 3 Svata Dedic 2013-11-13 09:11:56 UTC
Fixed fallback to generic MIME type in dataloader and language lookup - rev. http://hg.netbeans.org/jet-main/rev/0ce47b53ec27
Comment 4 Jan Becicka 2013-11-13 15:11:45 UTC
still does not work for me. Editor colouring works only partially. Probably lexical colouring works, but semantic colouring does not.
Comment 5 Jan Becicka 2013-11-19 14:28:14 UTC
Cannot reproduce with current builds.
Comment 6 Jan Becicka 2013-11-20 08:59:22 UTC
does not work again. seems to be random
Comment 7 Jan Becicka 2014-04-11 13:36:24 UTC
*** Bug 243602 has been marked as a duplicate of this bug. ***
Comment 8 Jan Becicka 2014-04-11 13:37:08 UTC
see also 243602. Formatting also does not work
Comment 9 Vladimir Riha 2014-06-12 08:44:58 UTC
*** Bug 245000 has been marked as a duplicate of this bug. ***
Comment 10 Vladimir Riha 2014-06-12 08:46:10 UTC
*** Bug 245009 has been marked as a duplicate of this bug. ***
Comment 11 Svata Dedic 2014-07-14 10:34:52 UTC
Should be fixed by jet-main#271fa6ce5dac
Comment 12 Quality Engineering 2014-07-17 02:18:21 UTC
Integrated into 'main-silver', will be available in build *201407170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/271fa6ce5dac
User: Svata Dedic <sdedic@netbeans.org>
Log: #238104: fixed parser creation, EditorKit initialization. The specific MIME type should now safely propagate to the document and its clients