Skip to content
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

How do I compile this code in VS for Mac (17.5.4) #465

Open
IDispose opened this issue Apr 17, 2023 · 1 comment
Open

How do I compile this code in VS for Mac (17.5.4) #465

IDispose opened this issue Apr 17, 2023 · 1 comment

Comments

@IDispose
Copy link

Cloned the repo and upgraded all nuget packages. However there's doesnt seem to be an option in VS 4 Mac to process OutputProcessors/json.g4 to regenerate the C# files. Recent changes to Antlr packages have changed the datatype leading to this error

FHIR-Converter/src/Microsoft.Health.Fhir.Liquid.Converter/OutputProcessors/AutoGenerated/jsonParser.cs(69,25,69,38): error CS1715: 'jsonParser.SerializedAtn': type must be 'int[]' to match overridden member 'Recognizer<IToken, ParserATNSimulator>.SerializedAtn'
FHIR-Converter/src/Microsoft.Health.Fhir.Liquid.Converter/OutputProcessors/AutoGenerated/jsonLexer.cs(88,25,88,38): error CS1715: 'jsonLexer.SerializedAtn': type must be 'int[]' to match overridden member 'Recognizer<int, LexerATNSimulator>.SerializedAtn'

Question: How do I regen the files to pick up the new data structure? There doesnt seem to be a tool that can regen the C# files. Tried suggestion from this https://stackoverflow.com/questions/64892272/how-to-compile-g4-to-cs with no luck.

@namalu
Copy link
Member

namalu commented May 2, 2023

@IDispose Can you please provide the steps to reproduce the errors you are seeing. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants