Skip to content

Add rust-analyzer setup for Bazel and VS Code tasks#103

Open
ShoroukRamzy wants to merge 1 commit into
eclipse-score:mainfrom
Valeo-S-CORE-Organization:rust_analyzer_setup
Open

Add rust-analyzer setup for Bazel and VS Code tasks#103
ShoroukRamzy wants to merge 1 commit into
eclipse-score:mainfrom
Valeo-S-CORE-Organization:rust_analyzer_setup

Conversation

@ShoroukRamzy

Copy link
Copy Markdown
Contributor

Added instructions in the README.md for generating the rust-project.json file required by rust-analyzer in a Bazel workflow. Also included a .vscode/tasks.json to easily automate this generation and updated .vscode/settings.json to explicitly point rust-analyzer to the generated Bazel project config, ensuring Cargo does not conflict.
This will significantly improve the IDE onboarding experience for new developers.

@github-actions

Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
2026/05/21 11:31:41 Downloading https://github.com/aspect-build/aspect-cli/releases/download/5.9.36/bazel-5.9.36-linux-x86_64...
2026/05/21 11:31:42 Downloading https://releases.bazel.build/8.3.0/release/bazel-8.3.0-linux-x86_64...
Starting local Bazel server (8.3.0) and connecting to it...
INFO: Invocation ID: 4208290e-bd4f-440a-a431-68ac59cf5d0c
Computing main repo mapping: 
Computing main repo mapping: 
DEBUG: Rule 'rules_boost+' indicated that a canonical reproducible form can be obtained by modifying arguments integrity = "sha256-LTilyiMMjpYyAi1PW+8RycyAEHy9clo7915R0Bchb2E="
DEBUG: Repository rules_boost+ instantiated at:
  <builtin>: in <toplevel>
Repository rule http_archive defined at:
  /home/runner/.bazel/external/bazel_tools/tools/build_defs/repo/http.bzl:394:31: in <toplevel>
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'score_bazel_platforms', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'googletest', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 4 packages loaded
Loading: 4 packages loaded
    currently loading: 
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/feo/feo/BUILD
ERROR: no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/feo/feo/BUILD
INFO: Elapsed time: 11.180s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@ShoroukRamzy

Copy link
Copy Markdown
Contributor Author

Hi @johannes-esr, as we discussed in the meeting this pr is to solve the rust analyzer setup issue in bazel environment. Thanks!

@ShoroukRamzy

Copy link
Copy Markdown
Contributor Author

Hi @johannes-esr, as we discussed in the meeting this pr is to solve the rust analyzer setup issue in bazel environment. Thanks!

Hi @johannes-esr and @artemsheinacn, Any feedback regarding this PR?

@artemsheinacn

Copy link
Copy Markdown
Contributor

Hi @masc2023, I reviewed it, please merge if you can.

@artemsheinacn

Copy link
Copy Markdown
Contributor

@armin-acn @johannes-esr Could you approve & merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants