Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wixperiments debugging #84

Merged
merged 1 commit into from
May 22, 2024
Merged

Conversation

simuons
Copy link

@simuons simuons commented May 22, 2024

Debugging wixperiments fails with

Error running 'Bazel build :wixperiments_dev'
Plugin file 'external/scala_2024_1/Scala/lib/bsp4j-2.1.0-M3.jar' not found. Did the build fail?

This happens at https://github.com/wix-playground/intellij/blob/wix-master/plugin_dev/src/com/google/idea/blaze/plugin/run/BlazeIntellijPluginDeployer.java#L189

It searches deploy file execution path (external/scala_2024_1/Scala/lib/bsp4j-2.1.0-M3.jar) within build artifacts relative paths which is darwin_x86_64-fastbuild/Scala/lib/bsp4j-2.1.0-M3.jar and cannot find it

Build artifact files are pupulated here https://github.com/wix-playground/intellij/blob/wix-master/base/src/com/google/idea/blaze/base/command/buildresult/OutputArtifactParser.java#L80

Add special treament for external files so deployer can find it.

Debugging wixperiments fails with
```
Error running 'Bazel build :wixperiments_dev'
Plugin file 'external/scala_2024_1/Scala/lib/bsp4j-2.1.0-M3.jar' not found. Did the build fail?
```

This happens at https://github.com/wix-playground/intellij/blob/wix-master/plugin_dev/src/com/google/idea/blaze/plugin/run/BlazeIntellijPluginDeployer.java#L189

It searches deploy file execution path (`external/scala_2024_1/Scala/lib/bsp4j-2.1.0-M3.jar`)
within build artifacts relative paths which is `darwin_x86_64-fastbuild/Scala/lib/bsp4j-2.1.0-M3.jar`
and cannot find it

Build artifact files are pupulated here https://github.com/wix-playground/intellij/blob/wix-master/base/src/com/google/idea/blaze/base/command/buildresult/OutputArtifactParser.java#L80

Add special treament for external files so deployer can find it.
@simuons simuons merged commit b464c3f into wix-master May 22, 2024
3 checks passed
@simuons simuons deleted the bep-local-path-relative-path branch May 22, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant