Does anyone know how to get intellisense to see the local modules? Visual Studio 2005 puts the red squiggly

under the module name in an “open File1” statement with the error: “The

namespace or module ‘File1’ is not defined”.

I’ve tried a variety of things to fix this: ‘#I @”.”;;’, fixing the

compilation order for the project, adding the build property flag “-I .”, and

other stuff and nothing seems to work.

The files build fine. I’m an

Ocaml hacker but a noob to Visual Studio.

I’m using VS 2005 and FSharp-1.1.10.4.

I’m pretty sure I installed it right.

Any ideas what’s wrong?

By on 5/10/2006 6:37 PM ()

I'm seeing a similar problem with F# 1.9.3.14 and VS2008, but only with some references. I have the following open commands in my source file:

open Core.Spec
open Core.Extend

The classes in these namespaces are defined in Core.Spec.dll and Core.Extend.dll respectively, which are both generated from C# projects. I have two corresponding -R options in the project settings, and when I build the F# project, I can see that the DLLs are being copied. The project builds with no reported errors. However, there are 2 problems:

1. Intellisense puts a red squiggly under "Extend" in "open Core.Extend", and also under the names of methods I call in that namespace. It claims that namespace "Core.Extend" doesn't exist. However, the F# compiler manages to find the methods (unless I comment out the "open" command).

2. According to Reflector, the generated F# assembly contains a reference to Core.Spec but not to Core.Extend.

Any ideas? The main differences between the two referenced DLLs is that Core.Extend itself refers to Core.Spec, and Core.Extend contains only static classes containing extension methods. I tried re-registering F# DLLs as suggested elswhere in this thread, to no avail.

By on 3/7/2008 2:49 AM ()

Hi Dave,

If you can reproduce this problem consistently please let us know. Send an example to fsbugs AT microsoft DOT com.

Thanks
Don

By on 3/14/2008 12:18 PM ()

There is an issue with clean installs of F# 1.1.10.4 where you have to re-register DLLs to get multi-module Intellisense to work. Try

1
2
3
  regsvr32 bin/FsPrj.dll
  regsvr32 bin/FsLangService.dll
  regsvr32 bin/babelpackage.dll

We're testing if this is fixed in the 1.1.11.x releases, due out soon.

Thanks

Don

By on 5/11/2006 6:49 AM ()

Re-registering the DLLs worked! Sweeeet! Thank you!

By on 5/11/2006 2:54 PM ()

For the entire project you can use the -I and -r options in the project properties->Dll References box. To get the intellisense working you'll need to use the #I and #r at the top of the FS files.

see the README-fsharp.html file in the F# root directory for a quick explanation of this. Also see here:

[link:research.microsoft.com]

Hope this helps!

Chad

By on 4/6/2006 4:45 PM ()

Also information at the Wiki page for the Visual Studio AddIn [link:strangelights.com]

Please extend/add/edit that information, and add additional queries!

By on 4/8/2006 10:37 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper