-
Notifications
You must be signed in to change notification settings - Fork 588
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
FscHelper.compile fails with multiple references #1341
Comments
I had a look into it The problems are in https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/FscHelper.fs#L395.
as every single DLL reference needs to be wrapped in The next problematic line is https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/FscHelper.fs#L499 One easy way (alas a hacky way imo) would be to drop the first char and the last char of the generated string on the match case so.
It isnt exactly nice but it probably would do the job. |
And as a side note: Instead of falling back to using
|
Thanks for the tip! |
This can be closed - my fix got merged already |
Thanks! |
shoot! - we need to reopen. There is still a bug. Seems like inbetween all prams we need a semicolon. |
just send a PR. will release hotfix asap. |
Hi, I created a new PR. Can you test it manually before doing a new release? Something like
The "output" should be something like
Obviously with real files and DLLs |
since it's broken right now it's much easier for me to just merge and release. You can test it in about 10min |
OK |
and thanks for your help! |
still doesnt work! BUT I dont believe that this is the reason. |
so what do we do? we can just try it? |
I have copied the output that is printed when i use yeah the only thing we can try is to insert additional line feeds |
can insert Environment.NewLine? |
will try |
sigh still the same. I will have to have a very close look what |
should I revert to a specific commit? |
well basically back to 4.36 I'd say. Or you leave it on 4.37 as in 4.36 the same bug is present. so this should in theory be closer to a solution. |
Ok so I will just wait and hope you will find a way. Thanks for taking care On Aug 9, 2016 15:36, "robertj" notifications@github.com wrote:
|
So is this still a problem? |
Description
The
FscHelper.compile
function requires assembly references. Explicitly specifying the arguments usingFscHelper.compileFiles
fixes the problem.This is the code I used within my FAKE script to dynamically compile a set of F# files:
When this code is executed, the following error occurs:
At first I thought it had something to do with relative paths, but then I tried using
FscHelper.compileFiles
:Funnily enough, this works! I then noted that the order of the parameters was different, so I changed my original version to re-order the parameters:
Unfortunately, this also leads to the same error as before. If I remove all but one reference, things work again:
This time, I get a compile error that is due to the missing DLL references, but I do not get the parse error.
Repro steps
Please provide the steps required to reproduce the problem
Checkout this repro.
Run the
build.cmd
orbuild.sh
command to see the build fail.Comment out the invalid
FscHelper.compile
code and uncomment theFscHelper.compileFiles
code.Run the
build.cmd
orbuild.sh
command to see the build succeed.Expected behavior
The
FscHelper.compile
function should correctly handle multiple references.Actual behavior
Compilation fails when using multiple references in the
FscHelper.compile
function.Known workarounds
Use
FscHelper.compileFiles
.Related information
The text was updated successfully, but these errors were encountered: