-
Notifications
You must be signed in to change notification settings - Fork 230
fix: resolve 4 bugs in termui #3585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,3 +138,5 @@ export class Form extends Widget { | |
| } | ||
| } | ||
| } | ||
|
|
||
| .catch(err => console.error("Promise.all failed:", err)); | ||
|
Comment on lines
+141
to
+142
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== locate Form.ts =="
fd -a 'Form\.ts$' . || true
echo "== git status/stat =="
git diff --stat || true
echo "== packages/ui/src/Form.ts outline/size =="
wc -l packages/ui/src/Form.ts
ast-grep outline packages/ui/src/Form.ts 2>/dev/null || true
echo "== relevant Form.ts sections =="
sed -n '1,180p' packages/ui/src/Form.ts
echo "== syntax check with TypeScript if available =="
if command -v tsc >/dev/null 2>&1; then
tsc --noEmit --strict packages/ui/src/Form.ts 2>&1 | head -60 || true
else
echo "tsc not available"
fiRepository: Karanjot786/TermUI Length of output: 7756 Remove the detached Line 142 is outside the 🧰 Tools🪛 Biome (2.5.6)[error] 142-142: Expected a statement but instead found '.catch(err => console.error("Promise.all failed:", err))'. (parse) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Karanjot786/TermUI
Length of output: 307
🏁 Script executed:
Repository: Karanjot786/TermUI
Length of output: 2792
🏁 Script executed:
Repository: Karanjot786/TermUI
Length of output: 687
Restore the no-Ctrl clear shortcut.
event.ctrl !is a non-null assertion. It does not negateevent.ctrl. Plaincfails this condition. Ctrl+C quits at lines 121-122 before the clear shortcut is reached.Proposed fix
Type assertions must include an inline comment explaining why.
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines