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.

Can't set formatter output file on Windows

See original GitHub issue

Hello,

Currently there is an option to configure an output file for a formatter.

format: ['pretty', 'json: logfile.json' ]

Using an absolute path on Windows causes a problem because of the colon syntax. The problem is with using the split method as Windows machines have colon in the path. (C:\Users…) https://github.com/cucumber/cucumber-js/blob/master/lib/cucumber/cli/configuration.js#L46

So the following configuration will output to a file with name C 😃

format: ['pretty', 'json: C:\Temp\log123.json' ]

Thanks Igor

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
charlierudolphcommented, May 17, 2016

Auhh so we need to split on just the first colon. If we switch to lodash’s _.split, we can set a limit.

0reactions
lock[bot]commented, Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Prettier not format code in VS Code? - Stack Overflow
1 - Select Default Formatter. Open Files -> Preferences -> Settings (or Ctrl + , in Windows). Search for Editor: ...
Read more >
"Cannot play back the file. The format is not supported. (Error ...
This error is caused by an unsupported file format or codec or by corrupted ... When you try to play a media file...
Read more >
Format on Save (prettier) stopped working with latest update
I set prettier as the Default Formatter in Settings and it started working again. My Default Formatter was null. In case anyone is...
Read more >
Creating a “Log” File in Stata - Harvard Sociology
This set of notes describes how to create a log file within the computer ... and Control Language file”) keeps the formatting from...
Read more >
Command Line Interface - ESLint - Pluggable JavaScript Linter
This option has the same effect as --fix with the difference that the fixes are not saved to the file system. Because the...
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