Intellij does not trigger custom ArchiveFileSystem
已回答
I tried implementing ArchiveFileSystem, but it is never triggered by the system.
The goal is to be able to work with files from archivelib.abc the same way as with .jar dependencies.
Here's the dummy plugin project with dummy AbcFileSystem https://github.com/Katalune/AbcFileSystem
Here's test project which contains archivelib.abc as a dependency https://github.com/Katalune/Testandroidapp
What I need to change to make IDE to trigger AbcFileSystem and to ask for files in archivelib.abc archive? Is it a bug?
(this post is a follow-up to https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010608279-Guidance-on-creating-custom-ArchiveFileSystem)
请先登录再写评论。
1) do not use 'object' in https://github.com/Katalune/AbcFileSystem/blob/main/src/main/kotlin/com/github/katalune/abcfilesystem/AbcFileSystem.kt#L7, but 'class' -- see https://plugins.jetbrains.com/docs/intellij/kotlin.html#caution
It seems you have not registered '.abc' extension + provided custom FileType implementation yet (see com.intellij.ide.highlighter.ArchiveFileType as reference)
As suggested I
It did not resolve the issue. FileSystem is never triggered. Anything else I need to implement to tell IntelliJ to start indexing `some.abc` archive for files?
Not sure if anyone will follow-up on this question (since it is marked "answered"). Posted a new one here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/4402963580050-Intellij-does-not-trigger-custom-ArchiveFileSystem-FileType-added-