-
Notifications
You must be signed in to change notification settings - Fork 109
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
Can't get to run on windows #78
Comments
Seems like it isn't finding the bundled Asciidoctor Diagram jar file that provides the server. Could you show the output of the following command?
The tests do pass on Windows (see https://ci.appveyor.com/project/asciidoctor/asciidoctor-diagram). I wonder if this scenario is not covered, though. |
Maybe this is because of my not so standard setup? This is windows 10 + cygwin (current stable). Most things seem to work, though. |
Can't run this on cmd at this moment (did not install bats in %USERDIR%/bin, just bash). |
That could very well be the problem. Most issues with running Ruby programs tends to be that the OS doesn't setup the binstubs or PATH correctly. (One of Ruby's biggest downfalls is that OS vendors totally screw up the environment by default, which is why I always, always, always use RVM...which does work on Cygwin btw). |
@chanibal if you could try out some patches it might be easier to get to the bottom of this. asciidoctor-diagram locates its jar files, but doesn't really validate if they exist or not. See https://github.com/asciidoctor/asciidoctor-diagram/blob/master/lib/asciidoctor-diagram/util/java.rb#L6 for an example. Most likely an incorrect path is being constructed and being passed to the JVM. Could you insert |
Output with args:
Files mentioned exist
|
@chanibal thanks for that. So the ditaa jar is missing for some reason. That's why you're getting the There are two things that can be done here:
|
Double checked the metadata in the gem file as well. @mojavelinux have you ever seen something like this happen? |
@pepijnve, I do have dittamini, look at my comment again. I have made a copy-paste error before and edited my comment to fix this within a minute of posting, but you were faster to read it, I guess. |
Yep when I read your comment it said no such file for ditaa :) |
@chanibal if you have some more time to test this, could you try replacing |
Changed
Just to be sure, from the command line nothing changes:
But this thing works:
Adding pull request. Please review it, my first ever code in ruby so it might have problems |
👍 |
Just tried to install on windows+cygwin, but can't get it to work. I'm not sure if this is my instalation problem or i have found a bug.
My instalation procedure (from cygwin prompt):
My version is:
The text was updated successfully, but these errors were encountered: