devkanro / intellij-protobuf-plugin

IntelliJ-based IDEs Protobuf Language Plugin that provides Protobuf language support.
Apache License 2.0
83 stars 11 forks source link

Does not resolve dot folders from import on Mac #198

Closed davidbauer99 closed 1 year ago

davidbauer99 commented 1 year ago

If protos in a dot folder (ie: .protos/) are added as an import path, they are not resolved in the editor. Things such as "Jump to Definition" and assisted imports do not work.

This can be replicated with the two following test files:

// In file `$PROJECT_ROOT/.protos/my_protos/test.proto`
syntax = "proto3";

package my_protos;

message Test {
  int64 id = 1;
}
// In file $PROJECT_ROOT/project_protos/types/my_type.proto
syntax = "proto3";

import "my_protos/test.proto";

package types;

message MyType {
    my_protos.Test Test = 1;
}

Here are screenshots of the settings/UI: import

proto_import_error

This does seem to work on the JetBrains Protocol Buffers Plugin but would like to keep using this one!

davidbauer99 commented 1 year ago

Wow just needed to click the common thing, in my testing somehow missed that 🤦