vaadin / designer

Public repository for Vaadin Designer
https://vaadin.com/designer
16 stars 3 forks source link

Designer not working on IntelliJ #2435

Closed csenkey closed 2 years ago

csenkey commented 2 years ago

Steps to reproduce

I created a new project with vaadin-starter (flow with JAVA + HTML). Tried to open a vaadin 10 design ts file.

Actual behavior

Edit and preview mode not working only Source mode.

Expected behavior

Edit mode is working so I can design my view.. Preview mode is also working

IDE, Designer and OS version

IntelliJ IDEA 2021.2.3 (Community Edition) Build #IC-212.5457.46, built on October 12, 2021 Runtime version: 11.0.12+7-b1504.40 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.1 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Non-Bundled Plugins: com.vaadin.designer2.intellij (4.6.15), com.haulmont.jpab (2022.1.2-212) Kotlin: 212-1.5.10-release-IJ5457.46 Vaadin designer : 4.6.15

See idea log file. There are vaadin designer related exceptions in log. idea.log

TatuLund commented 2 years ago

Should this be addressed by 4.6.16 now. See:

https://plugins.jetbrains.com/plugin/9519-vaadin-designer/versions

csenkey commented 2 years ago

Dear Vaadin Team,

I have upgraded to 4.6.16. Designer still does not work for me.

Pls find error message in logs.

Best regards, Istvan Csenkey-Sinko

On Wed, May 4, 2022 at 9:32 AM Tatu Lund @.***> wrote:

Should this be addressed by 4.6.16 now. See:

https://plugins.jetbrains.com/plugin/9519-vaadin-designer/versions

— Reply to this email directly, view it on GitHub https://github.com/vaadin/designer/issues/2435#issuecomment-1117009135, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3RXJBVFBXNOMSC75Z77R3VIIR2FANCNFSM5RWJSXJQ . You are receiving this because you authored the thread.Message ID: @.***>

MaikBluemel commented 2 years ago

Dear Vaadin Team,

I have the same problem as the thread-creator. I also updated to the latest Plugin Version "4.6.16" but without any effect.

I think it might have something todo with the errormessage, that the embeddedBrowser seems not be availble for arm-architecture:

mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libbrowsercore_toolkit.dylib' (no such file
java.lang.UnsatisfiedLinkError: /private/var/folders/_6/scfbpcnn1bn5ry46qrf_6_0r0000gn/T/JxBrowser/7.15/libbrowsercore_toolkit.dylib: dlopen(/private/var/folders/_6/scfbpcnn1bn5ry46qrf_6_0r0000gn/T/JxBrowser/7.15/libbrowsercore_toolkit.dylib, 0x0001): tried: '/private/var/folders/_6/scfbpcnn1bn5ry46qrf_6_0r0000gn/T/JxBrowser/7.15/libbrowsercore_toolkit.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libbrowsercore_toolkit.dylib' (no such file)
    at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
    at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
    at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
    at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
    at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
    at java.base/java.lang.Runtime.load0(Runtime.java:768)
    at java.base/java.lang.System.load(System.java:1837)
    at com.teamdev.jxbrowser.internal.JniLibrary.loadLibrary(JniLibrary.java:53)
    at com.teamdev.jxbrowser.internal.JniLibrary.lambda$new$0(JniLibrary.java:47)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at com.teamdev.jxbrowser.internal.JniLibrary.<init>(JniLibrary.java:45)
    at com.teamdev.jxbrowser.internal.ToolkitLibrary.<init>(ToolkitLibrary.java:38)
    at com.teamdev.jxbrowser.internal.ToolkitLibrary.instance(ToolkitLibrary.java:28)
    at com.teamdev.jxbrowser.engine.internal.EngineImpl.newInstance(EngineImpl.java:190)
    at com.teamdev.jxbrowser.engine.Engine.newInstance(Engine.java:161)
    at com.vaadin.designer2.browser.EmbeddedJxBrowserFactory.createBrowser(EmbeddedJxBrowserFactory.java:49)
    at com.vaadin.designer2.browser.EmbeddedJxBrowserFactory.createEmbeddedBrowser(EmbeddedJxBrowserFactory.java:100)
    at com.vaadin.designer2.browser.EmbeddedJxBrowserFactory.createEmbeddedBrowser(EmbeddedJxBrowserFactory.java:88)
    at com.vaadin.designer2.intellij.editor.VaadinDesignWebEditor.lambda$createEditorPanel$8(VaadinDesignWebEditor.java:745)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:265)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:829)

I find the exactly same error in my idea.log.

Hope this helps a little at this bug. Best regards, Maik Blümel

szolo commented 2 years ago

@MaikBluemel @csenkey hello, could you please try Chrome Editor for Designer instead using Embedded Editor? Will it address the problem? We are using external library for the Embedded Editor and according to the logs it should be updated.

MaikBluemel commented 2 years ago

@szolo: With chrome-editor it works well!

Thank you very much, didn't notice, that this option even exist, but now I know and it works fine.

csenkey commented 2 years ago

Dear Vaadin,

I am not sure where to set these. I get this creating a new Vaadin design: [image: Screenshot 2022-05-12 at 13.01.55.png] This load forever, but nothing happens I can edit in source mode: [image: Screenshot 2022-05-12 at 13.02.05.png] but can not switch back to Edit Mode If I click to "Open design in browser..." button and copy/paste address nothing is shown in nor Safari nor Chrome. Designer 8 works a bit "better" but still not working: [image: Screenshot 2022-05-12 at 13.07.11.png]

Could you please guide me to make the Vaadin Designer running! I am using it on a new M1 Mac. Thank you in advanced!

Best regards, Istvan

On Thu, May 12, 2022 at 9:27 AM Maik Blümel @.***> wrote:

@szolo https://github.com/szolo: With chrome-editor it works well!

Thank you very much, didn't notice, that this option even exist, but now I know and it works fine.

— Reply to this email directly, view it on GitHub https://github.com/vaadin/designer/issues/2435#issuecomment-1124628013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3RXJHPIKD4UDHZXK76EBDVJSXETANCNFSM5RWJSXJQ . You are receiving this because you were mentioned.Message ID: @.***>

v-tron commented 2 years ago

Got the same issue on an M1 Mac. Unfortunately I can't use Chrome Editor since I am working with Vaadin 8 Designer files. But not only does it hang on "Please wait, loading view", once you do anything in Designer like open a preview in the browser IntelliJ as a whole becomes completely unresponsive and needs to be force quit.

v-tron commented 2 years ago

Can we please get an update on this? This is a paid product and it has been broken for months now..

szolo commented 2 years ago

Hello @v-tron.

Could you try one more time whether Vaadin Designer works for you? I have updated library which caused exception above and released new version previous week.

v-tron commented 2 years ago

Hey @szolo, unfortunately, as of version 4.6.17 i still get infinite "Please wait, loading view" on startup, on new designer 8 files I create as well as my own html files which I created manually. When I switch from edit mode to source mode I can edit the source, but clicking the button to go back to edit mode does nothing.

I attached a file with errors and warnings that appear when installing designer/restarting the IDE and trying to use designer.

EDIT: When I click the button "open design in browser" and copy the link into chrome (it auto opens in firefox but nothing happens) IntelliJ becomes completely unresponsive and I have to force quit it. No logs are generated either.

designer_intellij.log

v-tron commented 2 years ago

More errors I found:

designer_intellij2.log

wesoos commented 2 years ago

Hello, any update regarding v-tron issue above? I am experiencing the same issue. Also, it's not loading the fonts when trying to set a font for an item in the designer. There are errors related to it and other things in the logs. Attached. Please advise as soon as possible. Thanks idea.log

wesoos commented 2 years ago

I am using Vaadin 8

josegulisano commented 2 years ago

Hello, any update on this issue?

ohens commented 2 years ago

Hi, same issue here for some time. Vaadin 23 used to work, Vaadin 8 designs not working for several month now. Vaadin 23 stopped working after upgrade to latest release now too. Same behavior, spinning forever loading the view. After changing to code-edit-mode and back to visual designer, IntelliJ freezes. Tried on a fresh project on Mac (Intel-based) and Windows as well. We purchased pro license just for the designer, so this is unfortunate.

