How can I open .zul file in Intellij? - intellij-idea

I have downloaded the ZK plugin, but when I create a .zul file, it is just recognized as an unknown file for intellij. I tried resetting cache and rebooting, didn't make a difference..
Is there a way to connect the plugin to the extension? Am I missing something here?

I had quite the opposite experience, I created a .zul file and IntelliJ automatically suggested something like: "There's a plugin available that handles .zul files, would you like to install download and it?" -> confirmed and restarted ... Then .zul files are registered as XML files under Settings/File Types and code completion is working.
Not sure how this is failing for you, can you provide your version details including the plugins installed?
Here what I am using (Help/About):
IntelliJ IDEA 2019.2.4 (Community Edition)
Build #IC-192.7142.36, built on October 29, 2019
Runtime version: 11.0.4+10-b304.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-72-generic
...
Non-Bundled Plugins: org.zkoss.zkidea

Related

Intellij Ultimate 2016.2.5 wsl2 path not shown

I have to use intellij 2016.2 ultimate based on license constraints.
I want to use it with wsl2 and I installed intellij on windows.
The problem I have, is that in the project explorer my wsl path is not shown.
Earlier, I used the latest community edition which works fine with this setup.
Is wsl2 supported with intellij 2016.2 or is there an additional setup I have to take in concern

Gradle sync fails when creating a new Kotlin project with default settings in freshly installed IntelliJ IDEA

I wanted to learn some Kotlin so I installed IntelliJ IDEA, created a new Kotlin project with the default settings and then the IDE tells me that Gradle sync has failed. Here's the error message:
Could not open init generic class cache for initialization script 'C:\Users\<my_name>\AppData\Local\Temp\wrapper_init.gradle' (C:\Users\<my_name>\.gradle\caches\6.8\scripts\344chmz69zyndatc9zp4rwux5).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60
I googled the error and got a suggestion to try a different JDK version. Tried a few different versions but that didn't help. Then I installed the IDE on my laptop to see if that works and there I don't get any errors. As far as I can tell, the project settings were exactly the same on both machines but obviously something is messed up on my desktop computer. Both have Windows 10.
I'm also not at all familiar with the Java/Kotlin ecosystem or the build tools or whatever so I honestly have no idea how I could even begin fixing some Gradle errors. I don't really even know what Gradle is or what it does. So can you help me?
First, check the version which the project uses: File > Project Structure. Or, during project creation (https://i.stack.imgur.com/SXIzQ.png / example with SDK 1.8)
It has to be the same as JDK / SDK installed on your computer.
To verify java version installed in your terminal:
java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~19.10-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Select home directory dialog can't select a directory

I want to select a new home directory for JDK, as I want to use a newer JDK. However, when selecting NEW -> JDK in the Project SDK settings, a Windows XP style dialog opens up, in which I can only select files and not directories. When I select an arbitrary file in the directory I really want to select, nothing happens.
This is the dialog I get:
This also applies to other projects, I have already invalidated my Caches and I'm sure it has worked once upon a time. This is the result I receive from "About":
IntelliJ IDEA 2019.1.3 (Ultimate Edition)
Build #IU-191.7479.19, built on May 28, 2019
Licensed to DPS Engineering GmbH / Timo Borner
You have a perpetual fallback license for this version
Subscription is active until June 18, 2020
JRE: 1.8.0_202-release-1483-b58 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
Note that I have the same post on the IntelliJ support forum.
Deleting the file ide.general.xml solves the issue. It is not an elegant solution, because this seems to be a bug on the side of IntelliJ (see this ticket).
The problem is, that when syncing settings via the settings repository on Linux and Windows, weird things happen.

IntelliJ replacing $MODULE_DIR$ with physical path

I am using IntelliJ & facing an issue.
In module properties under Path tab, I wanted my output path to be like "$MODULE_DIR$\bin" but when i am trying to check-in into my repository, its replacing "$MODULE_DIR$" with actual physical path. So if someone else will checkout that .iml file will have my module's physical path.
Did someone please confirm if this issue is resolved or it is still an issue?
IntelliJ IDEA version details is as below -
IntelliJ IDEA 2017.2.2 Build #IU-172.3757.52, built on August 15, 2017
JRE: 1.8.0_152-release-915-b10 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 7 6.1

Dart 1.12.0 Intellij upgrade issues

I have updated the dart-sdk and dartium but when I go into intellij to update the plug-in, It will tell me there is not a newer version from 141.1586 when 142.4509 is the latest version. So I have tried to download and install the plugin manually but I get an error "Plugin 'Dart' is incompatible with this installation". I have even gone as far as shutting down Intellij IDEA 14.1.4 and overwritting the files in the plugin directory (which didn't work). Does anyone know what I need to do to fix this issue?
I am running Windows 10 64bit
The latest Dart plugin releases that have version 142.* are compatible only with IntelliJ IDEA 15 EAPs.