-
Notifications
You must be signed in to change notification settings - Fork 55
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
Hard reset doesn't work #26
Comments
It seems that you are using windows if I'm right. In that case I'm afraid that I can be of no help as I only have access to *nix machines. It might be something with the way node manages spawning processes on windows. But that's just a wild guess. And I don't seem to get any useful information from the screenshot. It might be better if you could ask this on stackoverflow. Thanks for the heads up on README corrections 👍 |
On second glance: do you have electron installed in your project? i.e. |
Hey, thanks for quick reply! Awesome! Yes, the file exists. I found out that the problem doesn't appear when i call |
I'd suggest that you try to spawn |
Hi there, thanks again for the quick replying! I checked the command and it doesn't work - so its a problem with electron or spawn. I opened a issue on electron Another thought: |
Good job! I will update the P.S. |
This actually is an issue. Adding .cmd helped, though it will open a new external terminal window every time you change something and the previous terminal window will not automatically close. Can this be opened again? |
The question remains: is this an electron related issue or is it something that should be taken care here. I, unfortunately, don't have a windows computer to be able to localize the problem and draft a possible solution. @bkniffler could you elaborate on the behavior and suggest some possible solutions? |
I guess it must have something to do with spawn on windows. Maybe something like https://www.npmjs.com/package/cross-spawn could help. I've found another solution that works ok (slower than electron-reload) which is nodemon: |
Could the Electron not found error text also be extended to include the hint now included in the README? Like most devs, I don't read readmes further than to the first line of example code and while I should know better, I feel like it would improve the DX to say something like Electron not found. No hard resets for you. Are you on Windows? Check out https://github.com/yan-foto/electron-reload#usage. |
@TomasHubelbauer it could, but I don't want it to... the whole |
It seems this is intentional from Node electron/electron#8514 so it would be great if this was worked around. |
Hi there,
first thanks for that helpfull plugin!
A reload for the frontend-part (means changing /app/index.htm) works well. But if I define the electron-parameter the program crashes when I do make changes on the /main.js. Do you have any clue where does it come from?
Thanks in advance!
Two little fixed for your README:
mainWindow.loadUrl(
file://${__dirname}/index.html
);-> The name of the function has changed loadUrl to loadURL (capital letters)
electron: require('electron-prebuilt')
doesn't work anymore, because electron-prebuilt doesn't exist anymore.
The text was updated successfully, but these errors were encountered: