Closed sweep-ai[bot] closed 1 year ago
README.md
β
Sandbox logs for
trunk fmt README.md || exit 0
1/2 βChecked 1 file β No issues
trunk check --fix --print-failures README.md
2/2 βISSUES README.md:1:0 1:0 low First line in a file should be a top-level heading markdownlint/MD041 Checked 1 file 1 existing issue
workbench/features/chat/badWords.ts
β
Sandbox logs for
trunk fmt workbench/features/chat/badWords.ts || exit 0
1/2 βFAILURES prettier workbench/features/chat/badWords.ts .trunk/out/fAQd3.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 0 files β No issues, 1 failure
trunk check --fix --print-failures workbench/features/chat/badWords.ts
2/2 β (`1`)FAILURES prettier workbench/features/chat/badWords.ts .trunk/out/gpQTP.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure # .trunk/out/gpQTP.yaml trunk_cli_version: 1.17.1 title: prettier exited with exit_code=2 report: - prettier exited with exit_code=2 - linter: command: | /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/badWords.ts stdin_path: (none) run_from: /tmp/trunk-0/LksjjB/sh6aDR timeout: 10m rerun: (cd /tmp/trunk-0/LksjjB/sh6aDR; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/badWords.ts) affects_cache: [] direct_configs: [] exit_status: exited exit_code: 2 stdout: (none) stderr: | [error] workbench/features/chat/badWords.ts: SyntaxError: Expression expected. (151:1) [error] 149 | 'just', [error] 150 | 'now', [error] > 151 | ]) [error] | ^ [error] 152 | [error] 153 | export const badWords = new Set([ [error] 154 | 'if', parser: | (none)
workbench/features/chat/badWords.ts
β
Sandbox logs for
trunk fmt workbench/features/chat/badWords.ts || exit 0
1/2 βFAILURES prettier workbench/features/chat/badWords.ts .trunk/out/9ZjNi.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 0 files β No issues, 1 failure
trunk check --fix --print-failures workbench/features/chat/badWords.ts
2/2 β (`1`)FAILURES prettier workbench/features/chat/badWords.ts .trunk/out/KLF6o.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure # .trunk/out/KLF6o.yaml trunk_cli_version: 1.17.1 title: prettier exited with exit_code=2 report: - prettier exited with exit_code=2 - linter: command: | /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/badWords.ts stdin_path: (none) run_from: /tmp/trunk-0/NnwR3i/7TUy4K timeout: 10m rerun: (cd /tmp/trunk-0/NnwR3i/7TUy4K; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/badWords.ts) affects_cache: [] direct_configs: [] exit_status: exited exit_code: 2 stdout: (none) stderr: | [error] workbench/features/chat/badWords.ts: SyntaxError: Expression expected. (151:1) [error] 149 | 'just', [error] 150 | 'now', [error] > 151 | ], [error] | ^ [error] 152 | 'newWord', [error] 153 | 'about', [error] 154 | 'between', parser: | (none)
workbench/features/chat/badWords.ts
β
Sandbox logs for
trunk fmt workbench/features/chat/badWords.ts || exit 0
1/2 βFAILURES prettier workbench/features/chat/badWords.ts .trunk/out/fAQd3.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 0 files β No issues, 1 failure
trunk check --fix --print-failures workbench/features/chat/badWords.ts
2/2 β (`1`)FAILURES prettier workbench/features/chat/badWords.ts .trunk/out/gpQTP.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure # .trunk/out/gpQTP.yaml trunk_cli_version: 1.17.1 title: prettier exited with exit_code=2 report: - prettier exited with exit_code=2 - linter: command: | /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/badWords.ts stdin_path: (none) run_from: /tmp/trunk-0/LksjjB/sh6aDR timeout: 10m rerun: (cd /tmp/trunk-0/LksjjB/sh6aDR; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/badWords.ts) affects_cache: [] direct_configs: [] exit_status: exited exit_code: 2 stdout: (none) stderr: | [error] workbench/features/chat/badWords.ts: SyntaxError: Expression expected. (151:1) [error] 149 | 'just', [error] 150 | 'now', [error] > 151 | ]) [error] | ^ [error] 152 | [error] 153 | export const badWords = new Set([ [error] 154 | 'if', parser: | (none)
[X] Check workbench/features/chat/chatSelectors.ts
β
Run `workbench/features/chat/chatSelectors.ts` through the sandbox.
[X] Check workbench/features/chat/chatSlice.ts
β
Run `workbench/features/chat/chatSlice.ts` through the sandbox.
[X] Check workbench/features/chat/chatThunks.ts
β
Run `workbench/features/chat/chatThunks.ts` through the sandbox.
[X] Check workbench/features/chat/context.ts
β
Run `workbench/features/chat/context.ts` through the sandbox.
[X] Check workbench/features/chat/promptUtils.ts
β
Sandbox logs for
trunk fmt workbench/features/chat/promptUtils.ts || exit 0
1/2 βFAILURES prettier workbench/features/chat/promptUtils.ts .trunk/out/FHeZo.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 0 files β No issues, 1 failure
trunk check --fix --print-failures workbench/features/chat/promptUtils.ts
2/2 β (`1`)FAILURES prettier workbench/features/chat/promptUtils.ts .trunk/out/MOS7p.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure # .trunk/out/MOS7p.yaml trunk_cli_version: 1.17.1 title: prettier exited with exit_code=2 report: - prettier exited with exit_code=2 - linter: command: | /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/promptUtils.ts stdin_path: (none) run_from: /tmp/trunk-0/oKWA1K/tTo94J timeout: 10m rerun: (cd /tmp/trunk-0/oKWA1K/tTo94J; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOME=/root NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/promptUtils.ts) affects_cache: [] direct_configs: [] exit_status: exited exit_code: 2 stdout: (none) stderr: | [error] workbench/features/chat/promptUtils.ts: SyntaxError: Declaration or statement expected. (306:1) [error] 304 | const fairUnion = Math.min(union, aSet.size, bSet.size) [error] 305 | return intersection / fairUnion [error] > 306 | } [error] | ^ [error] 307 | [error] 308 | function getExtension(fileName: string): string { [error] 309 | return fileName.split('.').pop()! parser: | (none)
[X] Check workbench/features/chat/promptUtils.ts
β
Run `workbench/features/chat/promptUtils.ts` through the sandbox.
[X] Check workbench/features/chat/promptUtils.ts
β
Sandbox logs for
trunk fmt workbench/features/chat/promptUtils.ts || exit 0
1/2 βFAILURES prettier workbench/features/chat/promptUtils.ts .trunk/out/FHeZo.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 0 files β No issues, 1 failure
trunk check --fix --print-failures workbench/features/chat/promptUtils.ts
2/2 β (`1`)FAILURES prettier workbench/features/chat/promptUtils.ts .trunk/out/MOS7p.yaml NOTICES A tool failed to run. You can open the details yaml file for more information. Checked 1 file β No issues, 1 failure # .trunk/out/MOS7p.yaml trunk_cli_version: 1.17.1 title: prettier exited with exit_code=2 report: - prettier exited with exit_code=2 - linter: command: | /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/promptUtils.ts stdin_path: (none) run_from: /tmp/trunk-0/oKWA1K/tTo94J timeout: 10m rerun: (cd /tmp/trunk-0/oKWA1K/tTo94J; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOME=/root NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/promptUtils.ts) affects_cache: [] direct_configs: [] exit_status: exited exit_code: 2 stdout: (none) stderr: | [error] workbench/features/chat/promptUtils.ts: SyntaxError: Declaration or statement expected. (306:1) [error] 304 | const fairUnion = Math.min(union, aSet.size, bSet.size) [error] 305 | return intersection / fairUnion [error] > 306 | } [error] | ^ [error] 307 | [error] 308 | function getExtension(fileName: string): string { [error] 309 | return fileName.split('.').pop()! parser: | (none)
[X] Check workbench/features/codemirror/codemirrorSelectors.ts
βΆ
Run `workbench/features/codemirror/codemirrorSelectors.ts` through the sandbox.
[X] Check workbench/features/codemirror/codemirrorSlice.ts
βΆ
Run `workbench/features/codemirror/codemirrorSlice.ts` through the sandbox.
[X] Check workbench/features/comment/commentSelectors.ts
βΆ
Run `workbench/features/comment/commentSelectors.ts` through the sandbox.
[X] Check workbench/features/comment/commentSlice.ts
βΆ
Run `workbench/features/comment/commentSlice.ts` through the sandbox.
[X] Check workbench/features/extensions/activeLineGutter.ts
βΆ
Run `workbench/features/extensions/activeLineGutter.ts` through the sandbox.
[X] Check workbench/features/extensions/autocomplete.ts
βΆ
Run `workbench/features/extensions/autocomplete.ts` through the sandbox.
[X] Check workbench/features/extensions/cmdZBar.ts
βΆ
Run `workbench/features/extensions/cmdZBar.ts` through the sandbox.
[X] Check workbench/features/extensions/comments.ts
βΆ
Run `workbench/features/extensions/comments.ts` through the sandbox.
[X] Check workbench/features/extensions/diff.ts
βΆ
Run `workbench/features/extensions/diff.ts` through the sandbox.
[X] Check workbench/features/extensions/ghostText.ts
βΆ
Run `workbench/features/extensions/ghostText.ts` through the sandbox.
[X] Check workbench/features/extensions/hackDiff.ts
βΆ
Run `workbench/features/extensions/hackDiff.ts` through the sandbox.
[X] Check workbench/features/extensions/indentLines.ts
βΆ
Run `workbench/features/extensions/indentLines.ts` through the sandbox.
[X] Check workbench/features/extensions/lsp.ts
βΆ
Run `workbench/features/extensions/lsp.ts` through the sandbox.
[X] Check workbench/features/extensions/minimap.ts
βΆ
Run `workbench/features/extensions/minimap.ts` through the sandbox.
[X] Check workbench/features/extensions/newLineText.ts
βΆ
Run `workbench/features/extensions/newLineText.ts` through the sandbox.
[X] Check workbench/features/extensions/selectionTooltip.ts
βΆ
Run `workbench/features/extensions/selectionTooltip.ts` through the sandbox.
[X] Check workbench/features/extensions/storePane.ts
βΆ
Run `workbench/features/extensions/storePane.ts` through the sandbox.
[X] Check workbench/features/extensions/syntax.ts
βΆ
Run `workbench/features/extensions/syntax.ts` through the sandbox.
[X] Check workbench/features/extensions/utils.ts
βΆ
Run `workbench/features/extensions/utils.ts` through the sandbox.
[X] Check workbench/features/fixLSP/fixLSPSelectors.ts
βΆ
Run `workbench/features/fixLSP/fixLSPSelectors.ts` through the sandbox.
[X] Check workbench/features/fixLSP/fixLSPSlice.ts
βΆ
Run `workbench/features/fixLSP/fixLSPSlice.ts` through the sandbox.
[X] Check workbench/features/generation/generate.ts
βΆ
Run `workbench/features/generation/generate.ts` through the sandbox.
[X] Check workbench/features/linter/extension.ts
βΆ
Run `workbench/features/linter/extension.ts` through the sandbox.
[X] Check workbench/features/linter/fixLSPExtension.ts
βΆ
Run `workbench/features/linter/fixLSPExtension.ts` through the sandbox.
[X] Check workbench/features/linter/lint.ts
βΆ
Run `workbench/features/linter/lint.ts` through the sandbox.
[X] Check workbench/features/logging/loggingSelectors.ts
βΆ
Run `workbench/features/logging/loggingSelectors.ts` through the sandbox.
[X] Check workbench/features/logging/loggingSlice.ts
βΆ
Run `workbench/features/logging/loggingSlice.ts` through the sandbox.
[X] Check workbench/features/lsp/languageServerSelector.ts
βΆ
Run `workbench/features/lsp/languageServerSelector.ts` through the sandbox.
[X] Check workbench/features/lsp/languageServerSlice.ts
βΆ
Run `workbench/features/lsp/languageServerSlice.ts` through the sandbox.
[X] Check workbench/features/lsp/lspPlugin.ts
βΆ
Run `workbench/features/lsp/lspPlugin.ts` through the sandbox.
[X] Check workbench/features/lsp/stdioClient.ts
βΆ
Run `workbench/features/lsp/stdioClient.ts` through the sandbox.
[X] Check workbench/features/window/fileUtils.ts
βΆ
Run `workbench/features/window/fileUtils.ts` through the sandbox.
[X] Check workbench/features/window/state.ts
βΆ
Run `workbench/features/window/state.ts` through the sandbox.
Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword
link
(e.g. "Link T-123").π‘Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.
Similar files are
π
β Could not find files to change
Please join our Discord to report this issue.
PR Feedback: π
Description
This PR addresses the following issues:
Summary of Changes
Please review and merge these changes. Thank you!
Fixes #20.
π Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py to be more modular
!π‘ To get Sweep to edit this pull request, you can: