The shorter helper variables were added quite a while back, several years
ago.

Once I opened the project with a debug copy of CVSI I could easy see the
class nodes weren't getting loaded, and the VS error window showed the
following:

FATAL: System.ArgumentException: An item with the same key has already been
added.     at System.ThrowHelper.ThrowArgumentException(ExceptionResource
resource)     at System.Collections.Generic.Dictionary`2.Insert(TKey key,
TValue value, Boolean add)     at
System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)     at
Castle.NVelocity.Scope.Add(NVIdNode id) in
C:\dev\castlecontrib\Castle.NVelocity\trunk\src\Castle.NVelocity\Scope.cs:line
68     at Castle.NVelocity.Ast.TemplateNode.AddVariable(NVLocalNode
localNode) in
C:\dev\castlecontrib\Castle.NVelocity\trunk\src\Castle.NVelocity\Ast\TemplateNode.cs:line
55     at
Castle.VisualStudio.NVelocityLanguageService.NVelocityLanguage.PrepareTemplateNode(String
fileName) in
C:\dev\castlecontrib\CVSI\trunk\src\Castle.VisualStudio.NVelocityLanguageService\NVelocityLanguage.cs:line
332     at
Castle.VisualStudio.NVelocityLanguageService.NVelocityLanguage.ParseSource(ParseRequest
req) in
C:\dev\castlecontrib\CVSI\trunk\src\Castle.VisualStudio.NVelocityLanguageService\NVelocityLanguage.cs:line
187

Which is caused by there being 2 JSONHelpers:
Castle.MonoRail.Framework.Helpers.JSONHelper in Castle.MonoRail.Framework.dl
Castle.Monorail.JSONSupport.JSONHelper in Castle.MonoRail.JSONSupport.dll

Could you log a defect in the issue tracker for CVSI under contrib so that
it just ignores the second one and doesn't fall over.

About having 2 helpers, you don't need JSONSupport anymore, IIRC it was all
merged into Castle.MonoRail.Framework.dll.

On Sat, Aug 8, 2009 at 3:15 AM, Cesar Sanz <[email protected]>wrote:

>  Hello Again.
>
> I did something and it is Interesting what happened
>
> The problem seems to be with the Castle.MonoRail.JSONSupport.dll (yes, I
> added and remove every and each dll of the castle project - one by one -
> from bin folder)
> If I put this dll into the bin folder.. the error described occurres..
>
> I am attaching the project I used for testing and do this:
>
> 1. Type $Ajax in the index.vm view --> You will see the error I mention
> 2. Go to bin folder and remove Castle.MonoRail.JSONSupport.dll and
> Castle.MonoRail.JSONSupport.xml
> 3. Type $Ajax in the index.vm view and you will have the intellisense..
>
> Hope you can explain me why this happens.
>
> Best regards
>
>
>
> ----- Original Message -----
> *From:* Cesar Sanz <[email protected]>
> *To:* [email protected]
> *Sent:* Friday, August 07, 2009 10:24 AM
> *Subject:* Re: CVSI
>
> Hi,
>
> I did as you say and now it works.. why?? well.. don't know!!
>
> I have another question..
>
> I didn't know $Url was the same as $UrlHelper... or $Form = $FormHelper..
>
> Can I use the shorter version of helpers, since when?
>
> Regards..
>
> ----- Original Message -----
> *From:* Jonathon Rossi <[email protected]>
> *To:* [email protected]
> *Sent:* Friday, August 07, 2009 8:47 AM
> *Subject:* Re: CVSI
>
> Can you create a new empty web application, drop in the monorail framework
> dll and see if it works.
>
> If it doesn't, can you email me the new project and I'll try it.
>
> On Fri, Aug 7, 2009 at 9:13 AM, Cesar Sanz <[email protected]>wrote:
>
>>  Sorry I didn't answer your previous question
>>
>> >Do you get intellisense for directives (#if, #component, etc)?
>> When I type #, all the directives you menitioned are listed.. but, don't
>> show the spected parameters..
>>
>>
>>
>>  ----- Original Message -----
>> *From:* Cesar Sanz <[email protected]>
>> *To:* [email protected]
>>   *Sent:* Thursday, August 06, 2009 4:56 PM
>> *Subject:* Re: CVSI
>>
>> Don't know why this does not work for me..
>>
>> Does has to see with the dll versions??
>>
>> Please see the image attatched...
>>
>> ----- Original Message -----
>> *From:* Jonathon Rossi <[email protected]>
>> *To:* [email protected]
>> *Sent:* Thursday, August 06, 2009 4:42 PM
>> *Subject:* Re: CVSI
>>
>> Yes.
>>
>> Do you get intellisense for directives (#if, #component, etc)?
>>
>> On Fri, Aug 7, 2009 at 12:48 AM, Cesar Sanz <[email protected]>wrote:
>>
>>>  Well, I've checked my project and I found all the castle dll required
>>> in the bin folder.
>>>
>>> > ..it couldn't find the MonoRail DLL in you bin directory.
>>> Do you mean Castle.MonoRail.Framework.dll??
>>>
>>>  ----- Original Message -----
>>> *From:* Jonathon Rossi <[email protected]>
>>> *To:* [email protected]
>>> *Sent:* Wednesday, August 05, 2009 4:03 PM
>>> *Subject:* Re: CVSI
>>>
>>> That is most likely because it couldn't find the MonoRail DLL in you bin
>>> directory.
>>>
>>> On Thu, Aug 6, 2009 at 5:56 AM, [email protected] <
>>> [email protected]> wrote:
>>>
>>>>
>>>> Yesterday I installed this helper for nvelocity coding. (http://
>>>> using.castleproject.org/display/Contrib/Castle+Visual+Studio
>>>> +Integration)
>>>>
>>>> But, I when I type, for example, $ForHelper, it shows an error that
>>>> says
>>>>
>>>> "Error: TypeNode is NULL"
>>>>
>>>> Is this integration just for nvelocity coloring or it must to provide
>>>> intellisense too?'
>>>>
>>>> P.S I am using VS 2005
>>>>
>>>>
>>>
>>>
>>> --
>>> Jono
>>>
>>>
>>
>>
>> --
>> Jono
>>
>>
>
>
> --
> Jono
> >
>


-- 
Jono

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to