wavedrom / cli

CLI for WaveDrom

Home Page:https://wavedrom.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI hangs

smani opened this issue · comments

commented

I followed the steps below:

  1. Install PhantomJS version 2.0 from http://phantomjs.org/download.html
  2. Install version 4.2.4 from https://nodejs.org/en/download/ to obtain the npm.
  3. Run npm i wavedrom-cli --save-dev
  4. Run phantomjs node_modules\.bin\wavedrom -i path\to\sample.json -p sample.png -s sample.svg

The phantomjs command never terminates (I waited for more than 30mins).

I am using Windows 7 64 bit operating system.

@smani could you try with PhantomJS v2.1.1 ?

Looks like symbolic links on Windows don't work as expected. Please try:
phantomjs node_modules\wavedrom-cli\bin\wavedrom-cli.js -i path\to\sample.json -p sample.png -s sample.svg

commented

This command worked but the output PNG/SVG is no way related to the input. It seems to have some sample waveform (clk, Data and Request lines -- the Data line has in different colors).

BTW, I tried phantomjs node_modules\wavedrom-cli\bin\wavedrom-cli.js -p sample.png and it produces the same output as phantomjs node_modules\wavedrom-cli\bin\wavedrom-cli.js -i path\to\sample.json -p sample.png. It looks as if the sample.json isn't used by the tool.

@smani Your are absolutely right! My bad. Please try v0.3.0

commented

Wow! It works now. Thank you.

great. closing.