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
My 2 cents:
I think it's better to use the roslyn model of CPS, as I already commented my original suggestion to use CPS in #913 and #804. It will be trend or "roadmap" in the managed programming language space in Visual Studio, because it's used for the roslyn's project system in VS "15" and I believe managed C++ and native C++ will follow.
As far as I know, this CPS is somehow incompatible with MPF/SPS model, and I hope Microsoft will provide clear roadmap on this.
Also using CPS might have impact on existing F# tooling, including current F# project system.
It's still very early on the project system side, but we've done a little bit of investigation on the CPS to side (which is not open source) to figure out what it would take to support F#. Explicit file ordering isn't yet supported, but we believe we could add the right extension points to enable it. However, I think the most important thing to focus on, is the move to the Roslyn workspace model (#913) - this would mean that the majority of the shared layer between C# and VB could be just reused for F#.
Are there are requirements that F# has that above and beyond language service/file ordering? It would be great to identify those early.
@davkean I think that's the only real extra feature. The ordering can interact with folder support so you have to be a bit careful there (Visual F# Power Tools does a pretty good job of this).
Various project system features can require the results of code analysis (e.g. features that inject or adjust code, like the WinForms or WPF designers) - for F# these might indeed come from the Roslyn workspace implementation (basically implemented on top of FSharp.Compiler.Service results).
Open sourcing this work would of course be awesome.
I guess @isaacabraham's question is to know if parts of Roslyn workspace will be reusable for other editors or if those will be tightly coupled to Visual Studio?
Is Roslyn workspace actually something which can live outside Visual Studio?
Are there longer term plans in terms of evolution on top of FCS and how it is integrated with Roslyn workspace (I assume indexing of symbols / locations in a language agnostic way)?
Basically as far as I can see the story is very simple: implementing Roslyn Workspaces is necessary to put the Visual F# Tools on the same modern engineering path as the rest of the Managed Languages Team. It also seems like it will be very useful precursor to modernizing the Visual F# Tools project system too.
So that's why the Visual F# Tools team are doing it, and that's the full explanation.
Whether the F# Roslyn Workspaces implementation then gets a useful life outside of that context is TBD - there's no master plan beyond the above. Certainly it won't hurt to have the implementation around at high quality and it will almost certainly be useful in some form. But let's get to square 1 first.
Reacted by Isaac Abraham, Gauthier Segay, Bikal Gurung and Tomasz Maczyński
@eriawan@cartermp We should scrap the Wiki pages - no one ever keeps GitHub Wiki pages up-to-date in any project I've seen (partly because the community can't pull-request to do that)
Reacted by Vasily Kirichenko, Phillip Carter and Petr Onderka
@dsyme i find wiki really useful for projects. but:
not as dupe of technical docs inside repository
as a whiteboard! because page are not for long term docs (there are better place). A roadmap/status page can be update as much as we want. or a VS 2017.0 page with workaround/know bugs (a bug can be resolved, so closed, but exists for consumers, handy know list of big one, what expect).
to add docs aligned with other projects
to communicate current status (workaround, links) because
best if workaround are linked with bug issues
to give a quick showcase of project (images, etc), or link to better intro
how to install from ci for example
FAQ
to add info about team and people external to team (hard to know who call, i love my contacts list )
(partly because the community can't pull-request to do that)
Well, it's write enabled for everyone. so just click edit.
PR give more confidence to send contribution, because ppl (me too) are scared to directly edit someone else work.
But state on wiki "IT'S OK" help, and tell usual contributors to do so (the one who will probably edit that) too.
@dsyme@cartermp that said, wiki alone doesnt help to show current work to be done, roadmap etc (that's hard to know in vf# repo).
There is roadmap issue, but github issue are lots in comments and always stale (because just the author or admin can update it).
msdn blogs has the same problem. msdn api docs neither. .net core has docs, but is different audience.
So @cartermp@KevinRansom maybe now that vs is rtm'ed, can we improve that communication stuff a bit?
A wiki page with short/long roadmap linked to sigle issues help a lot. we can help maintain that.
Or use github project/roadmaps too but that not help a lot, because it become a bit container soon, not showing future work, if not really really used (afaik you do your prioritization/todo list internally)
Part of the issue with using the Wiki is that our roadmap has been changing quite rapidly recently. Things we may have initially been on the hook for implementing may shift to other teams, or something else which is a higher priority comes up (e.g., setup authoring for VS, which basically sucks the air out of the room due to the amount of work involved). I prefer a model of fairly regular announcements about what we're working on and what our priorities are, because remembering to update a wiki is a bit more difficult, and it's also harder to spread the message that way. Communicating engineering status is also a bit less useful via the wikis as well - a tracking Issue is more effective there.
@isaacabraham No external tools use the project system. So I would assume not at all, however, if external tooling for C# starts to use the project system directly then F# tooling could follow suit.
@KevinRansom since the host agnostic layers of CPS are netcore compatible I already plan on using the roslyn-project-system for xplat F# tooling regardless of whether C# does or not. The inability to effectively manage project configuration state is currently a big shortcoming of the non VS/monodevelop F# editor tools.
@davkean i thought the Microsoft.VisualStudio.ProjectSystem, Microsoft.VisualStudio.ThreadingMicrosoft.VisualStudio.Validation, the Microsoft.VisualStudio.Composition.Configuration, Microsoft.VisualStudio.Composition dlls were host agnostic.
maybe I got some of the nomenclature wrong, it's hard to keep track of all of these APIs
I started working on a prototype splitting the layers using the roslyn-project-system as reference, but the lack of netcore support is disappointing. Xplat (w/ mono) is an unfortunate caveat
@davkean Then CPS was wrong term, I was trying to do a core project system implementation that could work as a part of a language server to provide F# tooling to a variety of editors. And then the connection to all of the VS layer APIs would be in a layer built on top of that. That way all of the F# tooling could leverage the same system.
But if you think that's not feasible I'll have to upgrade the bespoke system I wrote before so I can integrate it with F# roslyn workspace I wrote. It's been hard to figure this stuff out since the docs are sparse to non existent for all of this stuff.
Given the current state - I don't see as feasible. Some of the dlls you need (ie the actual implementation of Microosft.VisualStudio.ProjectSystem), only ship as a part of Visual Studio. We want to get it to where people can do exactly what you are trying to do - but we're >1 year away from that.
Activity
eriawan commentedon May 16, 2016
@forki
My 2 cents:
I think it's better to use the roslyn model of CPS, as I already commented my original suggestion to use CPS in #913 and #804. It will be trend or "roadmap" in the managed programming language space in Visual Studio, because it's used for the roslyn's project system in VS "15" and I believe managed C++ and native C++ will follow.
As far as I know, this CPS is somehow incompatible with MPF/SPS model, and I hope Microsoft will provide clear roadmap on this.
Also using CPS might have impact on existing F# tooling, including current F# project system.
davkean commentedon May 16, 2016
It's still very early on the project system side, but we've done a little bit of investigation on the CPS to side (which is not open source) to figure out what it would take to support F#. Explicit file ordering isn't yet supported, but we believe we could add the right extension points to enable it. However, I think the most important thing to focus on, is the move to the Roslyn workspace model (#913) - this would mean that the majority of the shared layer between C# and VB could be just reused for F#.
Are there are requirements that F# has that above and beyond language service/file ordering? It would be great to identify those early.
dsyme commentedon May 16, 2016
@davkean I think that's the only real extra feature. The ordering can interact with folder support so you have to be a bit careful there (Visual F# Power Tools does a pretty good job of this).
Various project system features can require the results of code analysis (e.g. features that inject or adjust code, like the WinForms or WPF designers) - for F# these might indeed come from the Roslyn workspace implementation (basically implemented on top of FSharp.Compiler.Service results).
Open sourcing this work would of course be awesome.
davkean commentedon May 16, 2016
To clarify, while CPS (Common Project System) isn't open source, the C#/VB layer on top is: http://github.com/dotnet/roslyn-project-system. Any F# implementation, I imagine, would naturally be open source.
KevinRansom commentedon May 16, 2016
FSharp will likely move to CPS for it's project System. We don't yet have a schedule for it's implementation but we are confident it will happen.
isaacabraham commentedon May 16, 2016
@KevinRansom silly question maybe, but how will this affect other (non-VS) tooling?
dsyme commentedon May 18, 2016
@isaacabraham How do you mean? Like Emacs, VSCode, Atom etc? Or VFPT?
isaacabraham commentedon May 18, 2016
The former.
smoothdeveloper commentedon May 18, 2016
I guess @isaacabraham's question is to know if parts of Roslyn workspace will be reusable for other editors or if those will be tightly coupled to Visual Studio?
Is Roslyn workspace actually something which can live outside Visual Studio?
Are there longer term plans in terms of evolution on top of FCS and how it is integrated with Roslyn workspace (I assume indexing of symbols / locations in a language agnostic way)?
dsyme commentedon May 18, 2016
@smoothdeveloper @isaacabraham I don't think any of this has been decided.
Basically as far as I can see the story is very simple: implementing Roslyn Workspaces is necessary to put the Visual F# Tools on the same modern engineering path as the rest of the Managed Languages Team. It also seems like it will be very useful precursor to modernizing the Visual F# Tools project system too.
So that's why the Visual F# Tools team are doing it, and that's the full explanation.
Whether the F# Roslyn Workspaces implementation then gets a useful life outside of that context is TBD - there's no master plan beyond the above. Certainly it won't hurt to have the implementation around at high quality and it will almost certainly be useful in some form. But let's get to square 1 first.
isaacabraham commentedon May 18, 2016
@dsyme my main point was that we don't make decisions on the project system / format that couples us to reliance on VS-specific tooling.
dsyme commentedon May 18, 2016
@isaacabraham In terms of formats I don't think there's any danger of that.
isaacabraham commentedon May 18, 2016
Great - then I have no concerns :-)
smoothdeveloper commentedon May 18, 2016
I've heard there are plans at MS to introduce upcoming
project.fsxacross whole dotnet eco-system 😄19 remaining items
eriawan commentedon Mar 8, 2017
@cartermp
imho we need to update that Wiki page of https://github.com/Microsoft/visualfsharp/wiki/F%23-for-CoreCLR---Status to reflect the latest status after yesterday's VS 2017 RTM launch.
It is quite confusing to follow the current status, because afaik the rest of the managed language teams are focusing on *.csproj, *.fsproj (the old MSBUILD with the simplified proj model) instead of JSON project format.
CMIIW
dsyme commentedon Mar 8, 2017
@eriawan @cartermp We should scrap the Wiki pages - no one ever keeps GitHub Wiki pages up-to-date in any project I've seen (partly because the community can't pull-request to do that)
enricosada commentedon Mar 9, 2017
@dsyme i find wiki really useful for projects. but:
Well, it's write enabled for everyone. so just click edit.
PR give more confidence to send contribution, because ppl (me too) are scared to directly edit someone else work.
But state on wiki "IT'S OK" help, and tell usual contributors to do so (the one who will probably edit that) too.
@dsyme @cartermp that said, wiki alone doesnt help to show current work to be done, roadmap etc (that's hard to know in vf# repo).
There is roadmap issue, but github issue are lots in comments and always stale (because just the author or admin can update it).
msdn blogs has the same problem. msdn api docs neither. .net core has docs, but is different audience.
So @cartermp @KevinRansom maybe now that vs is rtm'ed, can we improve that communication stuff a bit?
A wiki page with short/long roadmap linked to sigle issues help a lot. we can help maintain that.
Or use github project/roadmaps too but that not help a lot, because it become a bit container soon, not showing future work, if not really really used (afaik you do your prioritization/todo list internally)
cartermp commentedon Mar 9, 2017
Part of the issue with using the Wiki is that our roadmap has been changing quite rapidly recently. Things we may have initially been on the hook for implementing may shift to other teams, or something else which is a higher priority comes up (e.g., setup authoring for VS, which basically sucks the air out of the room due to the amount of work involved). I prefer a model of fairly regular announcements about what we're working on and what our priorities are, because remembering to update a wiki is a bit more difficult, and it's also harder to spread the message that way. Communicating engineering status is also a bit less useful via the wikis as well - a tracking Issue is more effective there.
KevinRansom commentedon Mar 9, 2017
@isaacabraham No external tools use the project system. So I would assume not at all, however, if external tooling for C# starts to use the project system directly then F# tooling could follow suit.
cloudRoutine commentedon Mar 9, 2017
@KevinRansom since the host agnostic layers of CPS are netcore compatible I already plan on using the roslyn-project-system for xplat F# tooling regardless of whether C# does or not. The inability to effectively manage project configuration state is currently a big shortcoming of the non VS/monodevelop F# editor tools.
davkean commentedon Mar 9, 2017
@cloudRoutine You need to separate http://github.com/dotnet/roslyn-project-system from CPS. The former is the C#/VB extensions on top of CPS. CPS itself is not (yet) usable outside of Visual Studio.
cloudRoutine commentedon Mar 9, 2017
@davkean i thought the
Microsoft.VisualStudio.ProjectSystem,Microsoft.VisualStudio.ThreadingMicrosoft.VisualStudio.Validation, theMicrosoft.VisualStudio.Composition.Configuration,Microsoft.VisualStudio.Compositiondlls were host agnostic.maybe I got some of the nomenclature wrong, it's hard to keep track of all of these APIs
I started working on a prototype splitting the layers using the roslyn-project-system as reference, but the lack of netcore support is disappointing. Xplat (w/ mono) is an unfortunate caveat
davkean commentedon Mar 9, 2017
CPS is made up of more than those dlls. Microsoft.VisualStudio.ProjectSystem is only a reference dll containing interfaces and helper classes.
cloudRoutine commentedon Mar 9, 2017
@davkean Then CPS was wrong term, I was trying to do a core project system implementation that could work as a part of a language server to provide F# tooling to a variety of editors. And then the connection to all of the VS layer APIs would be in a layer built on top of that. That way all of the F# tooling could leverage the same system.
But if you think that's not feasible I'll have to upgrade the bespoke system I wrote before so I can integrate it with F# roslyn workspace I wrote. It's been hard to figure this stuff out since the docs are sparse to non existent for all of this stuff.
davkean commentedon Mar 9, 2017
Given the current state - I don't see as feasible. Some of the dlls you need (ie the actual implementation of Microosft.VisualStudio.ProjectSystem), only ship as a part of Visual Studio. We want to get it to where people can do exactly what you are trying to do - but we're >1 year away from that.
cloudRoutine commentedon Mar 9, 2017
cool thanks, focusing on only using the
Microsoft.CodeAnalysisdlls that are netcore compatible makes this a lot simpler.KevinRansom commentedon Mar 10, 2017
You might want to hook up with @DustinCampbell I think he may have some ideas about using workspaces in other editors from his vscode work.
cartermp commentedon Aug 5, 2017
Closing old discussion; the VS project system which loads .NET SDK-based projects is implemented and supports F#.