Starting out with haXe, weird error

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Starting out with haXe, weird error

Marcelo de Moraes Serpa
So, decided to stop lurking around and get my hands dirty, finally.

I compiled OCaml from source, installed it, downloaded and compiled haXe from source as well. Binaries on the system path, everything seemed to be working well, until I tried to compile the (in)famous HelloWorld! program:

Source (you know it already, don't you :) ) 

  1 class Hello {
  2     static function main() {
  3         neko.Lib.print("Hello World!");
  4     }
  5 }
                                                                                                                                                                                                          
When I try to compile it to Neko, I get the following weird errors:
                                                                                                                                                                                                          
marcelo-laptop:sandbox fullofcaffeine$ haxe Hello.hx -main Hello -neko Hello.n
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 11-17 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 20-33 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 12-22 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 23-29 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function

Does anyone know why?

Cheers,

M>

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Starting out with haXe, weird error

Marcelo de Moraes Serpa
I'm on OSX Lion, btw. Latest code from both repos (OCaml and haXe).

Thanks in advance.

On Tue, Aug 2, 2011 at 10:52 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
So, decided to stop lurking around and get my hands dirty, finally.

I compiled OCaml from source, installed it, downloaded and compiled haXe from source as well. Binaries on the system path, everything seemed to be working well, until I tried to compile the (in)famous HelloWorld! program:

Source (you know it already, don't you :) ) 

  1 class Hello {
  2     static function main() {
  3         neko.Lib.print("Hello World!");
  4     }
  5 }
                                                                                                                                                                                                          
When I try to compile it to Neko, I get the following weird errors:
                                                                                                                                                                                                          
marcelo-laptop:sandbox fullofcaffeine$ haxe Hello.hx -main Hello -neko Hello.n
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 11-17 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 20-33 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 12-22 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 23-29 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function

Does anyone know why?

Cheers,

M>


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Starting out with haXe, weird error

Marcelo de Moraes Serpa
Sorry guys, stupid mistake: I forgot to source ~/.bash_profile. But the error messages are still kind of cryptic.

Thank you,

Marcelo.

On Tue, Aug 2, 2011 at 10:53 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
I'm on OSX Lion, btw. Latest code from both repos (OCaml and haXe).

Thanks in advance.


On Tue, Aug 2, 2011 at 10:52 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
So, decided to stop lurking around and get my hands dirty, finally.

I compiled OCaml from source, installed it, downloaded and compiled haXe from source as well. Binaries on the system path, everything seemed to be working well, until I tried to compile the (in)famous HelloWorld! program:

Source (you know it already, don't you :) ) 

  1 class Hello {
  2     static function main() {
  3         neko.Lib.print("Hello World!");
  4     }
  5 }
                                                                                                                                                                                                          
When I try to compile it to Neko, I get the following weird errors:
                                                                                                                                                                                                          
marcelo-laptop:sandbox fullofcaffeine$ haxe Hello.hx -main Hello -neko Hello.n
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 11-17 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 20-33 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 12-22 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 23-29 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function

Does anyone know why?

Cheers,

M>



--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Starting out with haXe, weird error

John Plsek
NekoArray__.hx hasn't existed since r3240, on Jul 23 2010

In other words, you do NOT have the latest haXe code, by any stretch of the imagination

Try here - http://code.google.com/p/haxe/source/checkout

John


On 3 August 2011 13:58, Marcelo de Moraes Serpa <[hidden email]> wrote:
Sorry guys, stupid mistake: I forgot to source ~/.bash_profile. But the error messages are still kind of cryptic.

Thank you,

Marcelo.

On Tue, Aug 2, 2011 at 10:53 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
I'm on OSX Lion, btw. Latest code from both repos (OCaml and haXe).

Thanks in advance.


On Tue, Aug 2, 2011 at 10:52 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
So, decided to stop lurking around and get my hands dirty, finally.

I compiled OCaml from source, installed it, downloaded and compiled haXe from source as well. Binaries on the system path, everything seemed to be working well, until I tried to compile the (in)famous HelloWorld! program:

Source (you know it already, don't you :) ) 

  1 class Hello {
  2     static function main() {
  3         neko.Lib.print("Hello World!");
  4     }
  5 }
                                                                                                                                                                                                          
When I try to compile it to Neko, I get the following weird errors:
                                                                                                                                                                                                          
marcelo-laptop:sandbox fullofcaffeine$ haxe Hello.hx -main Hello -neko Hello.n
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 11-17 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 20-33 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 12-22 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 23-29 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function

Does anyone know why?

Cheers,

M>



--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Starting out with haXe, weird error

Marcelo de Moraes Serpa
I do. The problem was that I hadn't sourced the bash_profile, hence haXe could not find the source files. I did compile from source, using the sh script found on the download page.

Thanks.

M>

On Tue, Aug 2, 2011 at 11:15 PM, John Plsek <[hidden email]> wrote:
NekoArray__.hx hasn't existed since r3240, on Jul 23 2010

In other words, you do NOT have the latest haXe code, by any stretch of the imagination

Try here - http://code.google.com/p/haxe/source/checkout

John


On 3 August 2011 13:58, Marcelo de Moraes Serpa <[hidden email]> wrote:
Sorry guys, stupid mistake: I forgot to source ~/.bash_profile. But the error messages are still kind of cryptic.

Thank you,

Marcelo.

On Tue, Aug 2, 2011 at 10:53 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
I'm on OSX Lion, btw. Latest code from both repos (OCaml and haXe).

Thanks in advance.


On Tue, Aug 2, 2011 at 10:52 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
So, decided to stop lurking around and get my hands dirty, finally.

I compiled OCaml from source, installed it, downloaded and compiled haXe from source as well. Binaries on the system path, everything seemed to be working well, until I tried to compile the (in)famous HelloWorld! program:

Source (you know it already, don't you :) ) 

  1 class Hello {
  2     static function main() {
  3         neko.Lib.print("Hello World!");
  4     }
  5 }
                                                                                                                                                                                                          
When I try to compile it to Neko, I get the following weird errors:
                                                                                                                                                                                                          
marcelo-laptop:sandbox fullofcaffeine$ haxe Hello.hx -main Hello -neko Hello.n
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 11-17 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 20-33 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 12-22 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 23-29 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function

Does anyone know why?

Cheers,

M>



--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Starting out with haXe, weird error

John Plsek
In reply to this post by John Plsek
In fact, I'd say the haXe source you've got is dated prior to Mar 27, 2010, based on the line numbers in those errors

John
On 3 August 2011 14:15, John Plsek <[hidden email]> wrote:
NekoArray__.hx hasn't existed since r3240, on Jul 23 2010

In other words, you do NOT have the latest haXe code, by any stretch of the imagination

Try here - http://code.google.com/p/haxe/source/checkout

John


On 3 August 2011 13:58, Marcelo de Moraes Serpa <[hidden email]> wrote:
Sorry guys, stupid mistake: I forgot to source ~/.bash_profile. But the error messages are still kind of cryptic.

Thank you,

Marcelo.

On Tue, Aug 2, 2011 at 10:53 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
I'm on OSX Lion, btw. Latest code from both repos (OCaml and haXe).

Thanks in advance.


On Tue, Aug 2, 2011 at 10:52 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
So, decided to stop lurking around and get my hands dirty, finally.

I compiled OCaml from source, installed it, downloaded and compiled haXe from source as well. Binaries on the system path, everything seemed to be working well, until I tried to compile the (in)famous HelloWorld! program:

Source (you know it already, don't you :) ) 

  1 class Hello {
  2     static function main() {
  3         neko.Lib.print("Hello World!");
  4     }
  5 }
                                                                                                                                                                                                          
When I try to compile it to Neko, I get the following weird errors:
                                                                                                                                                                                                          
marcelo-laptop:sandbox fullofcaffeine$ haxe Hello.hx -main Hello -neko Hello.n
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 11-17 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 20-33 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 12-22 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 23-29 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function

Does anyone know why?

Cheers,

M>



--
haXe - an open source web programming language
http://haxe.org



--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Starting out with haXe, weird error

John Plsek
In reply to this post by Marcelo de Moraes Serpa
Fair enough, I take it it works now?

On 3 August 2011 14:18, Marcelo de Moraes Serpa <[hidden email]> wrote:
I do. The problem was that I hadn't sourced the bash_profile, hence haXe could not find the source files. I did compile from source, using the sh script found on the download page.

Thanks.

M>


On Tue, Aug 2, 2011 at 11:15 PM, John Plsek <[hidden email]> wrote:
NekoArray__.hx hasn't existed since r3240, on Jul 23 2010

In other words, you do NOT have the latest haXe code, by any stretch of the imagination

Try here - http://code.google.com/p/haxe/source/checkout

John


On 3 August 2011 13:58, Marcelo de Moraes Serpa <[hidden email]> wrote:
Sorry guys, stupid mistake: I forgot to source ~/.bash_profile. But the error messages are still kind of cryptic.

Thank you,

Marcelo.

On Tue, Aug 2, 2011 at 10:53 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
I'm on OSX Lion, btw. Latest code from both repos (OCaml and haXe).

Thanks in advance.


On Tue, Aug 2, 2011 at 10:52 PM, Marcelo de Moraes Serpa <[hidden email]> wrote:
So, decided to stop lurking around and get my hands dirty, finally.

I compiled OCaml from source, installed it, downloaded and compiled haXe from source as well. Binaries on the system path, everything seemed to be working well, until I tried to compile the (in)famous HelloWorld! program:

Source (you know it already, don't you :) ) 

  1 class Hello {
  2     static function main() {
  3         neko.Lib.print("Hello World!");
  4     }
  5 }
                                                                                                                                                                                                          
When I try to compile it to Neko, I get the following weird errors:
                                                                                                                                                                                                          
marcelo-laptop:sandbox fullofcaffeine$ haxe Hello.hx -main Hello -neko Hello.n
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 11-17 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:72: characters 20-33 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 12-22 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:75: characters 23-29 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function
/usr/lib/haxe/std/neko/NekoArray__.hx:76: characters 4-10 : Cannot access this from a static function

Does anyone know why?

Cheers,

M>



--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org