Can't set formatter output file on Windows
See original GitHub issueHello,
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:
- Created 7 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Auhh so we need to split on just the first colon. If we switch to lodash’s
_.split
, we can set a limit.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.