FSharp.Data icon indicating copy to clipboard operation
FSharp.Data copied to clipboard

XmlProvider: Error reading MS Office Custom UI Schema

Open roboz0r opened this issue 4 years ago • 1 comments

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?

roboz0r avatar Dec 28 '21 22:12 roboz0r

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

giacomociti avatar Feb 06 '22 15:02 giacomociti