-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Windows: building modules will fail with permission error #14077
Comments
Possible fix with: #14078 |
Disabling the log file is not the solution. The problem is coming from the module build When you build a module, the build command patches the logger so that it can redirect output to a file BEFORE the module build starts. When the module build runs, it calls On a clean build, the only thing in that directory is the In any case, the solution is to fix
I would argue that the first |
A module build never created that file before. I've tested it on Mac and Linux and I don't have that file in the module But I'll check the solution you've suggested. For app builds the file is there and that works fine |
How is this just breaking now? You think it's a v6 vs v7 thing? I wonder if v7 fixed something and exposed this issue. Regardless, it is suspicious that On a side note, |
I think no one compiled modules on Windows for a while 😄 At least I never did and it was reported by a Slack user. But it could be a v6/v7 issue, I didn't check it with an older CLI yet. The user (and I) was using v7. |
I've just tested a module build without the
no other log. A app build contains all the output. So I think it's a bit more work to get the build.log working for a module build. Switching to Ti v6: still no log file in the build folder for a module. BUT: when I remove the To summarize: with this PR (skipping the log output on Windows) it is the same output as with Ti v6. To get the log we would need to keep the build.log file AND fix the v7 to output all the logs to the file. |
I have searched and made sure there are no existing issues for the issue I am filing
Description
When trying to build an Android module on windows it will show
which is located here: https://github.com/tidev/titanium-sdk/blob/master/cli/commands/build.js#L424
When I comment out that line it will build the module
Expected Behavior
build the module
Actual behavior
crash with permission error
Reproducible sample
Steps to reproduce
run the command above
Platform
Android
SDK version you are using
12.3.1
Alloy version you are using
No response
The text was updated successfully, but these errors were encountered: