[nem-en] Re: What is additional_decls?

Kamil Skalski kamil.skalski at gmail.com
Sat Nov 18 16:23:55 CET 2006


Hm, I think I reproduced the problem in small example:
- create new Nemerle console project
- put it into contents:

using System;
using System.Console;
using Nemerle.Utility;

[Record]
partial class Proj {
  [Nemerle.Utility.Accessor] _foo : int;
  [Nemerle.Utility.Accessor] _bar : string;
}

partial class Proj {
}

module Program
{
  Main() : void
  {
    WriteLine("Hi!");
    def x = Proj (1, "");
  }
}



On 11/18/06, Andrey Khropov <andrey.khropov at gmail.com> wrote:
> Kamil Skalski wrote:
>
> > http://nemerle.org/svn/vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completi
> > on2/Engine/Engine-main.n
> > > I get following error in VS (in red):
> > >
> > >
> > > Object reference not set to an instance of an object.
> > > Hide
> >
> >
> > Ok, closing it and opening again several times helped ;)
>
> I think the problem is that Nemerle.Compiler.Utils is somehow hybrid
> csproj/nproj
>
> Nproj file includes the following string:
> <Import Project="Nemerle.Compiler.Utils.csproj" />
>
> Maybe you should try to play with new Nemerle project created from scratch:
> (Project->New, choose "Nemerle" type).
>
> > Now I can
> > see the error you mentioned, in line 123. Hm, do you have some hints
> > on debugging the integration? In fact, what is the fastest route to:
> > - add debug into compiler's source
> > - deploy it
>
> See  http://nemerle.org/svn/vs-plugin/trunk/Doc/Nemerle.VsIntegration-en.doc.
> XML( http://rsdn.ru/article/nemerle/Nemerle.VsIntegration-en.xml ) should be
> updated when Vlad processes the doc.
>
> > - see the debug output from compiler, which was generated while
> > analyzing given source code file
> >
> > Actually the problem is with last step :)  Where does debug info appear?
>
> See "Output" pane in the host VS (menu:View->Output or Ctrl+Alt+O)
>
> You can also set breakpoints in host VS (even NCC src files work although it
> isn't part of the integration project)
>
> --
> AKhropov
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list