Code Completion does not work for createQuery().setParameter() using Jakarta EE

已回答
Code Completion works for javax.persistence.setParameter(String name, Object value), not for jakarta.persistence.setParameter(String name, Object value)
 
Language Injection seems correct for EntityManager.createQuery().
 
Is this a bug in IntelliJ?
 
jakarta:
 
 
 
javax:
 
 
 
0

Could you try following steps one by one and check if the issue is still happening:

  • File > Invalidate Caches.. > enable Clear file system cache and Local History option > Invalidate and Restart
  • Close IntelliJ, delete .idea folder and any *.iml files in your project root folder, re-import project from existing sources
  • Temporarily disable all third-party plugins

If the issue persists, please share sample project to try to reproduce the issue on our side, and your IDE logs (Help > Collect Logs and Diagnostic Data) via https://uploads.jetbrains.com, just provide us the uploaded file ID. Thanks!

0

Fail after following your list.

Created a sample project: Upload id: 2023_05_29_qAT5J8uyUd1tY5wHJd4FNW (file: demo5.zip)

Same problem om another PC

 

IntelliJ IDEA 2023.1.2 (Ultimate Edition), Windows 10

0

Thanks for the project. I managed to reproduce the issue, and created it in the issue tracker: https://youtrack.jetbrains.com/issue/IDEA-321205
I added you as the issue watcher. You can vote for it to increase popularity.

1

请先登录再写评论。