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.

Support defining formatting for file names on Windows

See original GitHub issue

Currently (giter8 0.6.2), it is not possible to define formatting for file names on Windows, since double quotes (surrounding format name in format specification) cannot be used in file name on Windows. List of that one and other reserved characters on Windows can be found here

E.g. in my template project, under directory named project I wanted to create a file named:

$name;format="Camel"$Build.scala

Creating

$name;format='Camel'$Build.scala

worked ok.

Consider replacing double quotes or for backward compatibility supporting also single quotes around format name. Even better, consider removing any characters wrapping around format name.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TonioGelacommented, May 30, 2021

@sslavic or @eed3si9n I think this can be closed since the original issue was addressed since now you can use the syntax $name__Camel$Build.scala.

1reaction
tuhlmanncommented, Nov 23, 2016

As a future reference it works to add the formatting option after the name field using two underscores (__), like so:

$name__Camel$Build.scala

Here’s the documentation explaining that a bit more in detail: http://www.foundweekends.org/giter8/formatting.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Naming Files, Paths, and Namespaces - Win32 apps
Some file systems, such as NTFS, support linked files and directories, which also follow file naming conventions and rules just as a regular ......
Read more >
Best Practices for File Naming - Records Express
Adopting good file naming conventions can help ensure that files will work with different operating systems and disk formats, such as Windows, ...
Read more >
Common Windows file extensions | Technical Support Services
Windows file names have two parts; the file's name, then a period followed by the extension (suffix). The extension is a three- or...
Read more >
File naming and structure - Research Data Management at ...
Avoid special characters or spaces in a file name; Use capitals and underscores instead of periods or spaces or slashes; Use date format...
Read more >
File format - Wikipedia
File type may also refer to Unix file types or Filename extension. Learn more. This article has multiple issues. Please help improve it...
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