Hello,
I have an IDE Console script that was working fine for a long time, but in 2026.2 it stopped working saying that the following imports are not found anymore:
import com.intellij.database.dataSource.DataSourceStorage
import com.intellij.database.dataSource.LocalDataSource
Do you know whether they have been moved / renamed in the latest version?
Thanks!
Which version did it last work in?
PhpStorm 2026.1.4 was the last working one, and PhpStorm 2026.2 is the first broken one.
So I was able to make them work with the following:
def loader = Thread.currentThread().getContextClassLoader()
def DataSourceStorage = loader.loadClass("com.intellij.database.dataSource.DataSourceStorage")
def LocalDataSource = loader.loadClass("com.intellij.database.dataSource.LocalDataSource")
Not sure if this is the recommended approach, but seems to be working.