Skip to content

Error @Index is not supported for double does not tell Entity and Field. #902

Closed

Description

@ridcully99

Describe the bug
When annotating a field of type Double with @Index, the ObjectBox processor shows the following error:

Note: [ObjectBox] Starting ObjectBox processor (debug: false, incremental: true)
error: [ObjectBox] 'viewOrder' @Index is not supported for Double, remove @Index.
[ObjectBox] 'viewOrder' @Index is not supported for Double, remove @Index.

1 error

From that error message one cannot tell what Entity and Field it refers too. Of course I can just search through all of my entities, but it would be much easier, if the error message would contain the Entity and Field directly.

Basic info (please complete the following information):

  • ObjectBox version (are you using the latest version?): 2.7.0
  • Reproducibility: 100%

To Reproduce

Create an Entity with a field of type Double and annotate the field with @Index.
Try to build the project.

Expected behavior
Error should contain Entitiy and Field name.

Activity

  1. greenrobot-team commented on Aug 24, 2020

    @greenrobot-team
    Member

    Thanks. Is it not possible to click on the error message? It should jump to the field that caused the error.

    What IDE are you using?

  2. greenrobot-team commented on Aug 24, 2020

    @greenrobot-team
    Member

    OK, both with Java and Kapt and using Android Studio 4.1 RC1 the message is not clickable. Will look into this. Thanks!

  3. added this to the 3.0 milestone on Aug 25, 2020
  4. greenrobot-team commented on Aug 25, 2020

    @greenrobot-team
    Member

    Thanks again, this will be fixed in the next release.

  5. ridcully99 commented on Aug 25, 2020

    @ridcully99
    Author

    Sorry I didn't react to your question earlier, but seems you checked for yourself already. Your quick reactions are much appriciated.

  6. modified the milestones: 3.0, 2.8.0 on Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions