model.mirah compile error

33 views
Skip to first unread message

Arash

unread,
Feb 18, 2012, 9:20:53 PM2/18/12
to The Mirah Programming Language
Trying to compile mirah_model to make dubious work, after fixing the
Rakefile, I got this error:
mkdir -p dist
mkdir -p build
Compiling Duby sources
cd src
mirahc -d /Users/arash/prog/Source/mirah_model/build /Users/arash/prog/
Source/mirah_model/src
Parsing...
/Users/arash/prog/Source/mirah_model/src/meta_model.mirah
/Users/arash/prog/Source/mirah_model/src/model.mirah
Inferring types...
/Users/arash/prog/Source/mirah_model/src/model.mirah:149:
keys = Key[1]
^^^^^^^
rake aborted!

Can somone help me with this please.

Nick Howard

unread,
Feb 20, 2012, 11:46:18 AM2/20/12
to mi...@googlegroups.com
I'm looking at it, but I haven't quite figured it out yet.

I cleared up the issue you're having, but ran into another one. When I use the latest bitescript, I get this error https://gist.github.com/1866601#file_mirah_model_stacktrace

when I revert it back to the version that was out when the code in question was merged in, meta_model.mirah compiles, but I run into a different error

Arash Bizhan zadeh

unread,
Feb 22, 2012, 4:14:23 PM2/22/12
to mi...@googlegroups.com
I am pretty new to Mirah and trying to learn. I find the concept of Mirah interesting. 
I am completely puzzled with this error. The type of the key is explicitly defined, why we get an error on inferring types? 

Nick Howard

unread,
Feb 24, 2012, 10:33:26 AM2/24/12
to mi...@googlegroups.com

Can you tell us more about your environment? What version of Mirah are you using?

Arash Bizhan zadeh

unread,
Feb 24, 2012, 10:58:47 AM2/24/12
to mi...@googlegroups.com
I compiled Mirah from head.

Nick Howard

unread,
Feb 24, 2012, 6:38:19 PM2/24/12
to mi...@googlegroups.com
I made some changes to mirah_model. Could you pull and tell me what you get? I wasn't able to get it to compile either but I want to verify that we get the same error.

Arash Bizhan zadeh

unread,
Feb 25, 2012, 12:35:11 PM2/25/12
to mi...@googlegroups.com
I had to let go of my Mac, and settled down for a windows box for now.
After a lot of hassles, I managed to compile mirah on cygwin. Now trying to compile mirah_model, it insists that it cannot find appengine- sdk, but I  have already installed it.

$ rake jar
cygpath: can't convert empty path
rake aborted!
Could not find gem 'appengine-sdk (~> 1.4.0) java', which is required by gem 'mirah_model (>= 0) java', in any of the sources.

(See full trace by running task with --trace)
-------
arash@azure ~/src/mirah_model
$ gem list
cygpath: can't convert empty path
ansi (1.4.2)
appengine-sdk (1.6.2.1)
bitescript (0.1.0)
bundle (0.0.1)
bundler (1.0.22)
jruby-win32ole (0.8.5)
mirah (0.0.11.dev java)
rake (0.9.2.2, 0.8.7)
sources (0.0.1)
turn (0.9.3)

Arash Bizhan zadeh

unread,
Feb 25, 2012, 3:25:22 PM2/25/12
to mi...@googlegroups.com
That was a dumb question. 
After installing proper version of appengine-sdk, I changed the Rake file to 

  mirahc 'src', :dir => 'src', :dest => 'build', :options => ['-V']
#  mirahc 'src/model.mirah', :dir => 'src', :dest => 'build',
#         :options => ['--classpath', Dir.pwd + "/build/"]

=====
With this change, I get a lot of errors like :

Could not infer typing for nodes:
  Constant(DubyDatastorePlugin) at line 114 (child of Call(get))
C:/cygwin/home/arash/src/mirah_model/src/model.mirah:112: Could not infer typing                                                       for nodes:
  Constant(DubyDatastorePlugin) at line 114 (child of Call(get))
  macro def property(name, type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    DubyDatastorePlugin.get(@mirah).add_property(name, type, @call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  end
^^^^^
I guess my changes to Rakefile was not good. Can you help me with the Rakefile?

Nick Howard

unread,
Feb 26, 2012, 4:57:18 PM2/26/12
to mi...@googlegroups.com
Have you tried pulling the changes I added?

Arash Bizhan zadeh

unread,
Feb 26, 2012, 7:56:16 PM2/26/12
to mi...@googlegroups.com
If I try to build a clean clone of head I get :

rake aborted!
java.lang.RuntimeException: java.lang.ClassNotFoundException: com/google/appengine/ext/mirah/db/DubyDatastorePlugin
Reply all
Reply to author
Forward
0 new messages