#721: Compiled ruby files return incorrect values for __FILE__ ---------------------------------+------------------------------------------ Reporter: mred@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby Later Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Comment(by mrada@…): I duplicated this issue with ticket #1370. I was testing out a compiled Hot Cocoa. I hacked up a work around for that particular case that should work for most other cases: https://github.com/ferrous26/hotcocoa/commit/8e38eb2546e3385e2f934577bd85215... It is based on the fact that $LOADED_FEATURES keeps the absolute path for loaded files. I think a similar bit of code could fix this issue if it is possible to set `__FILE__` at load time using whatever code is already being used to add the file name to $LOADED_FEATURES. I haven't looked into it though... -- Ticket URL: <http://www.macruby.org/trac/ticket/721#comment:7> MacRuby <http://macruby.org/>