False warning Julia not on path #64

Closed
opened 2026-07-16 06:39:49 -07:00 by BjarkeHautop · 1 comment
BjarkeHautop commented 2026-07-16 06:39:49 -07:00 (Migrated from github.com)

Running app add Kaimon gave this false warning:

[ Info: For package: Kaimon installed apps kaimon
 Warning: App 'kaimon' was installed but is not available in PATH.
 Consider adding '/home/bjarke/.julia/bin' to your PATH environment variable.

My PATH (and Julia (and kaimon) works fine from terminal):

(base) bjarke@bjarke-Nitro-ANV16-41:~$ echo $PATH | tr ':' '\n'
/home/bjarke/.julia/bin
/home/bjarke/miniconda3/bin
/home/bjarke/miniconda3/condabin
/home/bjarke/typst
/home/bjarke/.juliaup/bin
/home/bjarke/.cargo/bin
/home/bjarke/.local/bin
/usr/local/bin
/usr/local/sbin
/usr/bin
/usr/sbin

Using Linux Mint 22.3

Running `app add Kaimon` gave this false warning: ```julia [ Info: For package: Kaimon installed apps kaimon ┌ Warning: App 'kaimon' was installed but is not available in PATH. │ Consider adding '/home/bjarke/.julia/bin' to your PATH environment variable. ``` My PATH (and Julia (and kaimon) works fine from terminal): ```bash (base) bjarke@bjarke-Nitro-ANV16-41:~$ echo $PATH | tr ':' '\n' /home/bjarke/.julia/bin /home/bjarke/miniconda3/bin /home/bjarke/miniconda3/condabin /home/bjarke/typst /home/bjarke/.juliaup/bin /home/bjarke/.cargo/bin /home/bjarke/.local/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin ``` Using Linux Mint 22.3
kahliburke commented 2026-07-17 00:17:02 -07:00 (Migrated from github.com)

Thanks for the report! This warning doesn't come from Kaimon — it's emitted by Julia's Pkg AppManager, in check_apps_in_path (stdlib Pkg/src/Apps/Apps.jl):

https://github.com/JuliaLang/Pkg.jl/blob/master/src/Apps/Apps.jl

function check_apps_in_path(apps)
    for app_name in keys(apps)
        which_name = app_name * (Sys.iswindows() ? ".bat" : "")
        which_result = Sys.which(which_name)
        if which_result === nothing
            @warn """
            App '$app_name' was installed but is not available in PATH.
            Consider adding '$(julia_bin_path())' to your PATH environment variable.
            """ maxlog = 1

It's a false positive from Sys.which("kaimon") returning nothing during the app add run even though ~/.julia/bin is on your PATH (which is why kaimon works fine from your terminal). Since it's a benign, cosmetic warning originating upstream in Pkg rather than in Kaimon, this should be reported to Pkg.jl if it persists. Closing here as it's not a Kaimon bug.

The install itself succeeded — you're good to go.

Thanks for the report! This warning doesn't come from Kaimon — it's emitted by Julia's `Pkg` AppManager, in `check_apps_in_path` (stdlib `Pkg/src/Apps/Apps.jl`): https://github.com/JuliaLang/Pkg.jl/blob/master/src/Apps/Apps.jl ```julia function check_apps_in_path(apps) for app_name in keys(apps) which_name = app_name * (Sys.iswindows() ? ".bat" : "") which_result = Sys.which(which_name) if which_result === nothing @warn """ App '$app_name' was installed but is not available in PATH. Consider adding '$(julia_bin_path())' to your PATH environment variable. """ maxlog = 1 ``` It's a false positive from `Sys.which("kaimon")` returning `nothing` during the `app add` run even though `~/.julia/bin` is on your PATH (which is why `kaimon` works fine from your terminal). Since it's a benign, cosmetic warning originating upstream in Pkg rather than in Kaimon, this should be reported to [Pkg.jl](https://github.com/JuliaLang/Pkg.jl) if it persists. Closing here as it's not a Kaimon bug. The install itself succeeded — you're good to go.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kahliburke/Kaimon.jl#64
No description provided.