aidanas opened a new issue #186:
URL: https://github.com/apache/cordova-electron/issues/186


   # Bug Report
   
   ## Problem
   Recently we have noticed that Cordova CLI was no longer starting electron 
app on windows when running `cordova run electron` or `cordova run electron 
--nobuild`. I noticed that this only happens with `[email protected]` and 
only on windows OS. Interestingly we've been using  `cordova-electron@2nightly` 
builds for a while and it used to work fine so not sure what exactly has 
changed. Perhaps upgrading to Cordova 10 has affected it?
   
   I was able to recreate the issue consistently using "Hello World" app. With 
the following steps:
   
   1. Create new app
   2. Add electron v2
   3. prepare and run
   
   ### What is expected to happen?
   
   - Electron app started
   
   ### What does actually happen?
   
   - Electron app never launched
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   This happens on all our machines.
   Watching "Task Manager" I can see 5 Electron processes started and running 
under "Background Processes". On a normal launch those processes are briefly 
promoted to "Apps" section and the app is shown but not in this case.
   
   The issue seems to be with the launch process rather than build as I can 
build installer using `cordova build electron` which then can be installed and 
launched with no issues. However if `cordova run electron` is used then the 
process hangs indefinitely after going though all the build steps.
   
   Also note that if non v2 `cordova-electron` is used such as current 
production `1.1.1` then the app starts as expected.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   1. `cordova create hello com.example.hello HelloWorld`
   2. `cd hello`
   3. `cordova add platform [email protected]`
   4. `cordova prepare electron`
   5. `cordova run electron --nobuild`
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Windows 10 across multiple machines.  
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova CLI version `10.0.0`
   Node `14.15.4`
   Windows 10
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [x ] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to