[bweave.rails-flip-flop]EEXIST: file already exists, mkdir '{path...}/spec/models' when saying yes to Create missing spec
Closed this issue · 2 comments
zzeni commented
When I try to create the spec file with Flip-Flop, I get the following error:
[bweave.rails-flip-flop]EEXIST: file already exists, mkdir '/Users/uname/proj/spec/models'
Obviously it tries to re-create the spec/models/
folder and thus gets the error
Update:
Here's the full stacktrace:
at Object.fs.mkdirSync (fs.js:895:18)
at utils.prompt (/Users/uname/.vscode/extensions/bweave.rails-flip-flop-0.0.2/out/bootstrap.js:38:16)
at vscode_1.window.showQuickPick.then (/Users/uname/.vscode/extensions/bweave.rails-flip-flop-0.0.2/out/utils.js:31:27)
at Object.g [as _notify] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:67:449)
at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:70:778)
at n.Class.derive._oncancel._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:72:573)
at n.Class.derive._oncancel._completed (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:72:14)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:93:481
at n.Class.derive._creator.done (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:73:852)
at Object.g [as _notify] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:67:591)
bweave commented
Hey @zzeni, thanks for reaching out! I just pushed up a new version 0.0.3
. Can you check it out and see if it's working better for you? If not, I can take a closer look.
zzeni commented
Hey, with the new version it works like a charm. Thanks!