jvolkman / intellij-protobuf-editor

Protocol Buffers for IntelliJ-based IDEs
Apache License 2.0
122 stars 15 forks source link

Imports not auto-configured on Linux, unlike macOS #22

Closed kevinmichaelchen closed 4 years ago

kevinmichaelchen commented 4 years ago

Thanks for the great plugin! This project has helped my workflow.

I'm not sure if this is an issue with my OS (Ubuntu 20.04 Focal Fossa), the editor (IntelliJ 2020.1.2), or this plugin (version 2), but the imports were not auto-configured correctly, which is something I didn't experience on macOS.

To fix, I had to go to Settings > Languages & Frameworks > Protocol Buffers, and uncheck "Configure automatically", and then add a path to my root repo.

Just thought I'd raise the issue in case any one else experiences what they perceive as "broken imports" on Linux.

jvolkman commented 4 years ago

Is it possible that your project structure differs between your macOS machine and your Ubuntu machine? The default import paths are the project's source roots, so maybe you had something marked as a root on one machine and not the other?

This is also covered in the readme

jvolkman commented 4 years ago

Closing this since I assume it's due to differing project configurations and not a bug.