You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9b92f07
Browse filesBrowse the repository at this point in the historyBrowse files
chore(showcase): take Go and Rust hover shots, and stop only the daemons this run started
Add code-intelligence-go-hover (strings.Split in a seeded Go attempt of group-anagrams, with its links to SplitN and Cut) and code-intelligence-rust-hover (Vec in a seeded Rust attempt of product-except-self). The settings shot waits for gopls and rust-analyzer too, and each hover shot waits for its own server to stop, found below cstudy serve, so two never run at once.
stop_gradle stopped every Gradle daemon that appeared while the script ran, whoever started it, so another build on the same machine could lose its daemon. A watcher now notes the Gradle and Kotlin daemons below the script's own process every half second, since a daemon belongs to the build that started it until that build ends, and stops only those, by PID and only while each still runs the command it was noted with.
Copy file name to clipboardExpand all lines: tools/showcase/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ A run takes several minutes and runs one Chromium, `cstudy serve` and the langua
30
30
31
31
`--shots` takes some of the screenshots of the `shots` stage, by name, such as `--shots web-ui-attempt,web-ui-settings`; a shot left out does not open its view, so leaving out `web-ui-health` starts no Gradle. `--variants` takes the screenshots in some themes and widths only, such as `--variants light-phone`: on a machine short of memory, one variant per run starts one Chromium and one Java language server at a time, and frees them in between. `--video-theme dark` records the animations in the dark theme.
32
32
33
-
When it ends, stop what it may have left: `ps -Ao pid,ppid,etime,command | rg -i "basedpyright|typescript-language-server|jdtls|uvicorn|cstudy serve|ms-playwright|GradleDaemon"`. The script stops the server and the browser, and the Gradle daemons that started while it ran (`cstudy doctor --fix` and the Health view start them). A daemon that was already running stays, and so may be shared with other work: check its builds before you kill it, by PID.
33
+
When it ends, stop what it may have left: `ps -Ao pid,ppid,etime,command | rg -i "basedpyright|typescript-language-server|jdtls|gopls|rust-analyzer|uvicorn|cstudy serve|ms-playwright|GradleDaemon|KotlinCompileDaemon"`. The script stops the server and the browser, and the Gradle and Kotlin daemons that its own processes started (`cstudy doctor --fix`, the Health view and JDT LS start them): it looks at the processes below it every half second while it runs, notes the daemons it finds there, and stops those by PID at the end. A daemon that was running before, or that other work on this machine starts meanwhile, is never below the script, so it stays.
34
34
35
35
## What it makes
36
36
@@ -42,6 +42,8 @@ Desktop images are 1440 by 900, the phone ones 390 wide at 2x. A name is `<name>
42
42
|`code-intelligence-error`| An undefined name underlined, with its message |
43
43
|`autocomplete-list`| The completion list with its documentation panel |
44
44
|`code-intelligence-java-hover`| The Javadoc tooltip on `getOrDefault` in top-k-frequent-elements (Java), from Eclipse JDT LS; the seed stage starts that attempt |
45
+
|`code-intelligence-go-hover`| The documentation of `strings.Split` in group-anagrams (Go), from gopls, with its links to `SplitN` and `Cut`; the seed stage starts that attempt |
46
+
|`code-intelligence-rust-hover`| The documentation of `Vec` in product-except-self (Rust), from rust-analyzer and the toolchain's standard library; the seed stage starts that attempt |
45
47
|`web-ui-problems`| The problem list |
46
48
|`web-ui-attempt`| A project attempt with the file tree, the editor, a run's results and the statement |
47
49
|`web-ui-project`| The same attempt with several file tabs open |
@@ -68,4 +70,5 @@ Recording uses Playwright's `record_video_dir` with a small injected pointer, si
68
70
- The script writes files only into `--work` and `--out`. Nothing it makes is committed for you.
69
71
- It needs the language servers, so it runs `cstudy doctor --fix` with the network. After that it works offline.
70
72
- A new language server needs a new feature shot, as Java's has, and a scene in `code_intelligence_scene` if the animation should show it. The health shot picks up new rows by itself; the settings shot also waits for each server's line, so a JDK outside 25 and 26 stops it instead of showing Java's `needs JDK 25 or 26`.
71
-
- JDT LS says ready before its first Gradle import ends, so the Java shot hovers again until the Javadoc shows, for up to three minutes, and waits for the server to stop before the next variant, so that two never run at once.
73
+
- JDT LS says ready before its first Gradle import ends, so the Java shot hovers again until the Javadoc shows, for up to three minutes. The Go and Rust shots hover the same way. Each of the three waits for its server to stop before the next shot, so that two never run at once.
74
+
- The Go and Rust shots need gopls, which `cstudy doctor --fix` builds with the selected Go, and rust-analyzer on `PATH` (`rustup component add rust-analyzer`), which the script never installs. The settings shot waits for both lines.
0 commit comments