question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timings command line option not working?

See original GitHub issue

When using the -t timings option on master or alpha.4 I receive some errors which I think is to do with the Opal conversion of asciidoctor.js? But that doesn’t seem right because using asciidoctor.js command line works fine. So filing here…

error { format: undefined method `format' for "%05.5f"
    at String.$$method_missing (/home/mulhollandd/Documents/asciidoctor-pdf.js/node_modules/asciidoctor-opal-runtime/src/opal.js:3907:56)
    at String.method_missing_stub (/home/mulhollandd/Documents/asciidoctor-pdf.js/node_modules/asciidoctor-opal-runtime/src/opal.js:1310:35)
    at String.$String_$percent$5 (/home/mulhollandd/Documents/asciidoctor-pdf.js/node_modules/asciidoctor-opal-runtime/src/opal.js:6437:21)
    at constructor.$$print_report (/home/mulhollandd/Documents/asciidoctor-pdf.js/node_modules/@asciidoctor/core/dist/node/asciidoctor.js:16408:76)
    at Object.convert (/home/mulhollandd/Documents/asciidoctor-pdf.js/lib/converter.js:74:13)
    at convertFiles (/home/mulhollandd/Documents/asciidoctor-pdf.js/lib/cli.js:15:21)
    at PdfInvoker.invoke (/home/mulhollandd/Documents/asciidoctor-pdf.js/lib/cli.js:64:13)
    at /home/mulhollandd/Documents/asciidoctor-pdf.js/bin/asciidoctor-pdf:10:34
    at Object.<anonymous> (/home/mulhollandd/Documents/asciidoctor-pdf.js/bin/asciidoctor-pdf:11:3)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
  name: 'format',
  message: 'undefined method `format\' for "%05.5f"',

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Mogzttercommented, Jan 26, 2020

Oh I’ve actually removed the format method in Opal runtime to reduce the runtime size. We need to use the new Asciidoctor.js API printReport:

timer.printReport(process.stderr, inputFile.contents ? '-' : inputFile.path)

See: https://github.com/asciidoctor/asciidoctor-cli.js/pull/83/files

0reactions
danyillcommented, Jan 26, 2020

Ah, sorry – this one:

asciidoctor-pdf -v
Asciidoctor PDF 1.0.0-alpha.4 using Asciidoctor.js 2.0.2 (Asciidoctor 2.0.7) [https://asciidoctor.org]
Runtime Environment (node v10.16.3 on linux)
CLI version 3.0.2
Read more comments on GitHub >

github_iconTop Results From Across the Web

bash - Why doesn't the `time` command work with any option?
This will overwrite the shell keyword time because the command: type time ... Options: -p print the timing summary in the portable Posix...
Read more >
Enable \timing from the vsql Command Line - Vertica Forum
The vsql \timing meta-command reports, in milliseconds, the length of time it takes each SQL statement to execute. You can also enable \timing...
Read more >
batch file - How do I measure execution time of a command on ...
Type mytimer.bat in the command line then press Enter. Share.
Read more >
How To Time Command Execution with the time Command
Learn how to track how long a command takes to execute from the command-line using the time command.
Read more >
Command-line Options - Verilog-to-Routing's documentation!
At a minimum VPR requires two command-line arguments: vpr architecture circuit ... Controls whether VPR should terminate if timing is not met after...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found