Hello. I'm trying to migrate my plugin to K2. In m...
# intellij-plugins
r
Hello. I'm trying to migrate my plugin to K2. In my plugin, I have a function for creating a gradle module with different functionality that adds import to a file located in the main module. For this, I have a line like ``ktPsiFactory.createImportDirective(ImportPath.fromString(moduleCanonicalName)``, but when I enable K2 mode, I get the error "is scheduled for removal because its signature references 'org. jetbrains. kotlin. resolve. ImportPath' scheduled for removal in a future version " on the
createImportDirective
and
ImportPath.fromString
functions. What is the current replacement for these functions? I searched, but did not find the correct replacement
b
This is actually a false positive - you can suppress it
thank you frog 1
j
Can I ask what your plugin does and if it’s available to install? I only ask because I maintain a plugin that allows one to create grader modules as well :) https://github.com/j-roskopf/ModuleMakerPlugin
b
I don't know the answer, but you may want to ask that question again outside of this unrelated thread 😅
t
upps sorry