Latest changeset broken?

Dec 22, 2011 at 12:02 PM

Hi, trying to run the latest changeset, 84169, I can't get the console or the samples to work. It works in previous versions. Does this work for anyone else?

Coordinator
Dec 22, 2011 at 12:12 PM

What is the error you are getting?

Dec 22, 2011 at 12:19 PM

Posting the exception(s):

Console host failed to initialize:
Microsoft.Scripting.InvalidImplementationException: Type 'IronScheme.Hosting.IronSchemeLanguageProvider' doesn't provide a suitable public constructor or its implementation is faulty. ---> System.TypeInitializationException: The type initializer for 'IronScheme.Compiler.Generator' threw an exception. ---> System.NotSupportedException: all arguments must be of type object, method: System.Object FxPlusInternal(Int32, Int32)
   at IronScheme.Compiler.Generator.AddBuiltins(CodeContext cc, Type builtinstype) in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs: line 223
   at IronScheme.Compiler.Generator.Initialize() in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs:line 138
   at IronScheme.Compiler.Generator..cctor() in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.cs:line 29
   --- End of inner exception stack trace ---
   at IronScheme.Compiler.BaseHelper.Initialize(IronSchemeLanguageProvider ironSchemeLanguageProvider) in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs:line 73
   at IronScheme.Hosting.IronSchemeLanguageProvider.Initialize() in D:\src\ironScheme\svn\IronScheme\IronScheme\Hosting\IronSchemeLanguageProvider.cs:line 43
   at IronScheme.Hosting.IronSchemeLanguageProvider..ctor(ScriptDomainManager x)
 in D:\src\ironScheme\svn\IronScheme\IronScheme\Hosting\IronSchemeLanguageProvider.cs:line 35
   --- End of inner exception stack trace ---
   at Microsoft.Scripting.Utils.ReflectionUtils.CreateInstance[T](Type actualType, Object[] args) in D:\src\ironScheme\svn\IronScheme\Microsoft.Scripting\Utils\ReflectionUtils.cs:line 134
   at Microsoft.Scripting.ScriptDomainManager.LanguageProviderDesc.LoadProvider(ScriptDomainManager manager) in D:\src\ironScheme\svn\IronScheme\Microsoft.Scripting\ScriptDomainManager.cs:line 248
   at Microsoft.Scripting.ScriptDomainManager.GetLanguageProvider(Type type) in D:\src\ironScheme\svn\IronScheme\Microsoft.Scripting\ScriptDomainManager.cs:line 328
   at Microsoft.Scripting.Hosting.ScriptEnvironment.GetLanguageProvider(Type languageProviderType) in D:\src\ironScheme\svn\IronScheme\Microsoft.Scripting\Hosting\ScriptEnvironment.cs:line 148
   at IronScheme.Hosting.IronSchemeConsoleHost.Initialize() in D:\src\ironScheme\svn\IronScheme\IronScheme\Hosting\IronSchemeConsoleHost.cs:line 41
   at Microsoft.Scripting.Hosting.ConsoleHost.Run(String[] args) in D:\src\ironScheme\svn\IronScheme\Microsoft.Scripting\Hosting\ConsoleHost.cs:line 74System.TypeInitializationException: The type initializer for 'IronScheme.Compiler.Generator' threw an exception. ---> System.NotSupportedException: all arguments must be of type object, method: System.Object FxPlusInternal(Int32, Int32)
   at IronScheme.Compiler.Generator.AddBuiltins(CodeContext cc, Type builtinstype) in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs: line 223
   at IronScheme.Compiler.Generator.Initialize() in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs:line 138
   at IronScheme.Compiler.Generator..cctor() in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.cs:line 29
   --- End of inner exception stack trace ---
   at IronScheme.Compiler.BaseHelper.Initialize(IronSchemeLanguageProvider ironSchemeLanguageProvider) in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs:line 73
   at IronScheme.Hosting.IronSchemeLanguageProvider.Initialize() in D:\src\ironScheme\svn\IronScheme\IronScheme\Hosting\IronSchemeLanguageProvider.cs:line 43
   at IronScheme.Hosting.IronSchemeLanguageProvider..ctor(ScriptDomainManager x) in D:\src\ironScheme\svn\IronScheme\IronScheme\Hosting\IronSchemeLanguageProvider.cs:line 35
System.NotSupportedException: all arguments must be of type object, method: System.Object FxPlusInternal(Int32, Int32)
   at IronScheme.Compiler.Generator.AddBuiltins(CodeContext cc, Type builtinstype) in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs:line 223
   at IronScheme.Compiler.Generator.Initialize() in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.Helpers.cs:line 138
   at IronScheme.Compiler.Generator..cctor() in D:\src\ironScheme\svn\IronScheme\IronScheme\Compiler\Generator.cs:line 29
Press any key to continue . . .

 

Any ideas?

Coordinator
Dec 22, 2011 at 12:27 PM

Interesting! 

I see why, I dont know why it does not happen on my side...

2 minutes later...

You are running in Debug mode.  Not something I do often as the debugger slows down a lot in debug builds.

I check in a fix now :)

Thanks

Coordinator
Dec 22, 2011 at 12:34 PM

Fixed in changeset 84175

Like I said, I prefer to run in Release mode. The enjoyment is a lot better :)

Dec 22, 2011 at 12:42 PM

Yeah, I didn't realize I was even running in debug actually, I just wanted to make sure it worked before building it for usage (release that is).