ice1000 / intellij-zig

The IntelliJ IDEA plugin for the Zig programming language ┗:smiley:┛ ┏:smiley:┓ ┗:smiley:┛ ┏:smiley:┓
GNU General Public License v3.0
113 stars 27 forks source link

Modernize plugin codebase #41

Closed anatol closed 2 years ago

anatol commented 2 years ago

Replace deprecated API with its new alternatives

anatol commented 2 years ago

cc @linux-china who also interested in this plugin development

anatol commented 2 years ago

Build and Run operations now work in the IDEA

ice1000 commented 2 years ago

Kotlin is a well-designed language, but the IDE support and the compiler are mind-blowingly lame. I've seen at least 2k internal compiler errors before. Never seen that much of ICEs on a compiler like Kotlin.

anatol commented 2 years ago

I feel that this issue is related to class loaders somehow. I doubt that it is some Kotlin compiler issue.

For now, I can drop the change from the PR. But eventually I think, all the source code needs to be consistent and written in a singe language (i.e. Kotlin).

ice1000 commented 2 years ago

Thank you for your contribution!

ice1000 commented 2 years ago

I doubt that it is some Kotlin compiler issue.

I think it's because Kotlin objects are compiled with constant instances, while the interface has static members. But Idk.

Thank you very much for your contribution! I have uploaded an update to JB plugin center.