You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
15.3 preview 3: FCS does not respect file ordering defined in .NET Core project files #3260
Also I'm pretty sure all of the issues you've raised for 15.3 should be raised in https://github.com/dotnet/project-system, not here. The code doesn't even live in this repo.
UI treeview is a thing (minor priority for now, and moved to later, not for sure in 15.3 dotnet/project-system#1875 (comment)).
but this is build (ok vs build not msbuild), how to get fsc args should be the same.
@srivatsn@Pilchie as a note, why instead of parse back all the fsc arguments, the language service dont just read the FscCommandLineArgs msbuild items? is already the array splitted with fsc args.. works really well for FSAC in vscode/vim/emacs project parser.
So we dont care anymore about msbuild -> fsc task -> parse back somehow and maintain alignment
There is no way for new IProjectSite to ask roslyn workspaces for that msbuild item list? afaik FCS need just fsc args to initialize it (plus p2p refs, ok)
That msbuild item itself is not available at this layer, however that string (the entire command line) get passed to this method - right now, that method no-ops for F# since there's no CommandLineParser. However, we can implement a type that gets that and implements IProjectSite too..
However, we can implement a type that gets that and implements IProjectSite too
@srivatsn awesome, afaik (/cc @dsyme@KevinRansom), the F# compiler arguments api is the same of c#, so the string -> IEnumerable<string> splitter can be reused from c#
var splitArguments = CommandLineParser.SplitCommandLineIntoArguments(commandLine, removeHashComments: false);
the rest is pattern match on args..
but is not already implemented in dotnet/project-system#2206 by @brettfo as FSharpParseBuildOptions : IParseBuildOptions? so just missing is that it implements IProjectSite ? or an adapter?
The parser in the project system is basically just enough to understand what's a reference and source file versus what's not. This is so that it can track changes to references and source files individually and incrementally update the language service. If any of the options change, since that's rarer, it simply tells the LS to recreate a compilation. Ideally the Project system wouldn't ever parse and understand the command line and keep it as mostly a passthrough.
That type cannot implement IProjectSite as it's not exposed to the LS in anyway. The contract with the language service is IWorkspaceProjectContext
The reason we want to make sure files\references are added to the workspace and not just parsed into a IProjectSite in the SetOptions call is so that any Roslyn extension that works at the workspace level on documents will also work for F# - If we make everything in terms of IProjectSite then they'll have to know about IProjectSite as well.
Activity
rodrigovidal commentedon Jun 27, 2017
Same here
vasily-kirichenko commentedon Jun 27, 2017
I checked it on both .NET Core 1.0.4 and .NET Core 2.0 preview 2: the same behavior.
saul commentedon Jun 27, 2017
Absolutely no surprise. Nobody on the Roslyn project team side seemed to care that we didn't have file ordering.
saul commentedon Jun 27, 2017
Also I'm pretty sure all of the issues you've raised for 15.3 should be raised in https://github.com/dotnet/project-system, not here. The code doesn't even live in this repo.
enricosada commentedon Jun 27, 2017
@saul it is a surprise.
UI treeview is a thing (minor priority for now, and moved to later, not for sure in 15.3 dotnet/project-system#1875 (comment)).
but this is build (ok vs build not msbuild), how to get fsc args should be the same.
enricosada commentedon Jun 27, 2017
@vasily-kirichenko Roslyn (https://github.com/dotnet/roslyn) <> Roslyn project system (https://github.com/dotnet/roslyn-project-system).
Name is strange, but because is based on roslyn-workspaces and new CPS, but there is not a lot c# specific there.
collaborating with roslyn-ps, no issue at all. they fixed and refactored a lot for F#
cartermp commentedon Jun 27, 2017
@srivatsn Any idea where this comes from?
Is this the remaining issues with the argument parser?
cartermp commentedon Jun 27, 2017
@Pilchie Do you think this is related to your comment here? #3266 (comment)
Pilchie commentedon Jun 27, 2017
@cartermp - no that should be a VS editor thing only. Wouldn't effect build or the solution explorer.
BTW @enricosada and @vasily-kirichenko
dotnet/roslyn-project-systemwas already renamed to justdotnet/project-system.8 remaining items
dsyme commentedon Jun 27, 2017
I was wondering about the
#defines. Thanks for tracking thisFor completeness, some other options are relevant to on-the-fly type checking, notably these (after searching through
CompileOps.fs)--oThe output assembly name (for InternalsVisibleTo)--warn/nowarn/warnon/warnaserror--codepage(the input code page)--checked(indicates ifopen FSharp.Operators.Checkedis implied)--mlcompatibility(I think never used)Of these the output assembly name and the warnings are by far the most important
enricosada commentedon Jun 27, 2017
@srivatsn @Pilchie as a note, why instead of parse back all the fsc arguments, the language service dont just read the FscCommandLineArgs msbuild items? is already the array splitted with fsc args.. works really well for FSAC in vscode/vim/emacs project parser.
So we dont care anymore about msbuild -> fsc task -> parse back somehow and maintain alignment
There is no way for new
IProjectSiteto ask roslyn workspaces for that msbuild item list? afaik FCS need just fsc args to initialize it (plus p2p refs, ok)srivatsn commentedon Jun 27, 2017
That msbuild item itself is not available at this layer, however that string (the entire command line) get passed to this method - right now, that method no-ops for F# since there's no CommandLineParser. However, we can implement a type that gets that and implements IProjectSite too..
enricosada commentedon Jun 27, 2017
@srivatsn awesome, afaik (/cc @dsyme @KevinRansom), the F# compiler arguments api is the same of c#, so the
string -> IEnumerable<string>splitter can be reused from c#the rest is pattern match on args..
but is not already implemented in dotnet/project-system#2206 by @brettfo as
FSharpParseBuildOptions : IParseBuildOptions? so just missing is that it implements IProjectSite ? or an adapter?enricosada commentedon Jun 27, 2017
CommonCommandLineArguments.OutputFileName?
CommonCommandLineArguments.Encoding
CompilationOptions. CompilationOptions.Features ?
CompilationOptions. CompilationOptions.SpecificDiagnosticOptions
srivatsn commentedon Jun 27, 2017
The parser in the project system is basically just enough to understand what's a reference and source file versus what's not. This is so that it can track changes to references and source files individually and incrementally update the language service. If any of the options change, since that's rarer, it simply tells the LS to recreate a compilation. Ideally the Project system wouldn't ever parse and understand the command line and keep it as mostly a passthrough.
That type cannot implement IProjectSite as it's not exposed to the LS in anyway. The contract with the language service is IWorkspaceProjectContext
The reason we want to make sure files\references are added to the workspace and not just parsed into a IProjectSite in the SetOptions call is so that any Roslyn extension that works at the workspace level on documents will also work for F# - If we make everything in terms of IProjectSite then they'll have to know about IProjectSite as well.
enricosada commentedon Jun 27, 2017
thx for info @srivatsn , really appreciated
KevinRansom commentedon Sep 20, 2017
This is addressed by: #3564