-
Notifications
You must be signed in to change notification settings - Fork 38
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
watch --server --optimize fails to find almond.js #22
Comments
Do you have |
No, I turned it off after you mentioned it caused problems with live recompilation. But I never saw an almond.js in the public/javascripts directory before, so it probably gets deleted regardless of whether that flag is enabled or not. |
almond needs to be in the public directory for r.js to use it. So at the beginning of the r.js run I write it to public. And when it is all done, I remove it, since it isn't really part of the app. So the ENOENT you are seeing is from the attempted removal. Which is odd, because I'm not sure why it wouldn't be there. There is really only one possibility, it was there (hence your -built file working correctly) and it was removed (hence you never seeing it before) and for some reason it attempts to remove it again. I was thinking I can push a simple fix to make sure the file is there before it attempts to removes it, but circumstances should dictate it only being removed once. |
Something about having a ton of files is making this happen. Thankfully I can now reproduce this. |
This was a fun one to track down. I have a fix for this, but it'll need to wait until tomorrow, it is getting late. Long story, but if you need to avoid this happening in the next 12 hours or so, turn off live reload via the config for a bit. Thankfully the author of watch-connect gave me push rights on git, and publish rights on npm, so I'll be able to get this done without having to wait for someone else to work on their schedule. |
Just pushed v0.0.19alpha to npm. Give it a go. Let me know all the things I broke fixing this. =) Once I'm feature complete I'll go to beta and try and get a bunch of folks using the library. I'll publicize. And the primary goal from beta to 1.0 will be to fix bugs, add anything people identify as critical, and most certainly get a slew of tests in place so I'm not breaking things fixing other things quite so much. |
No change, still crashes every time. Making a tool that can handle such a big project presents quite a bit of challenges, so don't get discouraged. I'll do my best to help you debug these issues. (And the next ones I'm about to post) |
It's awesome that someone with such a big project is using it, it is getting me to shake things out in ways I probably wouldn't have been able to otherwise. I think we covered this before, but do you have your own |
My project is a bit different from how the |
Do a few things... First, verify in your package.json that you are pointing at watch-connect 0.3.2. This is likely the case. Back up your package.json (if you aren't version controlled) and run Or, optionally, just update the package.json yourself and run Ensure in your server.coffee that almond.js is being excluded, and that the line of code looks something like this:
It is a regex now, so it is best to escape the period. |
Yep, that's exactly what was wrong. I haven't touched the package.json file, so I can't tell you whether it gets mangled or not, but it got updated. Speaking of dependencies, I saw your issue requirejs/r.js#253, is optimize broken right now? Because I just tried making a new project with Want me to open a new issue about that? |
If you comment out the If so, it isn't 253. 253 is what happens (in my Angular project) when you upgrade requirejs from 2.0.4 to 2.0.5. I found this problem when I copied the fix for requirejs/r.js#247 into my local install of Mimosa. That is the issue I brought up because of the I'm hopeful that require goes to 2.1 sometime soon. But it may not, and I'm not entirely certain how to point Mimosa at non-npm published code. In the short-term I'll comment out the urlArgs param in the main.coffee you get delivered and open a bug here to track it. |
Yes, that's what it is, no problem then. |
Now I modify
map.coffee
, triggering a recompilation:Neither
mimosa watch --server
normimosa watch --optimize
exhibit this problem, so it's in the interaction between the two flags.The text was updated successfully, but these errors were encountered: