Comments (4)
If you truly want to remove these then there needs to be merges to the TP SDK, last I tried the changes were not acceptable, hence my fork. Essentially a breaking change was made rendering a public property internal. Since then I have added a more fully defined reflection implementation around custom attributes
from falanx.
I asked and the custom attribute reflection changes seem likely to be accepted, it still leaves the issue of an internal type being needed. I'll look at that after Ive done the custom attribute PR, it low priority for mw right now though.
from falanx.
Ive tried to consolidate as much as possible with the upstream repo here:
https://github.com/7sharp9/FSharp.TypeProviders.SDK/commit/d00e35d2030bf346aaa264bc8323aa88fd3980f0
https://github.com/7sharp9/FSharp.TypeProviders.SDK/commit/5dd0739e04416e53222e3a179038b99ad2611e86
Theres a discrepancy between the way we use providedtypes and the runtimes use of of RunTimeType, as such theres no way to PR our changes that allow ProvidedRecords to function as the RunTimeType of the attribute necessary by the reflection runtime to create the CustomAttribute.
We currently will hit this code:
https://github.com/fsprojects/FSharp.TypeProviders.SDK/blob/master/src/ProvidedTypes.fs#L7471
Due to all types used by the standard provided type code are being wrapped with ILMethodDef
and ILTypeDef
etc. This was done to allow cross assembly references to be easier to use. The problem we have is we don't use the standard type provider mechanism, we merely use it as a skeleton so our code never has the internal types inside the ProvidedTypeDefinition
wrapped with a non RunTimeType which means we can use Invoke as normal as we have simple RunTimeTypes.
from falanx.
This is being discussed here: fsprojects/FSharp.TypeProviders.SDK#291
eventually I hope...
from falanx.
Related Issues (20)
- Single nested enum fails due to no support in fleece HOT 11
- A proto file with a normal field follows by a oneOf results in incorrect generated code
- Missing oneOf property assignment in a message with more than one oneOf
- Recursively nested types fail HOT 7
- Mutual recursion is not supported HOT 1
- Enum with duplicate value produced code with duplicates
- Field ordering test produces out of ordered assignments in json HOT 1
- Running falanx on a proto file with a map in it fails with error HOT 2
- A proto message with primitive field then a map throws a not implemented exception HOT 1
- In a proto message a map followed by a primitive causes an exception HOT 1
- Poor error message HOT 2
- Enum in class is not working: lead.proto.fs(251, 13): [FS0001] No overloads match for method 'OfJson'. HOT 1
- update froto HOT 2
- Is there a way to import well known types?
- Generation fails when an Enum is inside of a oneof block HOT 1
- Move to FsProjects HOT 4
- It failed to build when there's a "bytes" field in the "oneof" HOT 1
- Parse fail for Mapbox vector_tile.proto HOT 1
- Quick question: does this use https://github.com/grpc/grpc-dotnet under the hood? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from falanx.