Skip to content

Future F# project system #1193

Closed
Closed

Description

@forki

Since project.json is off the table and https://github.com/dotnet/roslyn-project-system is the new rising star, I wonder what the plans for F# are. The new project system only talks about C# and VB. How can F# fit into the picture given that this language has a bit different requirements?

/cc @davkean @enricosada @KevinRansom @isaacabraham @dsyme

Activity

  1. eriawan commented on May 16, 2016

    @eriawan
    Member

    @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.

  2. davkean commented on May 16, 2016

    @davkean
    Member

    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.

  3. dsyme commented on May 16, 2016

    @dsyme
    Contributor

    @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.

  4. davkean commented on May 16, 2016

    @davkean
    Member

    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.

  5. KevinRansom commented on May 16, 2016

    @KevinRansom
    Contributor

    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.

  6. isaacabraham commented on May 16, 2016

    @isaacabraham
    Contributor

    @KevinRansom silly question maybe, but how will this affect other (non-VS) tooling?

  7. dsyme commented on May 18, 2016

    @dsyme
    Contributor

    @isaacabraham How do you mean? Like Emacs, VSCode, Atom etc? Or VFPT?

  8. isaacabraham commented on May 18, 2016

    @isaacabraham
    Contributor

    The former.

  9. smoothdeveloper commented on May 18, 2016

    @smoothdeveloper
    Contributor

    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)?

  10. dsyme commented on May 18, 2016

    @dsyme
    Contributor

    @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.

  11. isaacabraham commented on May 18, 2016

    @isaacabraham
    Contributor

    @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.

  12. dsyme commented on May 18, 2016

    @dsyme
    Contributor

    @isaacabraham In terms of formats I don't think there's any danger of that.

  13. isaacabraham commented on May 18, 2016

    @isaacabraham
    Contributor

    Great - then I have no concerns :-)

  14. smoothdeveloper commented on May 18, 2016

    @smoothdeveloper
    Contributor

    I've heard there are plans at MS to introduce upcoming project.fsx across whole dotnet eco-system 😄

  15. 19 remaining items

  16. eriawan commented on Mar 8, 2017

    @eriawan
    Member

    @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

  17. dsyme commented on Mar 8, 2017

    @dsyme
    Contributor

    @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)

  18. enricosada commented on Mar 9, 2017

    @enricosada
    Contributor

    @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)

  19. cartermp commented on Mar 9, 2017

    @cartermp
    Contributor

    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.

  20. KevinRansom commented on Mar 9, 2017

    @KevinRansom
    Contributor

    @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.

  21. cloudRoutine commented on Mar 9, 2017

    @cloudRoutine
    Contributor

    @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.

  22. davkean commented on Mar 9, 2017

    @davkean
    Member

    @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.

  23. cloudRoutine commented on Mar 9, 2017

    @cloudRoutine
    Contributor

    @davkean i thought the Microsoft.VisualStudio.ProjectSystem, Microsoft.VisualStudio.Threading Microsoft.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

  24. davkean commented on Mar 9, 2017

    @davkean
    Member

    CPS is made up of more than those dlls. Microsoft.VisualStudio.ProjectSystem is only a reference dll containing interfaces and helper classes.

  25. cloudRoutine commented on Mar 9, 2017

    @cloudRoutine
    Contributor

    @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.

  26. davkean commented on Mar 9, 2017

    @davkean
    Member

    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.

  27. cloudRoutine commented on Mar 9, 2017

    @cloudRoutine
    Contributor

    cool thanks, focusing on only using the Microsoft.CodeAnalysis dlls that are netcore compatible makes this a lot simpler.

  28. KevinRansom commented on Mar 10, 2017

    @KevinRansom
    Contributor

    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.

  29. cartermp commented on Aug 5, 2017

    @cartermp
    Contributor

    Closing old discussion; the VS project system which loads .NET SDK-based projects is implemented and supports F#.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions