Closed isaacabraham closed 8 years ago
@isaacabraham I just built master on my machine (sync + delete "Proto" and "Release" and "Debug" + "packages" + build), but it's possible I still have something cached. Could you try again please?
Re download size - I see 70MB under "packages" and 180MB under "Tools". There's also a related discussion here: https://github.com/Microsoft/visualfsharp/pull/1053#issuecomment-207890208.
Just done a pull. Ran build.cmd in admin console: -
Build FAILED.
"C:\Users\Isaac\Source\Repos\visualfsharp\build-everything.proj" (default target) (1) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\fsharp-vsintegration-src-build.proj" (Build target) (5) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.Editor\FSharp.Editor.fsproj" (Build target) (11) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.LanguageService.Base\FSharp.LanguageService.Base.csproj" (default target) (14) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.VS.FSI\FSharp.VS.FSI.fsproj" (default target) (15) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\src\fsharp\FSharp.Compiler\FSharp.Compiler.fsproj" (default target) (21) ->
(ResolveAssemblyReferences target) ->
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.DiaSymReader". Check to make sure the assembly exists on disk. If this reference is required by your code, yo
u may get compilation errors. [C:\Users\Isaac\Source\Repos\visualfsharp\src\fsharp\FSharp.Compiler\FSharp.Compiler.fsproj]
"C:\Users\Isaac\Source\Repos\visualfsharp\build-everything.proj" (default target) (1) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\fsharp-vsintegration-src-build.proj" (Build target) (5) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.Editor\FSharp.Editor.fsproj" (Build target) (11) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\src\fsharp\FSharp.LanguageService.Compiler\FSharp.LanguageService.Compiler.fsproj" (default target) (33) ->
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.DiaSymReader". Check to make sure the assembly exists on disk. If this reference is required by your code, yo
u may get compilation errors. [C:\Users\Isaac\Source\Repos\visualfsharp\src\fsharp\FSharp.LanguageService.Compiler\FSharp.LanguageService.Compiler.fsproj]
"C:\Users\Isaac\Source\Repos\visualfsharp\build-everything.proj" (default target) (1) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\fsharp-vsintegration-deployment-build.proj" (Build target) (9) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\deployment\EnableOpenSource\EnableOpenSource.csproj" (Build target) (23) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp\ProjectSystem.fsproj" (default target) (39) ->
(BeforeBuild target) ->
C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp\ProjectSystem.fsproj(146,5): error MSB3073: The command ""C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe" /fo obj\release\net40\ProjectResources.rc.res ProjectResources.rc" exited with code 9009.
"C:\Users\Isaac\Source\Repos\visualfsharp\build-everything.proj" (default target) (1) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\fsharp-vsintegration-src-build.proj" (Build target) (5) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.Editor\FSharp.Editor.fsproj" (Build target) (11) ->
"C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.LanguageService\FSharp.LanguageService.fsproj" (default target) (13) ->
(CoreCompile target) ->
FSC : error FS1225: File 'C:\Users\Isaac\Source\Repos\visualfsharp\release\net40\bin\FSharp.LanguageService.Compiler.optdata' not found alongside FSharp.Core [C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.LanguageService\FSharp.LanguageService.fsproj]
FSC : error FS0229: Error opening binary file 'C:\Users\Isaac\Source\Repos\visualfsharp\release\net40\bin\FSharp.LanguageService.Compiler.dll': File 'C:\Users\Isaac\Source\Repos\visualfsharp\release\net40\bin\FSharp.LanguageService.Compiler.optdata' not found alongside FSharp.Core [C:\User
s\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.LanguageService\FSharp.LanguageService.fsproj]
FSC : error FS3160: Problem reading assembly 'FSharp.LanguageService.Compiler, Version=14.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a': Error opening binary file 'C:\Users\Isaac\Source\Repos\visualfsharp\release\net40\bin\FSharp.LanguageService.Compiler.dll': File 'C:\Users\Isa
ac\Source\Repos\visualfsharp\release\net40\bin\FSharp.LanguageService.Compiler.optdata' not found alongside FSharp.Core [C:\Users\Isaac\Source\Repos\visualfsharp\vsintegration\src\FSharp.LanguageService\FSharp.LanguageService.fsproj]
2 Warning(s)
4 Error(s)
Ugh. Maybe I have the DiaSymReader package cached.
I see the package being download during build.
@isaacabraham please try the following: run git clean -xdf
. make sure your nuget cache is empty (run paket clear-cache
to force that). check in the very beginning of the build if nuget is retrieving the package
i fixed the harmless warnings with #1124 but the errors (optdata) dunno, locally works for me.
pls @isaacabraham can you try latest master?
the "Eventually the window closed" is strange
@enricosada I have just pulled down latest master and have the same error as @isaacabraham
The command ""C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe" /fo obj\lease\net40\ProjectResources.rc.res ProjectResources.rc" exited with code 9009
I'll try to figure out what is happening, let me know if there's anything you think I should check.
Wait a minute, I've not got the Windows SDK installed. I'll let you know if that fixes it (pretty sure it will, as it's a prereq)
Update: Yes, all sorted now :smile:
I just pulled master and also got the ... FSharp.LanguageService.Compiler.optdata' not found alongside FSharp.Core
build error from build.cmd
. I worked around it by manually copying those .optdata and .sigdata files from src\fsharp\FSharp.LanguageService.Compiler\obj\release\net40
to release\net40\bin
.
I didn't have any errors related to Microsoft.DiaSymReader
package.
@taylorwood Were you cloning clean, or had you built previously? If the latter then you may need to rebuild proto
@dsyme it was a first-time clone, hadn't built before.
@taylorwood Any chance you have a full build log for that? It feels like either the LKG is out of date, or your installed F# compiler is being used instead of the LKG or Proto.
@taylorwood In particular I'd like to know which fsc.exe
or fsc-proto.exe
is being invoked when you get that failure. Any compiler freshly built from the source code in the repo should work ok. (We removed a hardwired hack in the compiler which means that you need to use a freshly-built compiler when compiling anything that references the internal FSharp.Compiler.LanguageService.dll. But since that component is internal that should not be a problem)
@dsyme I think this might be the path you're interested in ..\..\..\src\..\Proto\net40\bin\fsc-proto.exe
. Full log: build.txt
Could you send me a log of
build proto
please? I don't understand why the proto compiler wasn't built fresh (if this was a clean clone)
@dsyme I ran build
again after build proto
and it worked.
Could you do a totally clean clone again and show me the log of your first build
(without doing a build proto
) please?
In that scenario, the intent is that build
does indeed build the proto if it doesn't exist, but it seems that may not be happening.
Thanks don
@dsyme it just built successfully with a fresh clone. I must've fudged something when I was building before, but maybe this issue can be closed now. Fresh build log anyway: build.txt
I have the same issue build proto solved it but now the error is that FSharp.ProjectSystem.FSharp.pkgdef not created with the latest source
I believe this is fixed
Repro steps
Expected behavior
The solution should build?
Actual behavior
Got a load of errors: -
I imagine I'm doing something wrong but don't know what.