CLI hangs
smani opened this issue · comments
I followed the steps below:
- Install PhantomJS version 2.0 from http://phantomjs.org/download.html
- Install version 4.2.4 from https://nodejs.org/en/download/ to obtain the
npm
. - Run
npm i wavedrom-cli --save-dev
- 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
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
Wow! It works now. Thank you.
great. closing.