NodeWebkit + CKEditor Crashing app in OSX - node.js

I am using Nodewebkit for creating a simple Desktop application and I have integrated CKEditor in it.
Currently facing some issues with CKEditor in app in "MAC only" which crashes app(Closes app currently).
Steps to reproduce bug:
Open CKEditor in app
Type few words and make it bold
After press of two enter keys, it closes app (Crashes).
This is happening when user clicks on Bold/Italic/Underline Icon only and also happends only when .app file is created.
While testing locally by running GULP, it works without crashing application.
Is there any way I can fix this issue?
Thanks in Advance
Update: App will crash only if HTML Encoding is used. But if HTML Encoding is not done, then it shows special symbols for enter key pressed.

Related

NodeJs shell.openExternal open exe and minimize it

I am using this in electron to open an application and it works fine.
Here is the code:
require('electron').shell.openExternal('"C:\\Program Files (x86)\\myApplication\\myApp.exe"');
My issue is that it opens in front of my main application.
Is there a way of making it minimize?
You can't minimize the external app, but you can bring the opened app to background by setting activate option to false.
shell.openExternal('pathOrUrl', {activate: false});
The only problem is that it will only work on macOS.
On other operating systems, you can focus on your app's window after opening the external link, but it does not always work.
window.focus();
// or
window.webContents.focus();
Electron Docs

Blueprism Application Modeller showing Launch instead of Identify when spying

I am using BluePrism v6.1.0 and I am trying to identify elements from a launched application in Application Modeller. (I used the Windows application type in the modeler configuration)
From some tutorials I saw, the launch button changes to Identify button after the app is launched, however, mine is still showing "Launch". Please see screenshot below
screenshot
You need to launch the application from the application modeller, not on your own.
Since you are using Windows 10, the built in applications are use differently than normal in windows 7. Here is how you can add the code to make it work with your system Screenshot. Also for future applications use this code in Windows Power Shell to get information about the application you wanted to work with in Window 10 : "Get-AppxPackage"
Not fully explained here but this can also mean not only is the app not launched but blueprism can't "see" the app is launched. Two ways to solve this so close the application and relaunch it then it will change to identify, OR you can attach the current instance of the object to the running application.
Either way the outcome is you're making blueprism see the active application so it will change the launch to an identify option.
Edit: watch out as well, if you connect your application to blue prism and then detach it blue prism will no longer see the running application hence will revert the identify option into a launch option.

Electron: How to handle open commands with multiple Windows users?

My Electron app shows files inside their enclosing folder using the standard command shell.showItemInFolder(fullPath). Works.
Now when two Windows users are signed in and they both use the app, the file is always shown on the Windows desktop of the user opened the app first.
In real life, it looks as if the function is broken, but actually the Windows Explorer is simply opened in the other Windows user's session in the background.
Does anyone know how to get rid of this problem?

Azure Emulator - when using node.js, where is the console log written?

I am using Azure node js emulator.
from power shell, I was able to start the :
start-AzureEmulator.
in my server.js, I have :
console.log();
I dont see these logs written on power shell .
where are these console logs written?
By default logs are written to a logs folder within your project folder. You can also view the logs realtime by right clicking on the emulator taskbar icon and then viewing the emulator ui.
I think you need to use Node Inspector (Chrome/Safari/FireFox)
More here "Using node-inspector to debug node.js applications including on Windows (and using ryppi for modules)"
There might be other simpler ways but this should work.

Empty screen when debugging

When attempting to debug (Run -> Debug), the "waiting for debugger" dialog appears, and subsequently disappears. The simulator starts up to the home screen, I click on my app, and all that happens is a black screen appears. No breakpoints are hit, and the application never appears to do anything. Simply running the application without debugging works as expected. Any ideas?
If you haven't fixed this already - the same thing happened to me. And as Driss says in the comments having a folder called Resources in your project gives the iPhone Simulator a heartattack and crashes it from the looks of things, without even copying your app bundle to the simulator directory.
I think I had a very similar issue. Did this happen with your project "all of a sudden?", did you rename your View's .xib file? did you have a NavigationController then delete it and now have this issue?
Can you also please post your "FinishedLaunching" code from your Main.cs please.
Driss.

Resources