Skip to content

Commit

Permalink
🚀 chore(gradle.properties): update pluginVersion to 1.7.11-EAP
Browse files Browse the repository at this point in the history
🐛 fix(ProtobufFileType.kt): add workaround for issue #164
The pluginVersion is updated to 1.7.11-EAP, which is the latest version of the plugin. A workaround is added to the ProtobufFileType.kt file to fix issue #164. The workaround initializes the ProtobufStubTypes to avoid a null pointer exception.
  • Loading branch information
devkanro committed Apr 14, 2023
1 parent cb7cf54 commit 4aab096
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
pluginGroup=io.kanro.idea.plugin.protobuf
pluginName=IntelliJ Protobuf Language Plugin
# SemVer format -> https://semver.org
pluginVersion=1.7.10
pluginVersion=1.7.11-EAP
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=231
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@ package io.kanro.idea.plugin.protobuf.lang

import com.intellij.openapi.fileTypes.LanguageFileType
import io.kanro.idea.plugin.protobuf.ProtobufIcons
import io.kanro.idea.plugin.protobuf.lang.psi.stub.type.ProtobufStubTypes
import javax.swing.Icon

class ProtobufFileType : LanguageFileType(ProtobufLanguage) {
companion object {
val INSTANCE = ProtobufFileType()

init {
// Workaround for issue #164
ProtobufStubTypes
}
}

override fun getName(): String {
Expand Down

0 comments on commit 4aab096

Please sign in to comment.