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

`~` is not supported in external import roots #252

Closed maratori closed 2 months ago

maratori commented 3 months ago

We use bazel in our project. It puts external .proto files in the directory containing ~, for example

/private/var/tmp/_bazel_marat-reymers/9eb28da2e14c36618091dce70be2b929/external/com_google_googleapis~

The plugin can't resolve imports from that directory.

As a workaround, I've created a symlink and used it in the settings.

devkanro commented 3 months ago

Can your provide a example project for it?

maratori commented 3 months ago

Here is the repository with the example https://github.com/maratori/protobuf-plugin-bug

devkanro commented 2 months ago

This is an IntelliJ issue, IntelliJ ignore all files and folders which ends with ~

You can change this behavoir by Settings | Editor | File Types | Ignore files and folders

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206260659-IDEA-10-hides-directories-with-tilde

devkanro commented 2 months ago

image