1

在一个非常简单的 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'

修复它的唯一方法是删除开发文件夹并从头开始构建..

4

1 回答 1

2

当我们进行“forge build”时,现有的“development”目录将被删除并重新创建。因此,如果您在 Windows 上的另一个应用程序中打开了 .mp3,这可能会阻止文件被删除,因此在第二个“forge build”中会看到这个问题。

于 2012-07-17T01:57:11.283 回答