-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an EvalScript method to FsiEvaluationSession #36
Comments
EvalInteraction should do the trick, I think. |
Im sure Ive used it for loading a script before. |
You could always add an augmenter in Fake to read the file into a string. I would like the opposite, a way of sending a string to fsi, rather than passing a script file. (Given that fsi is made a few orders of magnitude faster starting first) |
Does an overload or additional method exist that takes a |
The original inputs were stream based.
|
OK thanks will look into EvalInteraction and probably add some notes to the docs if it works. |
Do you have a link? Do get it wortking. Always getting evaluation errors |
@forki can you give more details of the errors you are getting. Using
should work I think. |
mhm. I tried to load the script file into string and evaluate the string. This #load trick sounds better. Actually it sounds useful enough to be extracted into own method. |
Please send a PR to add that? |
if I succeed I will send a PR |
Seems to work. I smell FAKE 3.0 in the air. |
👍 I'm giddy with delight to see this. Correct me if I'm wrong, but shouldn't this allow for dynamic dependencies, similar to what @t0yv0 describes in https://github.com/Intellifactory/fshake? |
Actually I just want to run FSI in the same thread to get better debugging of build scripts. But I'm not sure this will work |
@forki any update on this? Is there an FCS issue here? |
Closing for now |
I just read http://fsharp.github.io/FSharp.Compiler.Service/interactive.html and saw fsiSession.EvalExpression(text) allows to evaluate an expression.
For fsprojects/FAKE#41 I would need an EvalScript method.
Is this possible?
The text was updated successfully, but these errors were encountered: