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.
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.
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 ***
.