-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Cmd-R not refreshing? #306
Comments
+1 -- I've even deleted the folder, re-created a new folder, run the app, and I'm still seeing my changes from before the delete. xcode - Version 6.2 (6C131e) |
Can you try restarting your computer? The FileWatcher might be in a bad state |
I restarted a few times, uninstalled/reinstalled node and watcher, and now reinstalling xcode. |
It works fine for me. Make sure to use the latest stable version of XCode, and install XCode Command Line Tools. |
Installing xcode from the app store, should I grab a different one? |
I doubt Xcode is the problem here. If the app opens in the simulator and renders it's probably something in the packager. This is a long shot but maybe the packager is run in in the wrong directory. Can you go to the directory you're changing and manually start the packager? You can use react-native start |
I was running
|
Also watching some others on youtube and it seems there's a blink or flash in the simulator on the reload. When I hit Cmd-R there's no blink or anything, nothing happens at all. |
Are there any logs in your terminal? It should say something about the If there aren't any then there might be something wrong with the Cmd r On Thursday, March 26, 2015, tehfailsafe notifications@github.com wrote:
|
When I make a change in the editor I see this in the terminal:
But that is when I save from the editor, before attempting to hit Cmd-R |
hitting Cmd-R in the simulator produces no logs in the terminal or in xcode console. |
You have to hit Cmd+R twice, every time :) |
I am spamming it 50 times, doubt that's the problem... :) |
Fun note, learned from @jordwalke on twitter to use the shake gesture to bring up the dev dialog, and reloading from there works great. Also enabling live reload now works by just saving the JS file without touching Cmd-R. |
Glad you could figure it out. What to send a PR with the tip?
|
Sure first thing in the morning!
|
@tehfailsafe Fixed, thanks! |
Closes my issue at facebook#306
#326 is related. If you don't have a qwerty/azerty keyboard layout, it won't work |
Hopefully alleviates new issues getting created for similar problems. Addresses facebook#257 facebook#304 facebook#306 facebook#326
Unfortunately, the keyboard toggle does not fix the issue for me. Have tried that as well as uninstalls and reboots. Two near identical machines: Yosemite 10.10.2 First run of the project:
Cmd-R (2x) in the simulator causes a screen flash, as if a reload is happening; but new content is not pulled in. |
@rywhee no |
@amasad my bad, I snipped it!
|
So it seems like the simulator is requesting the package and receiving it. Maybe the packager isn't picking up your changes. Try stopping the packager and starting it manually via |
Thanks @amasad. Unfortunately, a manual start does not resolve the issue for me. FYI - I have had to bump MAX_WAIT_TIME in FileWatcher to avoid the 'Watcher took too long to load' error... |
Does it at least pick up changes between stopping and starting the packager? (Trying to make sure it's not a file watcher issue) |
@amasad yep, when stopping then re-starting the packager; changes are picked up fine. It's just the live reload that's not happening. |
@rywhee are you using sublime text 3? I had to disable atomic save for refresh to work properly. |
My issue refresh issue was related to watchman permissions.... solved here |
Closing this issue for now since it seems resolved, please re-open if you face it again |
If you have time please update the troubleshooting page with the your workarounds/fixes. |
updated to add the watchman permissions fix. |
@rywhee Thanks dude! Solved all my issues! |
@eyaleizenberg 👍 - happy coding! |
In case somebody is using Dvorak layout, you need to refresh with Cmd+P. |
Maybe it's just caused by the different build mode,you need to change the build mode into debug if it is release mode currently. command+R and command+D is the special key combination while you debug the program with simulator....the concrete step is : [In Xcode 6 & 7] Choose Product -> Scheme -> Edit Scheme. Change the Build Configuration under the Info tab. |
@bob1993 many thanks, was as simple as such! |
@dvisco It's my pleasure ~ |
@bob1993 Ditto -- forgot I had to change the scheme back to debug! |
@sashafklein Hahahaha... |
@tehfailsafe save my life. 👍 I added a reaction to make sure the others can see it. |
@jordanfloyd thanks ,solved my problem |
@tehfailsafe thanks, it is work! |
@bob1993 Thank you so much! Yes changing the mode to Debug fixed this refresh issue for me. |
I have this issue. Solved.. with one line of command.. But, I did some other stuffs, so I am not sure this is the only source. rm -rf /usr/local/var/run/watchman/ && brew uninstall watchman && brew install watchman |
Quit the simulator and start again. Works for me. |
in my case my build configuration was set to release. changing it to debug solved the problem |
For me, a restart of the simulator worked: "Hardware" -> "Restart" |
Closes facebook#306 if we think that's the right decision to remove it until that's really supported.
Everything loads up fine, example are are running smoothly, but if I make a change in the JS file and hit Cmd-R in the simulator, nothing happens. Did I forget something?
xcode - Version 6.2 (6C131e)
simulator - Version 8.2 (553.8
watchman - 3.0.0
node - 0.12.1
The text was updated successfully, but these errors were encountered: