fsprojects / FSharp.Data

F# Data: Library for Data Access
https://fsprojects.github.io/FSharp.Data
Other
814 stars 288 forks source link

XmlProvider: Error reading MS Office Custom UI Schema #1419

Open roboz0r opened 2 years ago

roboz0r commented 2 years ago

I have copied the schema from https://docs.microsoft.com/en-us/openspecs/office_standards/ms-customui/5f3e35d6-70d6-47ee-9e11-f5499559f93a into a file and used the following code to access:

[<Literal>]
let RibbonXSDPath = @"C:\Projects\Ribbon CustomUI.xsd"

type RibbonBuilder = XmlProvider<Schema = RibbonXSDPath>

An error is reported in a dialogue box:

dotnet.exe - System Error A new guard page for the stack cannot be created.

Not sure but I believe this is a stack overflow. Is this a bug or is there any workaround for this?

giacomociti commented 2 years ago

Likely a bug, maybe some circular definition not handled appropriately. I noticed that the issue disappears when commenting out line 1413

<!-- <xsd:group ref="EG_MenuControlsBase"/> -->

which probably is not a workaround since it removes a piece of the schema