fsprojects / zarchive-sublime-fsharp-package

F# development tools for SublimeText 3
32 stars 7 forks source link

Completions and error checking missing for .fsx files #8

Closed rojepp closed 9 years ago

rojepp commented 9 years ago

There are checks for is_code_file instead of is_code. And there are exceptions when trying to set current project in fsac when there is none.

guillermooo commented 9 years ago

How did you get the error checking working on OSX/Linux? I can't remember if a VS project file is needed any more. I guess you checked against a .fs file?

rojepp commented 9 years ago

Yes, I checked against an .fs file that had a project file.

guillermooo commented 9 years ago

@rneatherway Is it possible to provide completions, etc. for a .fsx file that does not belong to a .fsproject?

rneatherway commented 9 years ago

Yes, absolutely, it "just works". Send a request just as for a .fs and FSAC knows what to do with it (based on the filename extension).

guillermooo commented 9 years ago

Cool! Does that mean that for .fs files the plugin does not have to locate the corresponding .fsproject either?

rneatherway commented 9 years ago

No, I'm afraid you have to explicitly load the .fsproj still. In Emacs I do that automatically on opening a .fs file if there is an fsproj in the current or enclosing directory.

guillermooo commented 9 years ago

17