fsharp/zarchive-vim-fsharp

[MacVim] Troubles with linter

k0pernicus opened this issue · 6 comments

I use MacVim with Python support.
When I try to write open System.Net, the linter (or something else) returns: The namespace 'Net' is not defined.
When I try the same thing using fsharpi, it works...

Is a configuration is required to use the plugin?

Are you using an fs or fsx file? Can you post a full example? Does
autocompletion work?
On Mon, 27 Jun 2016 at 03:18, Antonin Carette notifications@github.com
wrote:

I use MacVim with Python support.
When I try to write open System.Net, the linter (or something else)
returns: The namespace 'Net' is not defined.
When I try the same thing using fsharpi, it works...

Is a configuration is required to use the plugin?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#50, or mute the thread
https://github.com/notifications/unsubscribe/ABIDlHsUuIk_ZO6roE_GsbbdHTMJx3raks5qPzMBgaJpZM4I-taO
.

It's a fs file.

A simple example:

open System.IO //It works
open System.Net //It doesn't works

let fetch (s: string) : string =
    "Hello world"

Have you got a project file?
On Mon, 27 Jun 2016 at 17:18, Antonin Carette notifications@github.com
wrote:

It's a fs file.

A simple example:

open System.IO //It works
open System.Net //It doesn't works

let fetch (s: string) : string =
"Hello world"


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#50 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABIDlF_--Cp9PQNGmNWSbiTSenJ0ptVoks5qP_e4gaJpZM4I-taO
.

No, I thought that a .fs file was enough... :-/

no it won't know to include System.Net - either switch to fsx and use #r "System.Net" or similar or add a project file with the appropriate references.

Thanks,

Ok so move my file ex.fs to ex.fsx makes the program ok, without #r "System.Net".
I will check how to write some classes using .fs extensions (without scripting) and use System.Net for that...