Closed Zasco closed 1 month ago
Does this happen with both 0.4.4 and 0.4.5?
From the trace, it looks like this happens when you build the channel on top of a previously built channel. In my own scripts, I always delete the previously built files to remove any old data, so haven't encountered this so far.
Does this happen with both 0.4.4 and 0.4.5?
Has not happened so far while using 0.4.5. Will follow up if it does.
From the trace, it looks like this happens when you build the channel on top of a previously built channel. In my own scripts, I always delete the previously built files to remove any old data, so haven't encountered this so far.
Will try solution if ever happen again.
I've studied the documentation for the APIs I use a bit. The function I use should already ensure that the old folder from previous runs of channel-build is properly deleted. This is known to fail occasionally for reasons outside sc4pac's control. For example, a file or folder might be locked as it's opened in another process, by another program.
There's not really anything I can do to avoid that, except for providing a better error message – and that's what I've just implemented.
The "channel build" command fails randomly. Retrying it a few times solves it. Thought it was linked on not having the CLI window focused, but it sometimes still succeeds. Command is called from a batch file.
Last error message when it happened:
sc4pac version: 0.4.4
OS: Windows 8.1
Output of
java -version
: