在一个非常简单的 trigger.io 项目的 src (或任何其他子文件夹)中包含一个 mp3 时,我遇到了一种奇怪的行为。
第一个构建工作正常。在第二个版本中,我收到以下错误:(我添加了德语内容的翻译)
2012-07-13 12:51:38,017 [ DEBUG] Checking API response for success or error
2012-07-13 12:51:38,131 [ DEBUG] configuration is identical to last run
2012-07-13 12:51:38,131 [ DEBUG] already authenticated - continuing
2012-07-13 12:51:38,131 [ DEBUG] GET https://trigger.io/api/app/69c8695eccc911e1a8c212313d1adcbe/should_rebuild
2012-07-13 12:51:38,394 [ DEBUG] Checking API response for success or error
2012-07-13 12:51:38,394 [ INFO] Configuration is unchanged: using existing templates
2012-07-13 12:51:48,394 [ ERROR] Something went wrong that we didn't expect:
2012-07-13 12:51:48,394 [ ERROR] [Error 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'development'
Translation: A file cannot be created if it exists allready: 'development'
2012-07-13 12:51:48,394 [ DEBUG] Traceback (most recent call last):
File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\async.py", line 96, in run
result = self._target(*self._args, **self._kwargs)
File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\main.py", line 369, in development_build
try_a_few_times(move_files_across)
File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\lib.py", line 25, in try_a_few_times
f()
File "C:\Users\asic\forge-tools-3.3.2\forge-tools\forge\main.py", line 365, in move_files_across
shutil.copytree(defaults.TEMPLATE_DIR, 'development')
File "C:\Python27\lib\shutil.py", line 174, in copytree
os.makedirs(dst)
File "C:\Python27\lib\os.py", line 157, in makedirs
mkdir(name, mode)
WindowsError: [Error 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'development'
Translation: A file cannot be created if it exists allready: 'development'
修复它的唯一方法是删除开发文件夹并从头开始构建..