reconsumeralization / CodeCurse

CodeCurse AI IDE
MIT License
2 stars 0 forks source link

Fix bugs and update app name to CodeCurse #21

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

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:


πŸ’‘ To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 1 year ago

Sandbox Executions

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

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)

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)

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)

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)

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)

sweep-ai[bot] commented 1 year ago

Apply Sweep Rules to your PR?

height[bot] commented 1 year ago

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-code-searcher[bot] commented 1 year ago

Similar files are

reconsumeralization commented 1 year ago

😜

sweep-ai[bot] commented 1 year ago

❌ Could not find files to change

Please join our Discord to report this issue.