-
-
Notifications
You must be signed in to change notification settings - Fork 197
each file change triggers an endless build #2482
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
Comments
Hi @DavyDeDurpel, could you provide steps to reproduce the problem so we can try and figure out what's broken. Please paste the content of your |
I tried to simulate the issue with the HelloWorld example but it seems I encountered another issue. This is what I did:
So the conclusion of these tests is that applications that are created with and older version of the CLI don't migrate well when updating the CLI to 2.5.0. I will now try to recreate my application by using the 2.5.0 CLI and copy my code into it. I will let you know today or somewhere the beginning of next week if this fixes the issue. |
I just finished with the recreation of my application and sadly it doesn't solve my issue. As soon as I modify a file and endless rebuilt is done. This is what I did:
I already tried removing the push notification stuff but that doesn't fix it. I did notice however that an earlier update removed the .map files and the .js files now how inline map info. Not sure if this could be related. Btw, I'm using Typescript 2.1.5. This is what is logged whenever I modify a file:
And then the complete logging for the full compilation until the application is installed and than it starts all over again.
|
I can second that, after update to 2.5.0 I make one change to a file and it triggers endless cycle of builds. Using Webstorm as IDE. |
@DavyDeDurpel without the |
I can't just copy/paste the contents in here as it contains sensitive information. Is there a way that I can provide it to you in private? |
@DavyDeDurpel sure, write to me on my mail [email protected] |
@lukashlobil can you provide simpler steps to reproduce? |
@DavyDeDurpel I received the json, and managed to build the project with no problems, so I can't reproduce neither the timeout nor the endless restart loop. |
I found it. It's the nativescript-i18n plugin that triggers the endless loop. I removed it completely from my application and now it behaves normally. I saw the light when I noticed that the nativescript-i18n hooks were executed when saving a modified file. Most likely it's related to the fact that this plugin does some magic with the strings.xml files in the App_Resources folder. How do we continue? Do I close this issue and create a new one in the nativescript-i18n group? @lukashlobil Can you confirm that you also use that specific plugin? |
I tried reproducing on new repo, but failed. |
I have logged the issue in nativescript-i18n: |
@DavyDeDurpel @lukashlobil thank you, I'll investigate the |
@Plamen5kov @DavyDeDurpel are you sure you have the last version of the plugin? because there is no after-prepare hook since 0.0.7 |
@rborn but... the prepare is triggered because there are file changes, transpilation being part of the prepare phase. |
I get this, only that I wonder how could we do this without some really ugly hacks 😊
…Sent from my iPhone
On Feb 7, 2017, at 5:12 PM, Peter Kanev ***@***.***> wrote:
@rborn but... the prepare is triggered because there are file changes, transpilation being part of the prepare phase.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@Plamen5kov @Pip3r4o I think I need your help guys, something is weird with 2.5.0 and I don't get what.
But there is no "Resources" folder in the app On android it complains that the xml files are corrupt - but the error is more like the files are not there (but they are) Did anything changed in the way you load the hooks? Maybe there is a delay somewhere between the moment the hook is executed and the cli thinks the prepare phase is ready ? Thank you |
@rborn please provide steps to reproduce and we'll figure it out. |
Thank you very much 😄 |
@Plamen5kov update - just got a PR that could fix this, I think it was me writing files async 😞 |
@Plamen5kov it seems that it's solved 😄 (there is a small issue but is not created by the CLI). |
I guess that we can close this one. Thanks to all for the collaboration! |
@rborn that's great |
Guys, i've been redirected here from https://github.com/toddanglin/nativescript-dev-sass/issues/18#issuecomment-282133474. |
Hey @elvismercado , please check the last comments here |
thnx @rosen-vladimirov |
I upgraded the cli from 2.4 to 2.5 and now every file changes triggers a build process that never stops. When the build is done a new build is started and this goes on forever. I already installed the @next version of the CLI but it has the same issue. I'm having this issue on windows with an android platform.
I downgraded to 2.4 and everything works as before. Though this can only be a temporary solution for me as I already upgraded the VS Code Nativescript extension to 0.6.0 and that one needs the 2.5 CLI and there's no option foreseen in VS Code to downgrade extensions.
Is there a way for me to find out what triggers the rebuild?
Can you also tell me why the 'livesync' feature has been removed? With 2.4 if I change a file it takes about 3 seconds on my machine to restart the application. As of 2.5 a complete rebuild is triggered each time and that takes about 2 minutes on my machine. Needless to say that this is a big step backwards.
The text was updated successfully, but these errors were encountered: