Closed ovatsus closed 6 years ago
I can only recommend to update to the new runner as it seems you haven't yet migrated to it
executeFSIWithArgs
(which is obsolete by the way) is just executing the fsi.exe
process so I'm pretty sure this should reproduce without fake as well. Fake might execute a different fsi.exe than you do or with other arguments.
How do I move to the new runner? Looking at https://fake.build/fake-migrate-to-fake-5.htm it seems I only need to change from "fake build.fsx
@ovatsus First you need to switch to the new APIs, old APIs are not available in the new world
I already did (https://github.com/fsharp/FSharp.Data/pull/1201), this was after that
Then only specifying the modules is missing (direct #r
and #I
is no longer supported): https://fake.build/fake-migrate-to-fake-5.html#Add-FAKE-dependencies
having the #r and #I directly was very handy to be able to use the scripts both in Fake and as standalone fsi files for debugging, is that no longer supported?
You can #load
scripts but I'd not recommend loading binaries, leave that to the runtime if possible it is hard/impossible to do correctly in netcore world. That's the reason why we still don't have a working fsi after all
@ovatsus If you have a concrete use-case in mind you can either open a new issue or add it here
Oh, I just realized, after upgrading to the new syntax, I can no longer Alt+Enter bits and pieces on build.fsx. That's a big regression for me
I'm not sure what you mean regarding loading binaries, but to execute the scripts I need the FAKE binaries loaded so the lib methods are available, right? I want to to support .Net Core, but it I'm using regular .Net Framework I still expect FSI evaluation to work. I'm not moving myself to .Net Core until IMO one of the best features of F#, being able to iteratively evaluate snippets of code, is available there
@ovatsus Basically you reference nuget packages with fake 5 and not individual dlls
, you can complement this with the paket load script feature on the full framework fsi.
Additionally you can still run the fake 5 script in the full framework fsi with the following trick: https://fake.build/fake-debugging.html#Run-script-without-fake-exe-via-fsi
Regarding Alt+Enter that is a tooling problem and better addressed by asking people in ionide.
Version: Fake 5.3
I'm getting this error when I run the GenerateDocs task in FSharp.Data in current master:
Here's the definition of the task:
If I open generate.fsx and execute it manually in F# interactive it works fine, it only throws that exception when running inside Fake