Does klog automatically create new files? #304
Replies: 2 comments 5 replies
-
This isn’t a Windows-specific issue, klog generally doesn’t create any new files. So it’s expected that you’d have to create them manually before being able to use them. It would theoretically be possible to introduce some sort of “create on the fly” mechanism, although this might be unexpected in other ways, because if you’d accidentally misspell a file name, then klog wouldn’t fail anymore. |
Beta Was this translation helpful? Give feedback.
-
I’m open to reconsider this behaviour, though I’m still a bit reluctant to make it the default. Maybe one approach could be to provide a config option in
|
Beta Was this translation helpful? Give feedback.
-
Background:
I cloned klog source with Windows, compiled with go (go version go1.20.1 windows/amd64) and started to test tracking.
Problem:
All tests showed an error about missing file. I expected that 'klog track testtask test.klg' creates a new file if not exists. I see this as default behavior of such tools that a file is used if exists or created if missing
Is this expected that a user need to create new files in advance ('touch test.klog') of use it or is this a Windows issue? I do not find any specific explanation about manual file creation in any documentation.
Beta Was this translation helpful? Give feedback.
All reactions