-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
How to support FAKE 5 script files? #558
Comments
@matthid if doesnt work, is because of FSAC, let's fix it there. Best will be add an integration test about that so is easy to diagnose (and we dont regress). An example can be https://github.com/fsharp/FsAutoComplete/blob/master/test/FsAutoComplete.IntegrationTests/CompletionFilter/CompletionFilterRunner.fsx if you need to install something (like .net core 2 sdk), and example can be https://github.com/fsharp/FsAutoComplete/blob/master/test/FsAutoComplete.IntegrationTests/DotNetSdk2.0/AppAndLibRunner.fsx If you can PR the test, i can try check why fails. |
The problem with netstandard is the masses of assembly references, I'm not sure how to properly reproduce that easily. Note that I'm not quite there yet. I just wanted to try if I get something work in the current state and give others the opportunity to help out. Later I'll check if falling back to the full framework load-script is a temporary solution for now (but it will be quite confusing for users...). |
@matthid too much references is not an issue ihmo. is the same with fsproj, who reference same amount of assemblies, passed to if the script run as expected with just guessing, but probably issue is with GetProjectOptionsFromScript who read the fsx or how FSAC call that (like assumeDotNetFramework). I'll try to check the script in FSAC/FCS later |
AFAIK fsi is not yet supported on netcore, or is it? If no I cannot really cross check Thanks for helping. Like I said this will be lying around for some time (at the very least until I've finished porting FAKE to netcoreapp20) |
Hey @matthid can we close it? |
Basically this still is a hack because we generate intellisense for full framework, which is not what fake 5 is actually executing. But if you want you can close it. Also I need to find the time to fix ionide/FsAutoComplete#273 |
Assume you start with FAKE5 with the following
script.fsx
You run it initially via
fake run script.fsx
to restore all dependencies and generate load scriptsNow I expect to get working netcore/netstandard-based intellisense but nothing works in Ionide (or Visual Studio for that matter).
Interestingly Visual Studio is underlining the "#load" line if I add errors to
main.group.fsx
so it definitely is loading the libraries but is not doing anything useful with them. Ionide is doing nothing but besides showing thatFake
is a unknown namespace.I hope with next FAKE version we can make this work by using the
net47
load script instead ofnetstandard1.6
(or even try to provide compat withnet45
).Any pointers or hint why this doesn't work already today are welcome. /cc @Krzysztof-Cieslak
The text was updated successfully, but these errors were encountered: