-
Notifications
You must be signed in to change notification settings - Fork 0
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
When invoking code completion on an SQL file where the corresponding DAO method is not recognized, an error occurs when trying to retrieve the first element from an empty list during the suggestion of the top binding variable.
This issue may also occur if the DAO class file is not located within the source directory or in cases such as creating a temporary SQL file.
Expected behavior
The pre-check for the DAO method should be modified so that, if the list is empty, subsequent processing is skipped, preventing the error.
Desktop :
- IDEA Version: 2024.3.6
- Doma Tools Version: 2.0.0
Additional context
Line 196 in 71d4c29
| val top = elements.first() |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working