Skip to content
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

Non-SDK nw.js fails on showDevTools #8012

Open
AlttiRi opened this issue Dec 27, 2022 · 5 comments · May be fixed by #8213
Open

Non-SDK nw.js fails on showDevTools #8012

AlttiRi opened this issue Dec 27, 2022 · 5 comments · May be fixed by #8213
Labels
bug has-min-repro Has a minimum reproduction

Comments

@AlttiRi
Copy link

AlttiRi commented Dec 27, 2022

I use the follow code

nw.Window.get().showDevTools();

it works fine with SDK version of nw.js, but if I open the project with non-SDK one, the window will close immediately and the nwjs process with run in the background. I need to terminate it manually with Task Manager.


  • Win 10
  • nwjs-v0.71.1-win-x64
@ayushmanchhabra
Copy link
Contributor

The non-SDK version does not have DevTools which is why the app is crashing. Here's a link to the docs:
https://nwjs.readthedocs.io/en/latest/For%20Users/Debugging%20with%20DevTools/

@AlttiRi
Copy link
Author

AlttiRi commented Dec 28, 2022

I have seen messages about it.
I think it should not crash the application.
Just throws an error in showDevTools function. Or just do nothing.

@ayushmanchhabra
Copy link
Contributor

ayushmanchhabra commented Dec 28, 2022

Good idea!

@rogerwang is there a way to call process.versions['nw-flavor'] inside this function?

@nicolasgarfinkiel
Copy link

Hi all!

@rogerwang , any thoughts on this thread? Currently, prominent sites like ChatGPT are using Cloudflare's CAPTCHA challenge and it fails getting stuck in a loop. Since the site is a hot potato right now, it's creating a lot of noise out there. Any chance you can help us here?

Thanks!

@JTorresConsulta
Copy link

Dev Tools only works on SDK version

npm install -g nw@sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug has-min-repro Has a minimum reproduction
Projects
None yet
4 participants