Skip to content

Non-public properties in generated assembly break code completion #1111

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

Open
janno-p opened this issue Apr 25, 2016 · 0 comments
Open

Non-public properties in generated assembly break code completion #1111

janno-p opened this issue Apr 25, 2016 · 0 comments
Labels
Area-LangService-AutoComplete autocomplete/intellisense Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone

Comments

@janno-p
Copy link

janno-p commented Apr 25, 2016

I have type provider (generated types) which produces C# assembly. Generated assembly contains class IsikuStaatus with property BaseValue that has public getter and private setter. When accessing that class via Intellisense I get <Note> property with error message containing "Property 'BaseValue' on provided type 'IsikuStaatus' has CanWrite=true but there was no value from GetSetMethod()"

According to MSDN it seems that CanWrite returns false only when setter is not defined, while GetSetMethod() returns only public setter method.

Repro steps

  1. Use type provider which generates properties with non-public setters.
  2. Use Intellisense to navigate to some value of type containing that property.

Expected behavior

Should display read-only property in completion list.

Actual behavior

Displays <Note> property in completion list with message "Property '%s' on provided type '%s' has CanWrite=true but there was no value from GetSetMethod()"

Known workarounds

Ignore <Note> property message and use expected property as normal (won't display any error in editor or throw exception at runtime).

Related information

  • Windows 8.1 Enterprise
  • FSharp.Core v4.0_4.4.0.0
  • .NET Runtime 4.6.1
  • Visual Studio 2015, Tsunami
@dsyme dsyme added Bug Area-LangService-API Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code. labels Jul 18, 2016
@cartermp cartermp added this to the Unknown milestone Aug 25, 2018
@cartermp cartermp modified the milestones: Unknown / not bug, Backlog May 23, 2019
@dsyme dsyme added Area-LangService-AutoComplete autocomplete/intellisense and removed Area-LangService-API labels Apr 5, 2022
@vzarytovskii vzarytovskii moved this to Not Planned in F# Compiler and Tooling Jun 17, 2022
@vzarytovskii vzarytovskii reopened this Jan 5, 2024
@github-project-automation github-project-automation bot moved this from Done to In Progress in F# Compiler and Tooling Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-AutoComplete autocomplete/intellisense Bug Impact-Low (Internal MS Team use only) Describes an issue with limited impact on existing code.
Projects
Archived in project
Development

No branches or pull requests

5 participants