Can't migrate from FileEditorManager.openFile(VirtualFile) to requestOpenFile(VirtualFile)

Hi,
I see FileEditorManager.openFile(VirtualFile, boolean) and FileEditorManager.openFile(VirtualFile) are now deprecated and we should use their non-blocking variants FileEditorManager.requestOpenFile(...).

I migrated my code and everything works as expected, but I’m just wondering why these new requestOpenFile methods are still marked as Experimental. Shouldn’t they be stable by now? Can I use them safely?

See intellij-community/platform/analysis-api/src/com/intellij/openapi/fileEditor/FileEditorManager.kt at master · JetBrains/intellij-community · GitHub

Thx.

Actually, FileEditorManager.requestOpenFile(com.intellij.openapi.vfs.VirtualFile) doesn’t exist in Rider EAP 7. I get

Unhandled exception in ExecutionInitiator(USER)
java.lang.NoSuchMethodError: void  com.intellij.openapi.fileEditor.FileEditorManager.requestOpenFile(com.intellij.openapi.vfs.VirtualFile)

errors when using it…

Hi, Rider problem should be temporary and caused by a race in EAP builds, should converge.

We kept them Experimental as it is the first Major release including them and we need to see how public adoption goes, there might be changes in some emergency cases. Deprecated methods will not go away anytime soon, as there are tons of usages.