Where can I find kotlin idea plugin dependency lik...
# compiler
l
Where can I find kotlin idea plugin dependency like
org.jetbrains.kotlin.idea.highlighter.KotlinHighlightingColors
? I could find it in the kotlin source code, but I don't know how to add the dependency.
t
👍 1
l
I didn't know that I should also put
setPlugins
.. Thanks!
I have one more question, why this message appears?
Cannot resolve language with id ''kotlin''
t
I haven’t such a problem
Do you have prolog or namespace declaration in
plugin.xml
?
l
Maybe? This is my whole plugin.xml file:
Copy code
<idea-plugin>
	<id>com.asmx.ui.idea-plugin</id>
	<name>asmx-ui</name>
	<version>0.0.1</version>
    <!-- I'll add icons later -->
	
	<vendor email="<mailto:lhwdev@example.com|lhwdev@example.com>">lhwdev</vendor>
	
	<description><![CDATA[
		Assists writing asmx ui code and provides diagnoses and previewing ui.
    ]]></description>
	
	
	<idea-version since-build="201.6668" />
	
	<depends>com.intellij.modules.platform</depends>
	<depends>org.jetbrains.kotlin</depends>
	
	<extensions defaultExtensionNs="org.jetbrains.kotlin">
		<storageComponentContainerContributor implementation="com.asmx.ui.plugin.compiler.WidgetAnnotationChecker" />
		<storageComponentContainerContributor implementation="com.asmx.ui.plugin.compiler.TryCatchWidgetChecker" />
	</extensions>
	<extensions defaultExtensionNs="com.intellij">
		<annotator
			language="kotlin"
			implementationClass="com.asmx.ui.plugin.idea.WidgetAnnotator"/>
		<additionalTextAttributes scheme="Default"
			file="colorSchemes/WidgetAnnotatorColorSchemeDefault.xml"/>
		<colorSettingsPage
			implementation="com.asmx.ui.plugin.idea.UiColorSettingsPage"/>
	</extensions>
	
</idea-plugin>
t
Snippets looks better :)
l
I'm new to here so I didn't know how to use snippets; is it just attaching file?
t
Run
./gradlew buildPlugin
to download IDEA Kotlin plugin
Language declared in plugin
l
I already have it in the classpath but plugin.xml still shows error
t
What about “Invalidate caches and restart”?
l
I did it already, but it didn't work. Also, in
runIde
, this exception occurred: It seems that in the runtime, the kotlin library is missing.
t
Do you have
java
plugin in
.kts
?
l
No. Should I?? FYI I used shadowJar as some of my modules are missing runtime.
l
I put java plugin but this error still occurs...
I uploaded the whole source code on github: https://github.com/lhwdev/kt-ui/tree/master/idea-plugin
t
Why no plugin versions?
l
Sorry for late response. What plugin?