szolo commented 2 years ago

Hello @ohens, what about using a Chrome-based editor for now? Will it work for you?

ohens commented 2 years ago

Hi @szolo, no - Chrome-based editor makes no difference. My colleague just informed me, that Vaadin8 designs seem to work on his Windows Laptop, but not the flow designs. On a mac (intel), neither works, chrome-editor is enabled.

wesoos commented 2 years ago

Vaadin 8 designs only work sometimes for me. And only if the Valo theme is set. If I open the designer with any other theme, it will make IntelliJ unstable and needs to be restarted..

csenkey commented 2 years ago

Dear Vaadin,

This thread is getting VERY frustrating. :(

You have a PAID product and it is not working for some of us for months now. (For me it never worked). In fact one of the reasons we chose to go with the pro licence instead of the free core was the drag-and-drop UI editor.

Please provide us a version where everything works as it should be. Or if you are sure it should work please provide us with a step-by-step installation manual and a detailed user guide.

My environment is: IntelliJ IDEA 2021.2.3 Mac M1 chip (macOS Monterey) Vaadin Designer: 4.6.18

Waiting for your early reply!

Best regards, Dr. Istvan Csenkey-Sinko

wesoos @.***> ezt írta (időpont: 2022. júl. 28., Cs, 16:21):

Vaadin 8 designs only work sometimes for me. And only if the Valo theme is set. If I open the designer with any other theme, it will make IntelliJ unstable and needs to be restarted..

— Reply to this email directly, view it on GitHub https://github.com/vaadin/designer/issues/2435#issuecomment-1198209107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3RXJHRHMEFFMTT3M2KMMTVWKJQFANCNFSM5RWJSXJQ . You are receiving this because you were mentioned.Message ID: @.***>

josegulisano commented 2 years ago

I agree with the last comment. Disappointed this is taking so long to get any traction. I am willing to have someone from the Vaadin team remote into my machine if you are unable to replicate these issues, provide logs or anything that you ask for that might help.

My Environment: IntelliJ Build #IU-222.3345.118 Mac M1 macOS Monterey Vaadin Designer 4.6.18

szolo commented 2 years ago

Hello, we're currently working on this issue. It is not related to Designer directly, but rather to a library utilized for embedded browser. For Flow - please use Chrome Editor instead of embedded. For Vaadin 8 you could use Eclipse for now, it works as expected.

csenkey commented 2 years ago

Dear Vaadin,

I tried to install Vaadin Designer on another, older Intel based Mac. During startup I get this error message, that node is not installed. While I can access node easily with terminal. What am I doing wrong?

Please provide urgent help, for I am playing with Vaadin Designer without any success for months now.

Best regards, Dr Istvan Csenkey-Sinko

szolo @.***> ezt írta (időpont: 2022. aug. 1., H, 18:11):

Hello, we're currently working on this issue. It is not related to Designer directly, but rather to a library utilized for embedded browser. For Flow - please use Chrome Editor instead of embedded. For Vaadin 8 you could use Eclipse for now, it works as expected.

— Reply to this email directly, view it on GitHub https://github.com/vaadin/designer/issues/2435#issuecomment-1201408282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3RXJFO3KNG5ZSXIGUN5LDVW7ZJHANCNFSM5RWJSXJQ . You are receiving this because you were mentioned.Message ID: @.***>

szolo commented 2 years ago

Hello @csenkey, please check https://github.com/vaadin/designer/issues/2359 for some workarounds.

szolo commented 2 years ago

Hello, Designer 4.6.19 has been released. Please give it a try.

josegulisano commented 2 years ago

@szolo, when do you expect the plugin to be available in the IntelliJ Marketplace? I have been trying to upgrade to this new version but can't find the new version.

szolo commented 2 years ago

Hello @josegulisano, usually it takes couple days for JetBrains to approve a plugin update.

nemanjakmno commented 2 years ago

Still nothing on this? Stucked in "Please wait, loading view..." for vaadin 8 design html file

ohens commented 2 years ago

Same here for previously working vaadin 8 design files (still on IntelliJ, did not try Eclipse as we do not use that IDE). Vaadin Flow is working again.