Still on the IntellijLang subject: I have some of my code recognized as HQL without any annotation. But any new part of code that I want to be supported as HQL language, requires a @org.intellij.lang.annotations.Language("HQL").
Why is that?
and, err, sorry for that, but I'm sorry but still unable to find the jar containing org.intellij.* even though the plugin is installed. I've been looking for it in all IDEA folder under OS X (~/Library/Preferences/IntelliJIDEA80, ~/Library/Application Support/IntelliJIDEA80/, ~/Library/Caches/IntelliJIDEA8x) but coudn't find it.
I have some of my code recognized as HQL without any annotation.
But any new part of code that I want to be supported as HQL language, requires a @org.intellij.lang.annotations.Language("HQL").
Why is that?
The language injection can be configured either in the IDE settings (Settings | Language Injection | Parameters) or via the @Language annotation. The predefined methods are configured in the settings. The "Inject Language" annotation adds the quickfix if possible.
and, err, sorry for that, but I'm sorry but still unable to find the jar containing org.intellij.* even though the plugin is installed.
redist/annotations.jar under the IntelliJ IDEA installation directory.
-- Dmitry Jemerov Development Lead JetBrains, Inc. http://www.jetbrains.com/ "Develop with Pleasure!"
It's wrong anyway (com.intellij instead of org.jetbrains.annotations) and clashes with the redist/annotations.jar which contains both org.jetbrains & org.intellij.lang.
It'd be nice to have something definitive from Jetbrains on the matter. Projects need to compile in any environment anyway.
The existing library on Maven public repo is probably not managed by Jetbrains, Is it?
<dependency> <groupId>com.intellij</groupId> <artifactId>annotations</artifactId> <version>7.0.3</version> </dependency> It's wrong anyway (com.intellij instead of org.jetbrains.annotations) and clashes with the redist/annotations.jar which contains both org.jetbrains & org.intellij.lang.
It'd be nice to have something definitive from Jetbrains on the matter. Projects need to compile in any environment anyway.
We've long wanted to publish official Maven artifacts for our redistributable libraries, but unfortunately never got around to it. Hopefully some day...
-- Dmitry Jemerov Development Lead JetBrains, Inc. http://www.jetbrains.com/ "Develop with Pleasure!"
We've long wanted to publish official Maven artifacts for our redistributable libraries, but unfortunately never got around to it. Hopefully some day...
-- Dmitry Jemerov Development Lead JetBrains, Inc. http://www.jetbrains.com/ "Develop with Pleasure!"
Perhaps today can be that day. I was also surprised to see it's not out there already.
Still on the IntellijLang subject:
I have some of my code recognized as HQL without any annotation.
But any new part of code that I want to be supported as HQL language, requires a @org.intellij.lang.annotations.Language("HQL").
Why is that?
and, err, sorry for that, but I'm sorry but still unable to find the jar containing org.intellij.* even though the plugin is installed.
I've been looking for it in all IDEA folder under OS X (~/Library/Preferences/IntelliJIDEA80, ~/Library/Application Support/IntelliJIDEA80/, ~/Library/Caches/IntelliJIDEA8x) but coudn't find it.
thanks for helping
Hello nodje,
The language injection can be configured either in the IDE settings (Settings
| Language Injection | Parameters) or via the @Language annotation. The predefined
methods are configured in the settings. The "Inject Language" annotation
adds the quickfix if possible.
redist/annotations.jar under the IntelliJ IDEA installation directory.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry,
I got it to work (and to know and understand the 'Settings -> Language Injection' section).
The existing library on Maven public repo is probably not managed by Jetbrains, Is it?
<dependency>
<groupId>com.intellij</groupId>
<artifactId>annotations</artifactId>
<version>7.0.3</version>
</dependency>
It's wrong anyway (com.intellij instead of org.jetbrains.annotations) and clashes with the redist/annotations.jar which contains both org.jetbrains & org.intellij.lang.
It'd be nice to have something definitive from Jetbrains on the matter.
Projects need to compile in any environment anyway.
Cheers,
nodje
Hello nodje,
We've long wanted to publish official Maven artifacts for our redistributable
libraries, but unfortunately never got around to it. Hopefully some day...
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Perhaps today can be that day. I was also surprised to see it's not out there already.