Jmix UI plugin don't work with the latest IntelliJ IDEA

jmix_ui_error_20230828084029

jmix_20230828130848

IntelliJ IDEA 2023.2.1 (Ultimate Edition)
Build #IU-232.9559.62, built on August 23, 2023
Licensed to Hunan Institute of Science and Technology / henu itstaff
Subscription is active until February 9, 2024.
Runtime version: 17.0.8+7-b1000.8 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true

Non-Bundled Plugins:
com.intellij.properties.bundle.editor (232.8660.88)
org.strangeway.vaadin (232.8660.142)
com.intellij.spring.websocket (232.8660.142)
com.jetbrains.packagesearch.intellij-plugin (232.9559.10)
io.jmix.studio (2.0.1-232)

Kotlin: 232-1.9.0-IJ9559.62

Running pnpm install to resolve and optionally download frontend dependencies. This may take a moment, please stand by…
2023-08-28 07:27:42 LOG INFO: Using node 18.14.1 located at C:\Users\scott.vaadin\node\node.exe
2023-08-28 07:27:45 LOG INFO: Using npm 9.3.1 located at C:\Users\scott.vaadin\node\node.exe
2023-08-28 07:27:52 LOG INFO: Generated pnpm configuration: D:\prj\jmix-sale-management.jmix\screen-designer.npmrc
2023-08-28 07:27:56 LOG INFO: using ‘C:\Users\scott.vaadin\node\node.exe C:\Users\scott.vaadin\node\node_modules\npm\bin\npx-cli.js --yes --quiet pnpm --shamefully-hoist=true --ignore-scripts install’ for frontend package installation
e[?25le[36m?e[39m e[1mThe modules directory at “D:\prj\jmix-sale-management.jmix\screen-designer\node_modules” will be removed and reinstalled from scratch. Proceed?e[22m e[2m(Y/n)e[22m e[2m»e[22m e[36mtruee[39me[4D

Hi, Scott
this problem relates to the dev server module from the framework, so I need to know which version of jmix is used in the project?

So far it looks like a problem pnpm fetch way in CI does not work · Issue #6615 · pnpm/pnpm · GitHub.

For workaround, you can try running the command from logs (C:\Users\scott.vaadin\node\node.exe C:\Users\scott.vaadin\node\node_modules\npm\bin\npx-cli.js --yes --quiet pnpm --shamefully-hoist=true --ignore-scripts install) manualy in terminal with an additional --config.confirmModulesPurge=false (solution from this issue) or --frozen-lockfile or --force option.

Thanks for the feedback.

Regards,
Mikhail

Hi @m.fedoseev,

AFAIK, the node server is for UI preview, which should not impact displaying the view hierarchy structure and component inspector, because these information are parsed from XML files, is this correct?

Hi, Bryan

Yes, your comment sounds good and logical and we implemented it in the Studio version 2.1. You can see ticket here: https://youtrack.jmix.io/issue/JST-4036/Make-disabling-View-Designer-Preview-available-for-Flow-UI-projects.

Regards,
Mikhail

1 Like

which version of jmix is used in the project?
A: io.jmix.studio (2.0.1-232)

when I run the command suggested get the error as below:

PS D:\prj\jmix-sale-management> C:\Users\scott.vaadin\node\node.exe C:\Users\scott.vaadin\node\node_modules\npm\bin\npx-cli.js --yes --quiet pnpm --shamefully-hoist=true --ignore-scripts install
‘“node”’ is not recognized as an internal or external command or operable program
or batch file.

微信截图_20230831081648

problem is still there when I update jmix plugin to latest version 2.02-232

Hello,

I need to know exactly the version of the framework, not the plugin (bomVersion in build.gradle).
The fix will be included in the next release of the framework: Dev server doesn't install node_modules · Issue #2188 · jmix-framework/jmix · GitHub
About node: try to install node manually from Download | Node.js.

Regards,
Mikhail

jmix {
bomVersion = ‘2.0.1’
}

Hi,
Also at mine is some problems with Jmix studio, look

Screenshot from 2023-09-01 12-48-28

The projects is at link GitHub - florintanasa/genedatabank: GeneDataBank is an genetic plant database.

Hi,

This is known regression (https://youtrack.jmix.io/issue/JST-4253/Hierarchy-is-empty-if-the-descriptor-has-an-entityPicker-with-a-nested-action). Will be fixed as soon as it possible in next patch release.

Regards,
Mikhail

1 Like