-
Notifications
You must be signed in to change notification settings - Fork 785
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
Fix project file name ordering with diamond dependencies #1363
Conversation
The whole of |
1e0f30c
to
0d92803
Compare
WE have failing tests after this change:
|
The investigation of these failures is in the comments of fsharp/fsharp-compiler-docs#594. We obviously need to fix them before we can consider this a good fix. |
@@ -5042,7 +5045,7 @@ module private ScriptPreprocessClosure = | |||
/// Used from fsi.fs and fsc.fs, for #load and command line | |||
let GetFullClosureOfScriptFiles(tcConfig:TcConfig,files:(string*range) list,codeContext,_useDefaultScriptingReferences:bool,lexResourceManager:Lexhelp.LexResourceManager) = | |||
let mainFile = fst (List.head files) | |||
let protoClosure = files |> List.map (fun (filename,m)->SourceFileOfFilename(filename,m,tcConfig.inputCodePage)) |> List.concat |> List.rev // Reverse to put them in the order they will be extracted later | |||
let protoClosure = files |> List.map (fun (filename,m)->SourceFileOfFilename(filename,m,tcConfig.inputCodePage)) |> List.concat // Reverse to put them in the order they will be extracted later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As List.rev
is now gone, should the comment // Reverse to put them in the order they will be extracted later
be deleted too?
Now a different set of failure :(
|
@alfonsogarciacaro Reworking the fix now |
6c53c04
to
5fe0619
Compare
c0cb261
to
1b62cc8
Compare
Fixes this problem #1362 by propagating this fix from FSharp.Compiler.Service
This is an important fix for a case in transitive dependencies that seems to have been missed.