Skip to content

Extended completion should contain extension and static members #3948

Closed

Description

@vasily-kirichenko
No description provided.

Activity

  1. ingted commented on Nov 16, 2017

    @ingted
    Contributor

    1>Z:\GoogleDrive_anighost\FsPickler\src\FsPickler\Combinators\Tuple.fs(338,40): error FS0039: The field, constructor or member 'Item2' is not defined.
    1>Z:\GoogleDrive_anighost\FsPickler\src\FsPickler\Combinators\Tuple.fs(339,40): error FS0039: The field, constructor or member 'Item3' is not defined.
    1>Z:\GoogleDrive_anighost\FsPickler\src\FsPickler\Combinators\Tuple.fs(340,40): error FS0039: The field, constructor or member 'Item4' is not defined.
    1>Z:\GoogleDrive_anighost\FsPickler\src\FsPickler\Combinators\Tuple.fs(341,40): error FS0039: The field, constructor or member 'Item5' is not defined.
    1>Z:\GoogleDrive_anighost\FsPickler\src\FsPickler\Combinators\Tuple.fs(342,40): error FS0039: The field, constructor or member 'Item6' is not defined.
    1>Z:\GoogleDrive_anighost\FsPickler\src\FsPickler\Combinators\Tuple.fs(343,40): error FS0039: The field, constructor or member 'Item7' is not defined.
    1>Z:\GoogleDrive_anighost\FsPickler\src\FsPickler\Combinators\Tuple.fs(344,42): error FS0039: The field, constructor or member 'Rest' is not defined.

  2. ingted commented on Nov 16, 2017

    @ingted
    Contributor

    System.Tuple variable could not just directly get each item by .Item.
    It requires "variable.ToValueTuple().ItemX" to get item

  3. ingted commented on Nov 16, 2017

    @ingted
    Contributor

    And got a lot of errors when compiling projects:
    Error FS0756 'new' may only be used with named types

  4. vasily-kirichenko commented on Nov 16, 2017

    @vasily-kirichenko
    ContributorAuthor

    @ingted wrong issue?...

  5. ingted commented on Nov 16, 2017

    @ingted
    Contributor

    I think it is. Because my projects with extension method invocation are failed to build after upgrading to VS 15.4.

  6. ingted commented on Nov 16, 2017

    @ingted
    Contributor

    VS is unable to recognize extension method's return values...

  7. vasily-kirichenko commented on Nov 16, 2017

    @vasily-kirichenko
    ContributorAuthor

    @ingted how these problems are related to this issue?

  8. ingted commented on Nov 16, 2017

    @ingted
    Contributor

    When I use Visual FSharp project, extension method doesn't work with intelligence...
    If this is not related, I will delete my comments.

  9. vasily-kirichenko commented on Nov 16, 2017

    @vasily-kirichenko
    ContributorAuthor

    Could you provide a minimal repro?

  10. ingted commented on Nov 16, 2017

    @ingted
    Contributor
  11. cartermp commented on Nov 16, 2017

    @cartermp
    Contributor

    @ingted The issue you're referring to isn't related to this issue. #3729 is the demonstration of breaking .ItemX properties from System.Tuples coming directly from F# code. In this case, you should change your code to use F# tuple syntax rather than the .ItemX properties:

    let (a, b) = Tuple.Create(1, 2)
    let tup = Tuple.Create(1, "hello")
    let (num, name) = tup
  12. ingted commented on Nov 17, 2017

    @ingted
    Contributor

    Thanks so much, should I delete the previous comments (sorry about that I didn't google the correct post)?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions