Thanks for the reply. Unfortunately, it did not work for me - I get
the same error
Inference Error:
controllers/application_controller.mirah:3: Cannot find class
ActionController
class ApplicationController < ActionController
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I should mention that I first reverted back my changes in $MIRAH/lib/
mirah_task.rb which resulted in "Permission denied - app/controllers/
application_controller.mirah"
So, I re-applied the following change to $MIRAH/lib/mirah_task.rb and
also made changes suggested by you to the Rakefile in my app
files = files.map {|f| File.expand_path(f).sub(/^#{source_dir}\//,
'')}
as opposed to
files = files.map {|f| f.sub(/^#{source_dir}\//, '')}
-Amitava
On Feb 13, 3:29 pm, Andrew Myers <
am2...@gmail.com> wrote:
> Hi Amitava,
>
> I think I can help with issue 3...
>
> If you change your rakefile like this:
>
> mirah_compile_options :dest_path => OUTDIR,
> :source_paths => ['lib', 'app' ],
> :compiler_options => ['--classpath',
> [File.expand_path(OUTDIR),
> *FileList["WEB-INF/lib/*.jar"].map{|f|File.expand_path(f)}].join('/:')
> + ':' + CLASSPATH ]
>
> Does it work then?
>
> Apparently you need to add the "/" to the end of all the paths for it
> to compile.
>
> Andrew.
>
> On 14 February 2011 02:38, amitava <
amitava.s...@gmail.com> wrote:
>
> > I am trying to bootstrap my dubious environment by building from git-
> > cloned sources.
>
> > The following are the list of issues I have encountered so far
> > 1. Permission denied - app/controllers/application_controller.mirah
>
> > 2. (erb):6:in `instance_eval': uninitialized constant
> > ActiveSupport::SecureRandom (NameError)
>
> > 3. Inference Error:
> > controllers/application_controller.mirah:3: Cannot find class
> > ActionController
> > class ApplicationController < ActionController
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> > I resolved 1. above as follows
> > 1. Make the suggested change in mirah source (lib/mirah_task.rb) from
> >
http://groups.google.com/group/mirah/browse_thread/thread/cd9906d745b...