Skip to content

Commit 8d06e44

Browse files
committed
docs: replace Pkg.Apps.update with Pkg.Apps.add for JETLS updates
Pkg.Apps.update("JETLS") does not always work reliably. Changed all documentation to recommend re-running the installation command (Pkg.Apps.add with rev="release") for updates instead. Written by Claude
1 parent 4140ebe commit 8d06e44

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
131131
```
132132
This installs the executable to `~/.julia/bin/` (as `jetls` on Unix-like systems, `jetls.exe` on Windows).
133133
Make sure `~/.julia/bin` is in your `PATH`.
134-
- Updating: Update JETLS to the latest version using:
134+
- Updating: Update JETLS to the latest version by re-running the installation command:
135135
```bash
136-
julia -e 'using Pkg; Pkg.Apps.update("JETLS")'
136+
julia -e 'using Pkg; Pkg.Apps.add(; url="https://github.com/aviatesk/JETLS.jl", rev="release")'
137137
```
138138
- Launching: Language clients should launch JETLS using the `jetls` executable with appropriate options.
139139
See <https://aviatesk.github.io/JETLS.jl/dev/launching/> for detailed launch options.

docs/src/index.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,15 @@ If this displays the help message, the installation was successful and `~/.julia
4242
is properly added to your `PATH`.
4343

4444
!!! info "Updating JETLS"
45-
To update JETLS to the latest version:
45+
To update JETLS to the latest version, re-run the installation command:
4646
```bash
47-
julia -e 'using Pkg; Pkg.Apps.update("JETLS")'
47+
julia -e 'using Pkg; Pkg.Apps.add(; url="https://github.com/aviatesk/JETLS.jl", rev="release")'
4848
```
49-
When installed with `rev="release"` (as shown above), `Pkg.Apps.update("JETLS")`
50-
will fetch the most recent version since the `release` branch always
51-
points to the latest release.
5249

5350
To pin a specific version instead, use the release tag `rev="YYYY-MM-DD"`:
5451
```bash
5552
julia -e 'using Pkg; Pkg.Apps.add(; url="https://github.com/aviatesk/JETLS.jl", rev="2025-11-25")'
5653
```
57-
Note that pinned versions will not be updated by `Pkg.Apps.update("JETLS")`.
5854

5955
## Editor setup
6056

jetls-client/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,17 @@ The extension will automatically use the `jetls` (or `jetls.exe` on Windows)
5252
executable from your `PATH`.
5353

5454
> [!note]
55-
> To update JETLS to the latest version:
55+
> To update JETLS to the latest version, re-run the installation command:
5656
>
5757
> ```bash
58-
> julia -e 'using Pkg; Pkg.Apps.update("JETLS")'
58+
> julia -e 'using Pkg; Pkg.Apps.add(; url="https://github.com/aviatesk/JETLS.jl", rev="release")'
5959
> ```
6060
>
61-
> When installed with `rev="release"` (as shown above), `Pkg.Apps.update("JETLS")`
62-
> will fetch the most recent version since the `release` branch always
63-
> points to the latest release.
64-
>
6561
> To pin a specific version instead, use the release tag `rev="YYYY-MM-DD"`:
6662
>
6763
> ```bash
6864
> julia -e 'using Pkg; Pkg.Apps.add(; url="https://github.com/aviatesk/JETLS.jl", rev="2025-11-25")'
6965
> ```
70-
>
71-
> Note that pinned versions will not be updated by `Pkg.Apps.update("JETLS")`.
7266
7367
## Launching configuration (advanced)
7468

0 commit comments

Comments
 (0)