Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-18399] Windows: Projects can not be deleted if it's built once #6585

Merged
merged 3 commits into from Jan 30, 2015

Conversation

skypanther
Copy link
Contributor

@pinnamur
Copy link
Contributor

FR failed. I'm still unable to delete the project (enable the option to delete from disk as well) after it is run on Android device. The delete failed as it was unable to delete build_android.log file.

@@ -315,7 +317,7 @@ function patchLogger(logger, cli) {
// log it to our log file, stripping out the color codes
logger.log.filestream.write('\n' + prefix + (args.length > 2 ? sprintf.apply(null, args.slice(1)) : args[1]).replace(/\x1B\[\d+m/g, ''));
} else {
logger.log.buffer += '\n' + prefix + args[1].replace(/\x1B\[\d+m/g, '');
!logger.fileWriteEnabled && (logger.log.buffer += '\n' + prefix + args[1].replace(/\x1B\[\d+m/g, ''));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are trying to buffer the data only if the fileWriteEnabled is false. Why do you need to buffer the data if we close the file stream, but probably never open it again ?

Shouldn't the entire block be guarded against fileWriteEnabled condition ?

@pinnamur
Copy link
Contributor

FR passed.

@pinnamur
Copy link
Contributor

CR passed.

pinnamur pushed a commit that referenced this pull request Jan 30, 2015
[TIMOB-18399] Windows: Projects can not be deleted if it's built once
@pinnamur pinnamur merged commit 638f678 into tidev:master Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants