Menu design is not reflected in application

Jmix - 2.3

In one of my application when i change the menu in design, it is not reflected when the application is running. The running application shows the menu design that was two days before.

Deleting gradle, build doesnot solve the issue.

Please advice.

Hi,
I have the same problem with 2.2.3 and I found this solution

Now I’m checking this every time before the build … sometimes I forget to do this and then I spend time until I remember :slight_smile:

You want to look for MainView.class . somewhere under .jmix\conf\

I hoped that this was solved with 2.3 , I guess I’ll try reinstalling everything when I have time

Kind regards,
Mladen

Thanks @mbucan

Deleting corresponding files from .jmix folder solved the issue.

Please check if “Clean Hot Deploy Conf Directory” task is added to the “Before launch” list in your Run/Debug configuration in the IDE.

See also NoSuchViewException - unreferenced entry showing in the main menu - #6 by krivopustov

It is/was there, still this problem.

Now a have another problem Removal of theme compact design. Is it similar

Can you confirm that you have the “Clean Hot Deploy Conf Directory” taks but it doesn’t clean .jmix dir on start?

I just run the application (not even logged). .jmix directory and past hot deploy is still there.

see the pic
Screenshot 2024-07-04 141302

Is this you were querying? and this remains even after logged in

Screenshot 2024-07-04 141608

Please try to execute “Reload from disk” command in the context menu of the .jmix node after restarting the app. Sometimes the IDE doesn’t reload changes in directories instantly.

It is same, I have checked it even in file explorer.

Thank you for testing. We’ll think how to diagnose the problem.

Hi

Could you please attach idea.log file?

idea.zip (507.2 KB)

Thank you for the log provided.
But unfortunately there is no valuable information in the log.
I’ve improved logging for this “Clean Hot Deploy Conf Dircetory” before run task.

Could you please install latest NIGHTLY build with this improvements (Jmix 2.3.NIGHTLY1366-241)? Installation :: Jmix Documentation
Then DEBUG logging level should be enabled for 2 categories. Help → Diagnostic Tools → Debug Log Settings…

com.haulmont.jmixstudio.buildsystem.gradle.runconfiguration
com.haulmont.jmixstudio.intellij.hotdeploy

Screenshot 2024-07-05 at 10.56.41

With this debug logging enabled please run application (with non-empty conf directory) and attach idea.log again.

Thank you

I followed your instruction. Problem persists.
idea.zip (731.2 KB)

Please note this is happening only in one project not in any other project. Other projects the config folder is being deleted.

I have another project of same name in jmix 1.5 and i was coping code from 1.5 to 2.3 by opening both projects. May this be the reason?

Thank you for your cooperation!
Two projects with the same name is not a problem since they have unique path. Did you create this 2.3 project from scratch via Studio or maybe copied somehow from initial 1.5 project?

The new log provided shows that the project or Run/Debug configuration has some non-expected structure. So Jmix Studio can’t resolve this conf directory path.
Could you please attach the whole project folder? Without src and build folders, so you won’t share your code.
You can send it via forum private messages if you want.

I made this project in jmix 2.2.3 initially them -

  1. copied entities files from 1.5 and changed them as required as per 2.3.
  2. Made views and copied and changed my code from 1.5

I can send the project (except src and build) but it is 157 mb after zip.

To reduce archive size you can also exclude node_modules and .jmix/screen-designer folders. They have huge size and contain frontend files that are not relevant to the current issue.

Thank you.

sent the project

Got the project, thank you

But I can’t find any problem in project structure or run configuration settings that can cause the issue.

You can try to do the following:

  • Invalidate IDEA caches: File → Invalidate Caches… → Invalidate and Exit

If this doesn’t help:

  • Close IDEA, delete (or move) jmix-studio.xml and sheelonline.iml files, .jmix and .gradle folders, all content of .idea folder except encodings.xml in the project directory.
  • Open the project in the IDE as a Gradle project. After Gradle import and indexing completed run/debug configuration should be recreated.