Plugin development unable to find PbFile

Answered

I need to develop a plugin to edit proto files in my project, and for that, I want to access top-level messages. But when I try to parse the file using PSI I'm unable to resolve these classes.
 

https://github.com/JetBrains/intellij-plugins/tree/master/protobuf/protoeditor-core/src/com/intellij/protobuf/lang/psi

What should I do to fix this ?

Version Info:

IntelliJ IDEA 2023.2.5 (Ultimate Edition)

Build #IU-232.10227.8, built on November 8, 2023

Runtime version: 17.0.9+7-b1000.46 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

 

 

0
2 comments

Hi Sahitya,

You most likely missed adding dependency on the Protocol Buffers plugin. See: https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html

1

Please sign in to leave a comment.