OpenYOLO-Android icon indicating copy to clipboard operation
OpenYOLO-Android copied to clipboard

Android Studio auto complete shows Protobuf package too

Open riyaz opened this issue 7 years ago • 1 comments

When I try to auto-complete the classes most of the times it shows me same classes with two packages one is actual and another is protobuf class, this multiple package could possibly confuse the user on which one to select, I don't remember seeing this in any of other libs.

screen shot 2017-10-28 at 10 29 01 am screen shot 2017-10-28 at 10 28 08 am

riyaz avatar Oct 28 '17 05:10 riyaz

There's not a lot we can do about this, the protocol buffer messages have the same name as the "utility" wrappers that we defined for programmer convenience by design. If you like, you can add an exclusion for auto imports from org.openyolo.protocol.Protobuf in your project:

exclude

Or, to do it manually, create a codeInsightSettings.xml file under the .idea directory of your project, with contents like the following:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="JavaProjectCodeInsightSettings">
    <excluded-names>
      <name>org.openyolo.protocol.Protobufs</name>
    </excluded-names>
  </component>
</project>

iainmcgin avatar Oct 30 '17 15:10 iainmcgin

This repo is being archived. Closing issue.

timcappalli avatar Jul 24 '23 17:07 timcappalli