bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://ij.bazel.build/
Apache License 2.0
753 stars 297 forks source link

Error:Cannot run program "bazel" : CreateProcess error=206, The filename or extension is too long #6481

Open kool79 opened 3 weeks ago

kool79 commented 3 weeks ago

Description of the issue. Please be specific.

Error:Cannot run program "bazel" (in directory "D:\dev\github\selenium"): CreateProcess error=206, The filename or extension is too long Most of files are non-synced after project rebase Standard 'sync' does not work IDEA Cache clear did not help

What's the simplest set of steps to reproduce this issue? Please provide an example project, if possible.

  1. checkout git@github.com:/SeleniumHQ/selenium.git
  2. Bazel > Sync > Non-incrementally sync... Same for regular sync.

Version information

IdeaUltimate: 2024.2 EAP Platform: Windows 10.0 Bazel for IntelliJ plugin: 2024.06.03.0.1-api-version-242 Bazel: 7.1.2

kool79 commented 3 weeks ago

IDEA log contains:

_2024-06-13 06:06:42,308 [ 780429] INFO - #com.google.idea.async.process.CommandLineTask - Running task: C:\ProgramData\chocolatey\bin\bazel.exe build --tool_tag=ijwb:IDEA:ultimate --override_repository=intellij_aspect=C:\Users\o.kulychok\AppData\Roaming\JetBrains\IntelliJIdea2024.2\plugins\ijwb\aspect --keep_going --build_event_binary_file=C:\Users\O4937~1.KUL\AppData\Local\Temp\intellij-bep-d74dde3a-53d3-4ec3-9c0f-6954fa2064e2 --nobuild_event_binary_file_path_conversion --curses=no --color=yes --progress_in_terminal_title=no --noexperimental_run_validations --aspects=@@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect --outputgroups=intellij-resolve-java-direct-deps,intellij-resolve-py-direct-deps,intellij-info-generic,intellij-info-java-direct-deps,intellij-info-py-direct-deps -- //java:auto-service //java/src/org/openqa/selenium:client-combined-lib //java/src/org/openqa/selenium:core-lib //java/src/org/openqa/selenium/bidi:augmenter //java/src/org/openqa/selenium/bidi:bidi //java/src/org/openqa/selenium/bidi/browsingcontext:browsingcontext //java/src/org/openqa/selenium/bidi/log:log //java/src/org/openqa/selenium/bidi/module:module //java/src/org/openqa/selenium/bidi/network:network //java/src/org/openqa/selenium/bidi/script:script //java/src/org/openqa/selenium/bidi/storage:storage //java/src/org/openqa/selenium/chrome:chrome-lib //java/src/org/openqa/selenium/chromium:chromium-lib //java/src/org/openqa/selenium/cli:cli //java/src/org/openqa/selenium/concurrent:concurrent //java/src/org/openqa/selenium/devtools:augmenter //java/src/org/openqa/selenium/devtools:devtools //java/src/org/openqa/selenium/devtools:devtools-prototypes //java/src/org/openqa/selenium/devtools/v123:cdp //java/src/org/openqa/selenium/devtools/v123:v123-lib //java/src/org/openqa/selenium/devtools/v124:cdp //java/src/org/openqa/selenium/devtools/v124:v124-lib //java/src/org/openqa/selenium/devtools/v125:cdp //java/src/org/openqa/selenium/devtools/v125:v125-lib //java/src/org/openqa/selenium/devtools/v85:cdp //java/src/org/openqa/selenium/devtools/v85:v85-lib //java/src/org/open

Seems plugin tries to pass all data, all files via command line

kool79 commented 3 weeks ago

Maybe similar to #6478

tpasternak commented 1 week ago

Thanks for the report. I think this one is different, it happens in a different place and probably is a windows-only problem