Skip to content

The lookup of a command calls PathEnvironmentVariableUtil.findInPath, which IntelliJ 2026.3 schedules for removal #1927

Closed

Description

@lagergren

Since #1693, CommandUtils looks up the command of a language server, a debug adapter or an installer's exec task in the PATH of its working directory's environment with PathEnvironmentVariableUtil.findInPath(String, String, FileFilter): in resolveExecutable, and on Windows in findInWindowsPath for a name that has an executable extension. IntelliJ 2026.3 deprecates every findInPath overload for removal. The plugin verifier reports these two calls as the "2 usages of scheduled for removal API" against IU-263.7307.200: "This method will be removed in a future release". Once it is removed, the lookup of a command with a working directory fails with a NoSuchMethodError, so such a language server doesn't start.

The replacements of 2026.3, PathEnvironmentVariableUtil.findFirst and findAll, don't exist in IntelliJ 2024.2, which LSP4IJ still supports. But the lookup needs only getPathDirs, which both versions have and neither deprecates. In 2024.2, findInPath(name, path, null) takes the first directory of getPathDirs(path) that is absolute and a directory, and in which name is a file that can be executed. LSP4IJ can do the same itself, as findInWindowsPath already does for a name without an extension.

#1693 is new in 0.30.0, so this would ship with it.

Activity

  1. added this to the 0.30.0 milestone on Nov 10, 2026
  2. moved this to In Progress in Java Toolingon Nov 10, 2026
  3. added
    bug
    on Nov 10, 2026
  4. moved this from In Progress to Done in Java Toolingon Nov 10, 2026
  5. added a commit that references this issue on Nov 11, 2026
    ff5e28d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions