-
Notifications
You must be signed in to change notification settings - Fork 587
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
Build error locally #992
Comments
I've just had this fail for me too. In my case, I believe it is caused by there being a space in my username. The test in question uses |
@bentayloruk, you might be on something. I didn't do any further investigation, but I do have a space in my username. |
I'm hacking on a fix at the moment. Will keep you posted. |
Tests invoking csc.exe were failing when GetTempPath paths contained a space. Updated csc invocation to quote references, output path and input file paths.
OK, now works for me. If you want to try it out, this branch is the latest from upstream, plus this fix. This is the fix commit bentayloruk@7da8996 I've just hacked this in and have not reviewed it. Retiring for the evening, but will submit a PR tomorrow. I had to fix this, so I could submit a different PR I want for something else :-) |
Given that |
@mastoj are you able to run all the MSpec tests in Visual Studio?
|
I can try to get some time today or tomorrow to test it out.
|
@mastoj thanks. Would be good to know my setup is borked, I've missed a step, or whether the MSpec test failures are also due to username space issues too. Just want to know if you are able to run all the MSpec tests from within Visual Studio. |
FYI on my machine VS isn't compiling fake as well. Only build.cmd works.
|
@forki good to know, thanks! FAKE is compiling fine for me in VS, I just have 254 failed tests (with 412 passing). Is that what you have or are you not even actually compiling? |
For me it's not even compiling in VS. But compile + tests run fine in build. Just send your PRs and we see if
|
Thanks, will do. I was just hoping to debug through one of them in VS :-) |
Yeah I think the project files broke on VS update. Maybe they should look
|
Tests invoking csc.exe were failing when paths contained a space. Updated csc invocation to ensure quote references, output path and input file paths when a space is detected and not already quoted.
Don't think anyone would intentionally pad a path and doubt Csc would care if they did, so trim paths. This change avoids us quoting a path that is quoted, but with whitespace at one end, the other or both.
Now I get the same result as you @bentayloruk, it builds fine in VS but the mspec tests doesn't run. |
@mastoj I have the MSpec tests running, using the R# test runner. I installed the MSpec runner for R# and then had to turn off Shadow-copy assemblies being tested in the R# Options (Tools -> Unit Testing). |
is there a way to add the R# settings to the repo? 2016-01-16 23:00 GMT+01:00 Ben Taylor [email protected]:
|
FAKE tests that depend on files can't be run when R# is set to shadow copy assemblies being tested. This file switches this off for all R# users that have the shared sln settings enabled. Requested by @forki in fsprojects#992. NOTE: This means you can't build the sln, while your tests are running.
The R# sln file should fix things for a lot of people using the R# runner. However, us idiots with spaces in our usernames, will still need PR #1076 to fix this issue. |
Fix #992 test failure when space in temp path.
Just cloned the master repo on Windows and ran
build.cmd
. The build fails with the following exception:It says on github that it passes, so it is a little bit weird that it doesn't when I run it locally.
The text was updated successfully, but these errors were encountered: