microsoft / FHIR-Converter

Conversion utility to translate legacy data formats into FHIR
MIT License
414 stars 180 forks source link

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

Open IDispose opened 1 year ago

IDispose commented 1 year ago

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 commented 1 year ago

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