Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-281

Unable to locate node on Windows if multiple candidates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.14
    • Fix Version/s: 4.14.1
    • Component/s: Core
    • Labels:
      None

      Description

      On Windows, if you have multiple versions of node in your PATH, the command where node will return the two paths, like:

      F:\Dev\SonarSource\sonarlint-language-server\src\test\resources\fake-ts-project\node\node.exe
      F:\Dev\Node\12.x-lts\node.exe
      

      Currently this situation lead to no paths detected.

      We should instead take the first one.

        Attachments

          Activity

            People

            Assignee:
            julien.henry Julien Henry
            Reporter:
            julien.henry Julien Henry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: