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 118426 - NPE from GsfDataObject when extending mime-types
Summary: NPE from GsfDataObject when extending mime-types
Status: VERIFIED DUPLICATE of bug 116563
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 18:19 UTC by Martin Krauskopf
Modified: 2007-10-10 19:17 UTC (History)
0 users

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 Martin Krauskopf 2007-10-10 18:19:05 UTC
1) Tools -> Options -> Advanced Options -> IDE Configuration -> System -> Object Types -> Source files for RHTML, Ruby
2) Add e.g. _c_ extension there.
3) New File -> Other -> Emtpy file
4) Create new hello.c

NPE is thrown and the same whenever you touch the ahoj.c's node.
Comment 1 Torbjorn Norbye 2007-10-10 19:05:52 UTC
This is a duplicate of 116563.

Basically "extending mime-types" is what you want, but that's now that IDE Configuration > System > Object Types does.
See 116563 for details.

To solve this we need to make the RubyMimeResolver configurable - or for 6.0 perhaps it would be better to write a
separate module: configure-mimetypes. This would register a mime resolver class that has a set of known extensions and
maps them to known mimetypes - and would offer an options panel to customize the extensions and mimetypes. 

There is nothing Ruby specific about this and should be a core service of the IDE...


*** This issue has been marked as a duplicate of 116563 ***
Comment 2 Martin Krauskopf 2007-10-10 19:17:15 UTC
.