Repository navigation
Commit 7f9e749
authored
ban println to prevent lsp crashes, since it uses stdio to communicate (#2659)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Enforces no-stdout across the workspace (Clippy + stderr), updates LSP
capabilities, and includes minor refactors and tooling tweaks.
>
> - **Lint/CI**:
> - Enforce `clippy::print_stdout` across the workspace in CI (`cargo
clippy --workspace -- -D clippy::print_stdout`).
> - Add `#![deny(clippy::print_stdout)]` to `engine/language_server`.
> - **Stdout → Stderr changes**:
> - Replace `println!` with `eprintln!` in numerous modules (compiler
lowering, runtimes, VM debug, CLI tools, tracing publisher, language
clients) to avoid polluting stdio.
> - Add targeted `#[allow(clippy::print_stdout)]` on intentional
user-facing stdout paths (CLI outputs, REPL, formatter, test renderer,
auth, etc.).
> - **Language Server**:
> - Disable `codeActionProvider` and `documentFormattingProvider` (set
to `None`).
> - Misc logging tweaks and startup messages moved to stderr.
> - **Tools/Dev UX**:
> - Hot-reload utility: replay stdin without holding locks across
awaits; simplify child status polling.
> - Playground: minor type signature cleanups (`&'static str` → `&str`).
> - **Core/Lib changes**:
> - Rename `LLMProvider::from_str` to `try_from_str`.
> - Minor log message punctuation and additional allowances.
> - **Env/Tooling**:
> - Update `mise.toml` (add cargo ripgrep, node/python tool notes and
settings).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
abb4a01. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 12e3825 commit 7f9e749
35 files changed
Lines changed: 85 additions & 68 deletions
File tree
- .github/workflows
- engine
- baml-compiler/src/hir
- baml-lib
- baml-log/src
- llm-client/src/clients
- baml-runtime/src
- cli
- test_executor
- tracingv2/publisher
- baml-vm/src
- boundary-udf/src
- cli/src
- generators/utils/test_harness/src
- language_client_python/src
- types
- language_client_ruby/ext/ruby_ffi/src/types
- language_client_typescript/src/types
- language_server/src
- baml_project
- llm-response-parser/src
- playground-server/src/bin
- tools/src/bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| 399 | + | |
398 | 400 | | |
399 | 401 | | |
400 | 402 | | |
| |||
842 | 844 | | |
843 | 845 | | |
844 | 846 | | |
| 847 | + | |
845 | 848 | | |
846 | 849 | | |
847 | 850 | | |
| |||
1629 | 1632 | | |
1630 | 1633 | | |
1631 | 1634 | | |
| 1635 | + | |
1632 | 1636 | | |
1633 | 1637 | | |
1634 | 1638 | | |
| |||
0 commit comments