FlowUi designer view broken in v1.5.1 and Intellij 2023.1

Hi
I have migrated my composite application to the latest version 1.5.1 and IntelliJ CE version 2023.1. I don’t get the flowUi visual screen designer anymore. Here is the log from the screen designer:

[2023-04-06T12:28:24.002942]: Restarting ViewDesigner...
2023-04-06 12:28:24 LOG INFO: Starting dev-mode updaters in folder (/Users/mak/Projects/inteaccerp FLOW/inteaccComposite1.5/inteaccproc/inteaccproc)
2023-04-06 12:28:24 LOG INFO: Executing task: TaskNotifyWebpackConfExistenceWhileUsingVite
2023-04-06 12:28:24 LOG INFO: Executing task: TaskGeneratePackageJson
2023-04-06 12:28:31 LOG INFO: DevServer start failed. Cause: elemental.json.JsonException: Cannot parse package file '/Users/mak/Projects/inteaccerp FLOW/inteaccComposite1.5/inteaccproc/inteaccproc/.jmix/screen-designer/package.json' Message: elemental.json.JsonException: Cannot parse package file '/Users/mak/Projects/inteaccerp FLOW/inteaccComposite1.5/inteaccproc/inteaccproc/.jmix/screen-designer/package.json'Stacktrace: 
[java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315), java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320), java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807), java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796), java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373), java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182), java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655), java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622), java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)]
2023-04-06 12:28:31 LOG INFO: DevServer start failed. Cause: elemental.json.JsonException: Cannot parse package file '/Users/mak/Projects/inteaccerp FLOW/inteaccComposite1.5/inteaccproc/inteaccproc/.jmix/screen-designer/package.json' Message: elemental.json.JsonException: Cannot parse package file '/Users/mak/Projects/inteaccerp FLOW/inteaccComposite1.5/inteaccproc/inteaccproc/.jmix/screen-designer/package.json'Stacktrace: 
[java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315), java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320), java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807), java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796), java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373), java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182), java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655), java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622), java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)]

Hi, Mortoza,
Based on the logs, there is a problem with parsing a ‘package.json’ located on the path {ProjectDir}/.jmix/screen-designer/package.json.
Check if this file exists at the specified path and what its contents are. The contents of the file must match the contents of the ‘package.json’ file from the project (module) root.
You can also try to copy this file manually and reopen the project.

Is this problem reproducible on a new project that has just been created?
If the problem does not go away, I need a project on which this is reproduced.

Mikhail

Hi
I replaced the package.json file with the file from another working project but it is still the same.

Is there any other place/files I should check?

Hi,

Maybe you can try recreate new 1.5.1 flowUI addon and than move old (1.5.0) addon code to new addon

My one is a large composite project… so…

I have recreated the composite project and moved all the subprojects into the new composite. After a few tries, It’s now working to show the screen pre-view.