Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ridcully99 opened this issue Aug 21, 2020 · 4 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ridcully99
Copy link

ridcully99 commented Aug 21, 2020

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.

@ridcully99 ridcully99 added the bug Something isn't working label Aug 21, 2020
@greenrobot-team
Copy link
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?

@greenrobot-team
Copy link
Member

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

@greenrobot-team greenrobot-team self-assigned this Aug 24, 2020
@greenrobot-team greenrobot-team added this to the 3.0 milestone Aug 25, 2020
@greenrobot-team
Copy link
Member

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

@ridcully99
Copy link
Author

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

@greenrobot-team greenrobot-team modified the milestones: 3.0, 2.8.0 Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants