[MonoDevelop] MonoDevelop.Autotools addin?

Vasili I. Galchin vigalchin at gmail.com
Mon Mar 8 20:31:13 EST 2010


I added a call to LogginService.LogInfo:

                static string GetCompilerName (TargetRuntime runtime,
TargetFramework fx)
                {
LoggingService.LogInfo("called F# GetCompilerName");   //
<<<<<<<<<<<<<<<<<<<<<<<<<<

                        string fsc = runtime.GetToolPath (fx, "fsc");
                        if (fsc != null)
                                return fsc;
                        else {
                                string message = GettextCatalog.GetString
("F# compiler not found for {0}.", fx.Name);
                                LoggingService.LogError (message);
                                throw new Exception (message);
                        }
                }

The LogInfo message is not displayed indicating to me that GetCompilerName
is not called!

>From a brute-force find/grep over MonoDevelop it seems that the language
binding dependent method  GetCompilerName is only called by language-binding
dependent method Compile. I have LogInfos at the beginning of both methods.
Neither method seems to be called when I select "Build" on MonoDevelop IDE.
What exactly causes method Compile in CSharpBindingCompilerManager (or in my
case FSharpBindingCompilerManager)?


Vasili



On Mon, Mar 8, 2010 at 5:31 PM, Lluis Sanchez Gual
<slluis.devel at gmail.com>wrote:

> El dl 08 de 03 de 2010 a les 16:30 -0600, en/na Vasili I. Galchin va
> escriure:
> > Hi Mike,
> >
> >       I am getting my F# addin to the point where I can attempt to do
> > a "Build". When I select "Build", I get the wrong path for the F#
> > compiler:
> >
> >
> > INFO [2010-03-08 16:09:35Z]: /usr/bin/gmcs
> > "/out:/home/vasili/Projects/Console10/Console10/bin/Debug/Console10.exe"
> > "/r:System.dll"
> > /nologo
> > /warn:4
> > /debug:+
> > /debug:full
> > /optimize-
> > /codepage:utf8
> > "/define:DEBUG"
> >
> > /t:exe
> > "/home/vasili/Projects/Console10/Console10/Main.fs"
> >
> >
> > I did the time-honored brute force software engineering
> > technique ....... i.e. find/grep ... searching for the C# compiler
> > gmcs ;^). I found a likely ref to "gmcs" in
> > CSharpBinding/Autotools/CSharpAutotoolsSetup.cs.
>
> That's unrelated to your problem. See GetCompilerName in
> CSharpBindingCompilerManager. That's where the compiler is looked up in
> the c# binding. You'd have to replace csc by fsc.
>
> Lluis.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20100308/e0e5231c/attachment.html 


More information about the Monodevelop-list mailing list