asciidoctor-intellij-plugin icon indicating copy to clipboard operation
asciidoctor-intellij-plugin copied to clipboard

Kroki rendering SVG instead of PNG on Mac

Open bodiam opened this issue 1 year ago • 1 comments

Observed vs. expected behavior

When I do a ./gradlew test, 3 tests are failing. One of the failing tests is testShouldRenderVega, where the expectation is: https://kroki.io/vega/png/eNqVV... , but the actual result is https://kroki.io/vega/eNqVV.... As you can see, the difference is the PNG part. I'm not familiar with how Kroki works, and how it's making the distinction between png and svg, but maybe the Mac needs some extra dependency? I couldn't find it in the developer guide.

Steps to reproduce

  1. Buy mac
  2. Run Gradle test

Alternatively, using a build matrix perhaps? (if you want, I might be able to copy our config from Datafaker)

Environment

Mac M2

bodiam avatar Feb 17 '24 02:02 bodiam

Thanks for reporting this issue. This is due to the following history:

I opened a PR #1546 were we can discuss possible remedies.

I doubt that this justifies running all tests also on M*-runners, as the "this works on Mac" is something that only shows nicely in the UI, which is not simply solved by a unit test. Let's first discuss in the PR how this can behave on Mac.

ahus1 avatar Feb 17 '24 10:02 ahus1