senchalabs/jsduck — Issue #116: Cannot create dir that exists
Author: tengl
Created: 2011-12-28 09:10:21+00:00
State: open

I have an issue when re-generating the documentation, it seems it tries to create the folder but it already that exists. To me it looks like a problem in Ruby, but I don't know how Ruby works... Here is the error message. I have to remove the folder before generating new documentation. I'm using the windows exe, ver 3.2.1.

C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/1.8/fileutils.rb:243:in `mkdir': File exists - C:/path/to/myDoc (Errno::EEXIST)
from C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
from C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/1.8/fileutils.rb:172:in `mkdir'
from C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/1.8/fileutils.rb:171:in `each'
from C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/1.8/fileutils.rb:171:in `mkdir'
from C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/gems/1.8/gems/jsduck-3.2.1/lib/jsduck/template_dir.rb:22:in `write'
from C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/gems/1.8/gems/jsduck-3.2.1/lib/jsduck/app.rb:66:in `run'
from C:/Users/myuser/AppData/Local/Temp/ocrF7D7.tmp/lib/ruby/gems/1.8/gems/jsduck-3.2.1/bin/jsduck:26