IronScheme ready for Windows 8 :)

Mar 10, 2012 at 1:01 PM

Hello leppie,

Perhaps not a priority, but somehow strange I discovered that IronScheme RC5 .NET 4.0 and .NET 2.0 don't work well on Windows 8 CP.

When I try to use features related to clr, I get a System.NullReferenceException.

> (import (ironscheme) (ironscheme clr))
> (clr-using System.Net)
Unhandled CLR exception during evaluation:
CLR Exception: System.NullReferenceException
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
   at #.psyntax.expander::syntax-dispatch(Object e, Object p)
   at clr.anon#179$9470(Object e)
   at #.psyntax.expander::do-macro-call(Object transformer, Object expr, Object
r, Object rib)
   at #.psyntax.expander::chi-body*(CodeContext $context, Object e*, Object r, O
bject mr, Object lex*, Object rhs*, Object mod**, Object kwd*, Object exp*, Obje
ct rib, Object mix?, Object sd?)
   at #.psyntax.expander::chi-interaction-expr(Object e, Object rib, Object r)
   at #.ironscheme.exceptions::dynamic-wind(Object in, Object proc, Object out)
   at #.psyntax.expander::core-expand(Object x, Object env)
   at #.psyntax.expander::eval(Object x, Object env)
   at #.ironscheme.exceptions::dynamic-wind(Object in, Object proc, Object out)
   at #.ironscheme.exceptions::dynamic-wind(Object in, Object proc, Object out)
   at IronScheme.Runtime.Builtins.CallWithCurrentContinuation(Object fc1)
   at IronScheme.Runtime.R6RS.Exceptions.WithClrExceptionHandler(Object handler,
 Object thunk)

Thanks,

Dorian

Coordinator
Mar 10, 2012 at 1:05 PM

Thanks :)

Not sure when I will get time to setup a dev environment on Win 8, but hopefully soon.

Coordinator
Mar 12, 2012 at 3:20 PM

I tried installing Win8 on VirtualBox today, but due to the internet going down, the whole OS just stalled...

Tomorrow is another day.

Coordinator
Mar 13, 2012 at 8:34 AM

I have create a test version for Windows 8. 

The installer checks for .NET 4 now.

Download it from http://eval.ironscheme.net/IronScheme-1.0-RC6-setup.zip

This is targetting .NET 4, please test this for me (works ok for me on Win 8 64 bit).

Thanks

leppie

Mar 13, 2012 at 9:47 PM
Edited Mar 13, 2012 at 9:48 PM

Thank you Leppie.

I am gonna try it. I will tell you if it works.

I am using Windows 8 at work, so I would be happy to use my favorite language with my favorite framework on it :).

Mar 14, 2012 at 3:26 PM

There still is a bug:

> (import (ironscheme) (ironscheme clr))
> (define wc (clr-new WebClient))
Unhandled CLR exception during evaluation:
CLR Exception: System.NullReferenceException
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
   at #.ironscheme.exceptions::syntax-error(Object who, Object msg, Object form,
 Object subform)
   at IronScheme.Runtime.Builtins.CompileCore(Object expr)
   at IronScheme.Runtime.Builtins.EvalCore(Object expr)
   at #.ironscheme.exceptions::dynamic-wind(Object in, Object proc, Object out)
   at #.ironscheme.exceptions::dynamic-wind(Object in, Object proc, Object out)
   at IronScheme.Runtime.Builtins.CallWithCurrentContinuation(Object fc1)
   at IronScheme.Runtime.R6RS.Exceptions.WithClrExceptionHandler(Object handler,
 Object thunk)

Thanks,

Dorian

Coordinator
Mar 14, 2012 at 4:08 PM

Is this on 32bit? 

Also, you simply open the REPL and only type in that code?

Coordinator
Mar 15, 2012 at 10:33 AM

I tested this now on 32bit as well, with no issues.

Something else must be wrong.

Still looking at a way to reproduce the errors you are getting.

Any ideas?

Coordinator
Mar 15, 2012 at 5:53 PM

Another question.

Seeing the installer did not work on Windows 8, how did you install it?

If you just copied it over from another PC, try a fresh install (new directory) of the binary I linked to.

I suspect there might be 'leftovers' causing this issue.

Mar 30, 2012 at 3:26 PM

Hello,

Sorry for the very late reply.

Is this on 32bit?   No it is on a 64bit architecture.

you simply open the REPL and only type that code?   Yes.

I used the installer you provided. (http://eval.ironscheme.net/IronScheme-1.0-RC6-setup.zip)

It is possible that there is some problem with my machine,  I will try again.

Mar 31, 2012 at 1:43 PM

Ok I found that I get this error when using isc.bat and not IronScheme.Console.exe directly.

It is kind of strange. Something related to the -nologo switch??

I also noticed I cannot use the -I switch (I always get a file not found even if my directory exists).

Thanks

Dorian

 

Mar 31, 2012 at 2:19 PM

If isc.bat is called from the install directory it is ok.

So it seems it has to do with the current directory of the application.

Coordinator
Mar 31, 2012 at 2:44 PM

Thanks for the helpful info. Will look into it :)

Coordinator
Mar 31, 2012 at 2:45 PM

Can you confirm that this works in Win7 and the bug is only in Win8?

I dont want to go on a wild goose chase on Win7 :)