intellij-jsonnet
intellij-jsonnet copied to clipboard
Intellij Jsonnet Plugin
This enables spell checking for Jsonnet. I followed the advice from [this post](https://intellij-support.jetbrains.com/hc/en-us/community/posts/206157349-Enable-spell-checking-for-all-strings-and-comments).
#12 was merged more than a year ago, but has not been released yet. #29 (Is this plugin still maintained?) suggests: > Yes, our whole org uses the plugin daily....
Plugin version 1.1 has been crashing frequently on GoLand 2021.1.3, I am running it on Ubuntu 20.04.2 LTS. Attaching extra info about crash and IDE **stacktrace.txt** ``` java.lang.NullPointerException at com.jsonnetplugin.JsonnetCompletionContributor.findOuterObject(JsonnetCompletionContributor.java:306)...
With this fix, both jsonnet and libsonnet are working within the plugin. Built and tested locally (with IntelliJ 2021.1.1)
This new API is available since `2019.2`, so **only merge this when you want to move forward the `since` version of this plugin**. This reverts commit 7100c34dd7b50fb9fe3ba6fa3dbe5ca27ec0d3ef.
error
java.lang.IllegalStateException: TextAttributeKey(name:'KEYWORD', fallbackAttributeKey:'DEFAULT_STATIC_FIELD') was already registered with the other fallback attribute key: DEFAULT_KEYWORD at com.intellij.openapi.editor.colors.TextAttributesKey.mergeKeys(TextAttributesKey.java:219) at com.intellij.openapi.editor.colors.TextAttributesKey.lambda$getOrCreate$4(TextAttributesKey.java:205) at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1932) at com.intellij.openapi.editor.colors.TextAttributesKey.getOrCreate(TextAttributesKey.java:205) at com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey(TextAttributesKey.java:192) at com.thoughtworks.gauge.highlight.HighlighterTokens.(HighlighterTokens.java:40) at com.thoughtworks.gauge.highlight.SpecColorSettingsPage.(SpecColorSettingsPage.java:35) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)...
Not sure if its already there, Its not working for me in intellij community. It doesn't list jsonnet as file type or indents. Attaching image for reference.
Renaming *.jsonnet files fails on 2020.1, seems to be when they are imported from other *.jsonnet files. Stacktrace ``` com.intellij.diagnostic.PluginException: Cannot find manipulator for JsonnetImportopImpl(IMPORTOP) in com.jsonnetplugin.JsonnetImportopReference(JsonnetImportopImpl(IMPORTOP):(0,29)) class class com.jsonnetplugin.JsonnetImportopReference...
I'm trying to use https://github.com/ksonnet/ksonnet which has a very large `k8s.libsonnet` file. This thing is a beast, around 30,000 LOC, and I don't seem to get any syntax highlighting or...
It looks like the plugin considers an empty pair of curly braces as a syntax error.