BAndysc / AvaloniaVisualBasic6

A recreation of the classic Visual Basic 6 IDE and language in C# with Avalonia
https://bandysc.github.io/AvaloniaVisualBasic6/
MIT License
871 stars 50 forks source link

Antlr4 build task requirements #2

Closed phillijw closed 1 day ago

phillijw commented 4 days ago
1>Antlr4BuildTasks.targets(138,9): Error ANT02 : Cannot find Java executable''   at Antlr4.Build.Tasks.RunAntlrTool.SetupJava()
   at Antlr4.Build.Tasks.RunAntlrTool.Execute()
1>Antlr4BuildTasks.targets(138,9): Error ANT02 : The Antlr4 tool failed.
1>Antlr4BuildTasks.targets(138,9): Error ANT02 : Cannot find Java executable''   at Antlr4.Build.Tasks.RunAntlrTool.SetupJava()
   at Antlr4.Build.Tasks.RunAntlrTool.Execute()
1>Antlr4BuildTasks.targets(138,9): Error ANT02 : The Antlr4 tool failed.

Might be good to have some basic instructions for dependencies required or else automatically install these dependencies using nuget?

phillijw commented 4 days ago

I do see there's meta/build_cloudflare.sh but even it doesn't suggest java is a requirement

BAndysc commented 4 days ago

What OS are you using? What IDE/command line did you use? Antlr4BuildTasks is able to download java runtime on its own and there should be nothing required other than dotnet run. I am afraid in this case it might be some Antlr4BuildTasks corner case.

phillijw commented 4 days ago

I'm on macos using jetbrains rider. I'll try some more things tomorrow via commandline

BAndysc commented 4 days ago

Looks like Antlr4BuildTasks doesn't support ARM macs: https://github.com/kaby76/Antlr4BuildTasks/blob/master/Antlr4BuildTasks/Tasks/RunAntlrTool.cs#L937-L946

I also use one, but apparently I have java installed. So I guess you have to install it manually as well. I will update the readme later.