Repository navigation
feat(cli): add Java toolchain diagnostics to concore doctor - #631
Somya-jain0811 wants to merge 2 commits into
Conversation
| "Linux": "sudo apt install julia", | ||
| "Darwin": "brew install julia", | ||
| "Windows": "winget install -e --id JuliaLang.Julia", |
There was a problem hiding this comment.
Both of these fail if you copy them. winget -e is case-sensitive and the real ID is Julialang.Julia, so JuliaLang.Julia gives "No package found" (tried it on my machine). Ubuntu 22.04 and 24.04 also don't have a julia package anymore. I'd point to juliaup instead: curl -fsSL https://install.julialang.org | sh on Linux and `winget install -e --id
| "Windows": "winget install -e --id EclipseAdoptium.Temurin.17.JDK", | ||
| }, | ||
| }, | ||
| "Julia": { |
There was a problem hiding this comment.
Not sure a host julia check fits here. mkconcore only handles .jl nodes in docker mode (mkconcore.py:647) and they run inside the julia:1.10 image, so the local julia never gets used for a study. So a docker user with a Julia node gets a warning for something they don't need, and someone with julia installed sees + Julia even though a posix build won't run a .jl node. I'd either drop it or make the label say it's only for running the Julia tests locally.
bc25240 to
8e9f82e
Compare
|
Good catch @Sahil-u07, thanks for pointing that out! I checked I've updated the PR to drop the Julia check completely so we stay focused just on |
| "MATLAB", | ||
| "Verilog (iverilog)", | ||
| "Docker", | ||
| "Java (javac)", |
There was a problem hiding this comment.
why is this ending in a comma? Pls remove the last comma.
There was a problem hiding this comment.
done, removed it and put the tuple on one line. it fits in ruff's 88 char limit so ruff format is still clean.
| hint_str = f" (install: {hint})" if hint else "" | ||
| # Docker, MATLAB, Verilog are optional - show as warning | ||
| if tool_label in ("MATLAB", "Verilog (iverilog)", "Docker"): | ||
| # Optional tools - show as warning |
There was a problem hiding this comment.
Shouldn't this comment read " # Docker, MATLAB, Verilog, and Java are optional - show as warning"
or do you have reason to shorten the comment?
There was a problem hiding this comment.
I shortened it so it wouldn't get out of date whenever a tool gets added to the tuple, but naming them is clearer to read. changed it to "Docker, MATLAB, Verilog, and Java are optional - show as warning"
Fixes #630
concore doctorverified C++, Python, Verilog, Octave, MATLAB, and Docker, but omitted Java.This PR adds:
Java (javac)detection withJAVACEXEandJAVACWINtool path config support.!when absent rather than hard failure).apt), macOS (brew), and Windows (winget).Added unit tests in
tests/test_doctor.pycovering tool definitions, presence detection, version flag output parsing (including older JDK stderr fallback), and CLI reporting.Tests pass locally:
ruff format --check .(clean)ruff check .(clean)pytest tests/test_doctor.py tests/test_setup.py(30 passed in 4.97s)