mbraceproject / MBrace.StarterKit

A collection of demos and tutorials for MBrace
http://mbrace.io
57 stars 34 forks source link

.fsx files are not found when using FSI from Visual Studio, add hint on using #I command #58

Closed nicenemo closed 8 years ago

nicenemo commented 8 years ago

When trying the handson tutorial from fsi within Visual Studio 2015 you get messages about not being able to find thespiancluster.fsx in the cwd. Trying to change the cwd as found on Stackoverflow does not work for this problem.

Using something like #I @"c:\users\hans\source\repos\mbrace\mbrace.starterkit\handsontutorial" does work. A hint to use the above or something better saves F# novices like me 20 minutes.

eiriktsarpalis commented 8 years ago

I can't reproduce this. Did you try building the solution before running the scripts?

nicenemo commented 8 years ago

yes I did a build all. and using fsi from within vs 2015. cwd is set to something like appdata\temp can try again tomorrow with complete log/screenshots if that helps.

eiriktsarpalis commented 8 years ago

The cwd shouldn't factor in here. Relative paths in #r and #I directives are resolved w.r.t. the source file directory.

dsyme commented 8 years ago

@nicenemo If you can send us repro steps that would be great.

nicenemo commented 8 years ago

I Installed F# as documented for use without Visual Studio. I planned to try Visual Studio Code. Could not get it working easily for something simple as a command line tool. Planning to look into that later. Installed Visual Studio Community 2015 with all options instead. I downloaded the repo using git command line to my local machine. opened the solution. Build it. It builds fine. copied the #load command to F# interactive --> error without the mentioned search path addition capture

any further steps I can to do to clarify? uninstall everything, start from scratch and record everyting?

eiriktsarpalis commented 8 years ago

Instead of copying and pasting code to the REPL, try highlighting it from the editor and then hit Alt+Enter.

nicenemo commented 8 years ago

Ευχαριστώ πολύ!, that works indeed. image However by selecting the menu option after right clicking. Alt Enter does not seem to work

eiriktsarpalis commented 8 years ago

No problem! Closing this then :)