You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PlantUml.Net failed to resolve Java executable path.
It occurred when running PlantUml.Net with RenderingMode = RenderingMode.Local.
It's seems to be caused because EnvironmentJavaLocator::GetJavaInstallationPath methods assuming executable name as java.exe.
(On non-Windows environment. It need to specify without .exe extension)
Additionally, when specifying java executable path with JavaPath settings explicitly.
Process hanged at LocalPlantUmlRenderer::RenderAsync method on Ubuntu OS.
Code to reproduce problems
internalclassProgram{staticasyncTaskMain(string[]args){varfactory=newRendererFactory();varrenderer=factory.CreateRenderer(newPlantUmlSettings{JavaPath="/usr/bin/java",ErrorReportMode=ErrorReportMode.Verbose,RenderingMode=RenderingMode.Local,});varbytes=awaitrenderer.RenderAsync("Bob -> Alice : Hello",OutputFormat.Png);File.WriteAllBytes("out.png",bytes);}}
On Ubuntu environment.
PlantUml.Net
failed to resolve Java executable path.It occurred when running
PlantUml.Net
withRenderingMode = RenderingMode.Local
.It's seems to be caused because EnvironmentJavaLocator::GetJavaInstallationPath methods assuming executable name as
java.exe
.(On non-Windows environment. It need to specify without
.exe
extension)Additionally, when specifying java executable path with
JavaPath
settings explicitly.Process hanged at
LocalPlantUmlRenderer::RenderAsync
method on Ubuntu OS.Code to reproduce problems
See: dotnet/docfx#10435
The text was updated successfully, but these errors were encountered: