Skip to content

Avoid false warning about apps in PATH on Windows#4559

Merged
KristofferC merged 1 commit intoJuliaLang:masterfrom
visr:which-bat
Dec 16, 2025
Merged

Avoid false warning about apps in PATH on Windows#4559
KristofferC merged 1 commit intoJuliaLang:masterfrom
visr:which-bat

Conversation

@visr
Copy link
Copy Markdown
Contributor

@visr visr commented Dec 9, 2025

In 1.12 and higher I keep getting this when adding Pkg apps.

Warning: App 'runic' was installed but is not available in PATH.

However, .julia\bin is in my path, so the warning is wrong. The reason is that Sys.which("runic") === nothing (but in my terminal which runic does work).

julia> Sys.which("runic")

julia> Sys.which("runic.bat")
"C:\\ProgramData\\DevDrives\\.julia\\bin\\runic.bat"

(@v1.12) pkg> app rm Runic
[ Info: Deleting all apps for package Runic
[ Info: Deleted runic

(@v1.12) pkg> app add Runic
    Updating `C:\ProgramData\DevDrives\.julia\environments\apps\Runic\Project.toml`
⌅ [70703baa] + JuliaSyntax v0.4.10
  [21216c6a] + Preferences v1.5.0
    Updating `C:\ProgramData\DevDrives\.julia\environments\apps\Runic\Manifest.toml`
⌅ [70703baa] + JuliaSyntax v0.4.10
  [21216c6a] + Preferences v1.5.0
  [ade2ca70] + Dates v1.11.0
  [de0858da] + Printf v1.11.0
  [fa267f1f] + TOML v1.0.3
  [4ec0a83e] + Unicode v1.11.0
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
[ Info: For package: Runic installed apps runic
┌ Warning: App 'runic' was installed but is not available in PATH.
│ Consider adding 'C:\ProgramData\DevDrives\.julia\bin' to your PATH environment variable.
└ @ Pkg.Apps C:\ProgramData\DevDrives\.julia\juliaup\julia-1.12-nightly\share\julia\stdlib\v1.12\Pkg\src\Apps\Apps.jl:91

@github-project-automation github-project-automation Bot moved this to New in Pkg.jl Dec 9, 2025
@KristofferC KristofferC merged commit 5bfdd95 into JuliaLang:master Dec 16, 2025
10 of 11 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in Pkg.jl Dec 16, 2025
@visr visr deleted the which-bat branch December 16, 2025 13:21
IanButterworth pushed a commit that referenced this pull request Dec 16, 2025
KristofferC pushed a commit that referenced this pull request Dec 19, 2025
@KristofferC KristofferC mentioned this pull request Dec 19, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants