Julio Zynger
07/04/2020, 1:56 PMRelatedItemLineMarkerProvider . I have registered the class in the plugin.xml file (as JAVA and kotlin entries) but I still do not receive calls to either on collectNavigationMarkers nor getLineMarkerInfo. What am I missing?Brian
07/04/2020, 3:13 PMplugin.xml?Julio Zynger
07/04/2020, 3:15 PMBrian
07/04/2020, 3:24 PMJulio Zynger
07/04/2020, 3:25 PMrunIde is a log line for the ProjectComponent I have set up to diagnose the issueJulio Zynger
07/04/2020, 3:26 PMBrian
07/04/2020, 3:44 PMdsavvinov
07/06/2020, 9:05 AMLineMarkerProvider is picked up fine for me: I see multiple lines like getLineMarkerInfo PsiElement(package) in my console (from which I’ve run the runIde-task)
Is the issue reproducible for you on clean build?Julio Zynger
07/06/2020, 2:27 PM./gradlew clean runIde still doesn’t spit these log lines. May I ask, which kind of project are you testing on? Java only, Kotlin only, Java/Kotlin mixed?
I tried again with a (very old) mixed Java/Kotlin project and can see the log lines there. Going back to my ‘real-world’ project, they won’t show up. Maybe it is a ‘bad cache’ issue but seems like something specific about my larger Kotlin-only target project?Julio Zynger
07/06/2020, 4:37 PMJulio Zynger
07/06/2020, 4:38 PMsvg png dot and dbml files so far, if that helpsJulio Zynger
07/06/2020, 6:39 PMval fileType = FileTypeManager.getInstance().getFileTypeByExtension(fileExtension)
With the `FileType`s one can do
fileType -> FileTypeIndex.getFiles(fileType, GlobalSearchScope.projectScope(project))
to get the VirtualFiles associated with it.dsavvinov
07/07/2020, 4:06 AMJulio Zynger
07/07/2020, 12:18 PMgetAnnotations on the UClass returns an empty array. Here is the commit if you wanna have a deeper look: https://github.com/julioz/FloorPlan/pull/46/commits/13e4bd421a985a087e05fb1899db7745e58ca62ddsavvinov
07/08/2020, 6:24 AM@Database annotation (and corresponding import) are unresolved? You can easily verify it by using an annotation, which is declared right in the test-file, like this:
annotation class MyDatabaseAnnotation
@MyDatabaseAnnotation
interface MyDatabasedsavvinov
07/08/2020, 6:25 AMJulio Zynger
07/08/2020, 8:50 AMpackage androidx.room
annotation class Database
did the trick 👍