wilzbach / tools-test

1 stars 0 forks source link

HTOD deletes files without notice #60

Closed wilzbach closed 9 years ago

wilzbach commented 13 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#6249 From: Andrej Mitrovic <andrej.mitrovich@gmail.com> Reported version: D2

wilzbach commented 13 years ago

Comment author: Andrej Mitrovic <andrej.mitrovich@gmail.com>

If you have a source file: $ test.d

and you just happen to have a C header file with the same name: $ test.h

If your run htod on the file: $ htod test.h

Your original project file is now gone. This is really horrible and I've already lost a good bit of work a couple of times because I didn't have that stuff under revision control.

Yes, we should always use revision control to protect from these kinds of mistakes, but it's never a good thing when a tool erases your files without any notice.

Sometimes you start a new project, you realize HTOD isn't doing a good job of translating some header file and you decide to give HTOD a hand by modifying some type definitions in the newly created .d file. And then you accidentally call htod again and all the additions/modifications you made are gone.

I don't always have GIT at hand, most probably because it requires that stupid msys linux emulator.

YMMV, but I don't like tools that wreak havoc on my files without me knowing about it.

wilzbach commented 12 years ago

Comment author: Andrej Mitrovic <andrej.mitrovich@gmail.com>

I must have been very angry when I filed this. :p

Anyway we have better (cross-platform) tools for .h conversion now.