I'm just continuing this monologue. If I need to shut up, just tell me :) I downloaded boo after some codebase fixes I got the whole Castle building on that trunk (NH/Castle/Rhino). The boo-ers wrapped a catch around the above KeyNotFoundException, so I'm now getting the actual error:
No compiler service of type `Boo.Lang.Compiler.TypeSystem.CallableResolutionService` has been found I'm not yet sure who's fault that would be. I'm really short on knowledge in this matter, but maybe I'll accidently find the fix :) On Mar 18, 1:53 pm, Grimace of Despair <[email protected]> wrote: > I'm really not into boo/brail (yet). Maybe someone with a little more > insight can tell what's wrong, based on the following information? > > public override void OnMethodInvocationExpression > (MethodInvocationExpression node) > { > ReferenceExpression expression = node.Target as > ReferenceExpression; > if (expression == null || expression.Name != > "TryGetParameter") > { > base.OnMethodInvocationExpression(node); // > Here's the culprit > return; > } > > The base call fails, leaving the following call stack: > > mscorlib.dll!System.ThrowHelper.ThrowKeyNotFoundException() + 0x1d > bytes > mscorlib.dll! > System.Collections.Generic.Dictionary<System.__Canon,System.__Canon>.this > [System.__Canon].get(System.__Canon key) + 0x41 bytes > Boo.Lang.Compiler.DLL! > Boo.Lang.Compiler.CompilerContext.GetService<Boo.Lang.Compiler.TypeSystem.CallableResolutionService> > () + 0x77 bytes > Boo.Lang.Compiler.DLL! > Boo.Lang.Compiler.Steps.ProcessMethodBodies.CallableResolutionService.get > () + 0x4f bytes > Boo.Lang.Compiler.DLL! > Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetCorrectCallableReference > (Boo.Lang.Compiler.Ast.Node sourceNode = {super(viewEngine, output, > context, __controller, __controllerContext)}, > Boo.Lang.Compiler.Ast.ExpressionCollection args = > {Boo.Lang.Compiler.Ast.ExpressionCollection}, > Boo.Lang.Compiler.TypeSystem.IEntity[] candidates = > {Boo.Lang.Compiler.TypeSystem.IConstructor[1]}) + 0xb0 bytes > Boo.Lang.Compiler.DLL! > Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetCorrectConstructor > (Boo.Lang.Compiler.Ast.Node sourceNode = {super(viewEngine, output, > context, __controller, __controllerContext)}, > Boo.Lang.Compiler.TypeSystem.IType type = > {Castle.MonoRail.Views.Brail.BrailBase}, > Boo.Lang.Compiler.Ast.ExpressionCollection arguments = > {Boo.Lang.Compiler.Ast.ExpressionCollection}) + 0x95 bytes > Boo.Lang.Compiler.DLL! > Boo.Lang.Compiler.Steps.ProcessMethodBodies.ProcessConstructorInvocation > (Boo.Lang.Compiler.Ast.MethodInvocationExpression node = {super > (viewEngine, output, context, __controller, __controllerContext)}, > Boo.Lang.Compiler.TypeSystem.IEntity targetEntity = > {BrailView_default.constructor > (Castle.MonoRail.Views.Brail.BooViewEngine, System.IO.TextWriter, > Castle.MonoRail.Framework.IEngineContext, > Castle.MonoRail.Framework.IController, > Castle.MonoRail.Framework.IControllerContext)}) + 0x180 bytes > Boo.Lang.Compiler.DLL! > Boo.Lang.Compiler.Steps.ProcessMethodBodies.ProcessMethodInvocationExpression > (Boo.Lang.Compiler.Ast.MethodInvocationExpression node = {super > (viewEngine, output, context, __controller, __controllerContext)}, > Boo.Lang.Compiler.TypeSystem.IEntity targetEntity = > {BrailView_default.constructor > (Castle.MonoRail.Views.Brail.BooViewEngine, System.IO.TextWriter, > Castle.MonoRail.Framework.IEngineContext, > Castle.MonoRail.Framework.IController, > Castle.MonoRail.Framework.IControllerContext)}) + 0x157 bytes > Boo.Lang.Compiler.DLL! > Boo.Lang.Compiler.Steps.ProcessMethodBodies.OnMethodInvocationExpression > (Boo.Lang.Compiler.Ast.MethodInvocationExpression node = {super > (viewEngine, output, context, __controller, __controllerContext)}) + > 0x242 bytes > > On Mar 18, 1:35 pm, Grimace of Despair <[email protected]> > wrote: > > > I'm suffering the exact same issue, running everything from trunk. > > > When reverting to a previous version of all boo assemblies (27 feb > > 2008), I get the following error, probably because generics were not > > into play at that date yet: > > "Could not load type 'Boo.Lang.List`1' from assembly 'Boo.Lang, > > Version=2.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67'." > > > When reverting only Boo.Lang.Compiler, I get the folloeing error, > > probably because of intermediate API changes: > > Method not found: 'Boo.Lang.List Boo.Lang.List.Add(System.Object)'. > > > So, I'm also curious which version Martin is using... > > > "Boo.Lang.Compiler, Version=2.0.0.0, Culture=neutral, > > PublicKeyToken=32c39770e9a21a67" > > > On Mar 7, 9:26 pm, Adeel <[email protected]> wrote: > > > > Which version are you using now, I used the 1.0.0 version > > > ofboo.lang.compiler, but it gives me another error. > > > > On 27 feb, 22:17, Ayende Rahien <[email protected]> wrote: > > > > > Looks like that might be the reason, yes. > > > > > On Fri, Feb 27, 2009 at 7:56 AM, Martin Nilsson <[email protected]> > > > > wrote: > > > > > If I change to my previousBoo.Lang.Compilerit's working again. > > > > > Has Boo been upgraded? > > > > > > On Fri, Feb 27, 2009 at 1:36 PM, Martin Nilsson > > > > > <[email protected]>wrote: > > > > > >> I'm getting the same error after upgrading to latest trunk. > > > > > >> The layout: > > > > > >> <html> > > > > >> <head> > > > > >> <title>Title</title> > > > > >> </head> > > > > >> <body> > > > > >> Test > > > > >> </body> > > > > >> </html> > > > > > >> Stacktrace: > > > > >> at System.ThrowHelper.ThrowKeyNotFoundException() > > > > >> at System.Collections.Generic.Dictionary`2.get_Item(TKey key) > > > > >> atBoo.Lang.Compiler.CompilerContext.GetService[T]() > > > > >> at > > > > >>Boo.Lang.Compiler.Steps.ProcessMethodBodies.get_CallableResolutionService() > > > > >> at > > > > >>Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetCorrectCallableReference(Node > > > > >> sourceNode, ExpressionCollection args, IEntity[] candidates) > > > > >> at > > > > >>Boo.Lang.Compiler.Steps.ProcessMethodBodies.GetCorrectConstructor(Node > > > > >> sourceNode, IType type, ExpressionCollection arguments) > > > > >> at > > > > >>Boo.Lang.Compiler.Steps.ProcessMethodBodies.ProcessConstructorInvocation(MethodInvocationExpression > > > > >> node, IEntity targetEntity) > > > > >> at > > > > >>Boo.Lang.Compiler.Steps.ProcessMethodBodies.ProcessMethodInvocationExpression(MethodInvocationExpression > > > > >> node, IEntity targetEntity) > > > > >> at > > > > >>Boo.Lang.Compiler.Steps.ProcessMethodBodies.OnMethodInvocationExpression(MethodInvocationExpression > > > > >> node) > > > > >> at > > > > >> Castle.MonoRail.Views.Brail.ReplaceUknownWithParameters.OnMethodInvocationExpression(MethodInvocationExpression > > > > >> node) in > > > > >> d:\OSS\Castle\trunk\MonoRail\Castle.MonoRail.Views.Brail\ReplaceUknownWithParameters.cs:line > > > > >> 59 > > > > >> > > > > >> atBoo.Lang.Compiler.Ast.MethodInvocationExpression.Accept(IAstVisitor > > > > >> visitor) > > > > >> atBoo.Lang.Compiler.Ast.DepthFirstVisitor.Visit(Node node) > > > > > >> System.Collections.Generic.KeyNotFoundExceptoin: {"The given key was > > > > >> not > > > > >> present in the dictionary."} > > > > > >> Btw, the dictionary is empty > > > > > >> Setting the parameter (statusMessage) in the controller action and > > > > >> having > > > > >> below view doesn't help either: > > > > > >> <html> > > > > >> <head> > > > > >> <title>Title</title> > > > > >> </head> > > > > >> <body> > > > > >> ${statusMessage} > > > > >> Test > > > > >> </body> > > > > >> </html> > > > > > >> On Tue, Feb 24, 2009 at 6:50 PM, Adeel <[email protected]> > > > > >> wrote: > > > > > >>> *** Because of a glitch with google/ gmail, this message did not > > > > >>> appear in the list, so I am sending it again, if someone has already > > > > >>> received this message, please do ignore it*** > > > > > >>> I upgraded to trunk the trunk yesterday. As a newbie to castle, I > > > > >>> tried to get a view running, but for every page I try to open I get > > > > >>> a > > > > >>> Parser Error. I am using brail as a viewengine to be exact. > > > > > >>> Parser Error > > > > >>> Description: An error occurred during the parsing of a resource > > > > >>> required to service this request. Please review the following > > > > >>> specific > > > > >>> parse error details and modify your source file appropriately. > > > > > >>> Parser Error Message: Internal compiler error: The given key was not > > > > >>> present in the dictionary > > > > > >>> Source Error: > > > > > >>> Line 1: > > > > >>> Line 2: output """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > > > > >>> Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > > >>> Line 3: <html xmlns="http://www.w3.org/1999/xhtml"> > > > > > >>> Source File: layouts/default.brail Line: 1 > > > > > >>> The error is on line 1, but this line is empty. > > > > >>> I have tried stripping everything out of the view and still the > > > > >>> error > > > > >>> persists. > > > > > >>> Does anyone have a clue? > > > > > >>> Kind regards- Tekst uit oorspronkelijk bericht niet weergeven - > > > > > - Tekst uit oorspronkelijk bericht weergeven - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
