Skip to content
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

Fix comment whitespace issues in translate-utils.coffee #7057

Closed
wants to merge 70 commits into from

Conversation

sweep-ai[bot]
Copy link

@sweep-ai sweep-ai bot commented Jul 25, 2023

Description

This PR fixes the comment whitespace issues in the translate-utils.coffee file. Some of the comments were not indented correctly and were starting at the beginning of the line. This PR adjusts the indentation of the comments to align with the code they are associated with.

Changes Made

  • Adjusted the indentation of comments in the translate-utils.coffee file to align with the code they are commenting on.

Testing

No functional changes were made, so no additional testing is required.

Related Issue

Fixes #[issue_number]

Fixes #7024.

To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-comment-whitespace

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Jul 25, 2023
Copy link
Author

@sweep-ai sweep-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes required. The modifications made in the pull request are primarily focused on improving the readability of the code by reformatting the comments. This is a good practice and enhances the maintainability of the code. Keep up the good work!

finals.splice(insertPlace, 0, finals.splice(i,1)[0])

return strs.concat([finals.slice(0, insertPlace).join('\n'), finals.slice(insertPlace).join('\n')])
matchBrackets = (str, startIndex) ->
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the duplicate line


if language is 'lua'
# Try incrementing all literal array indexes under, say, 10 by 1 to offset 1-based indexing. Hack, but most of those levels will need manual attention anyway.
# Try incrementing all literal array indexes under, say, 10 by 1 to offset 1-based indexing. Hack, but most of those levels will need manual attention anyway.
s = s.replace /\[(\d)\]/g, (match, index) -> "[#{parseInt(index, 10) + 1}]"

# TODO: see if we can do something about lack of a continue statement in Lua? Maybe too hard and we should give up.

lines = s.split '\n'
output = (lines.map (line) -> line.slice 1).join('\n') # Remove leading convenience whitespace that we added
output
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace the commentStarts back

@sweep-ai sweep-ai bot changed the title [DRAFT] Fix comment whitespace issues in translate-utils.coffee Fix comment whitespace issues in translate-utils.coffee Jul 25, 2023
@sweep-ai
Copy link
Author

sweep-ai bot commented Jul 31, 2023

GitHub actions yielded the following error.

The command that failed is npm run pre-build. Here are the relevant lines from the logs:

##[group]Run npm run pre-build
�[36;1mnpm run pre-build�[0m
shell: /usr/bin/bash -e {0}
##[endgroup]

> codecombat@1.0.0 pre-build
> bower install && npm run build-aether

bower treema#master         not-cached https://github.com/codecombat/treema.git#master
bower treema#master            resolve https://github.com/codecombat/treema.git#master
bower esper.js#*            not-cached https://files.codecombat.com/esper-2022-08-26.tar.gz#*
bower esper.js#*               resolve https://files.codecombat.com/esper-2022-08-26.tar.gz#*
bower esper.js#*              download https://files.codecombat.com/esper-2022-08-26.tar.gz
bower jquery#~2.1.0         not-cached https://github.com/jquery/jquery-dist.git#~2.1.0
bower jquery#~2.1.0            resolve https://github.com/jquery/jquery-dist.git#~2.1.0
bower underscore.string#~2.3.3       not-cached https://github.com/epeli/underscore.string.git#~2.3.3
bower underscore.string#~2.3.3          resolve https://github.com/epeli/underscore.string.git#~2.3.3
bower modernizr-mixin#~3.0.0         not-cached https://github.com/danielguillan/modernizr-mixin.git#~3.0.0
bower modernizr-mixin#~3.0.0            resolve https://github.com/danielguillan/modernizr-mixin.git#~3.0.0
bower ace-builds#~1.4.12             not-cached https://github.com/ajaxorg/ace-builds.git#~1.4.12
bower ace-builds#~1.4.12                resolve https://github.com/ajaxorg/ace-builds.git#~1.4.12
bower jquery-mousewheel#~3.1.9       not-cached https://github.com/jquery/jquery-mousewheel.git#~3.1.9
bower jquery-mousewheel#~3.1.9          resolve https://github.com/jquery/jquery-mousewheel.git#~3.1.9
bower algolia-autocomplete.js#^0.17.0       not-cached https://github.com/algolia/autocomplete.js.git#^0.17.0
bower algolia-autocomplete.js#^0.17.0          resolve https://github.com/algolia/autocomplete.js.git#^0.17.0
bower font-awesome#^4.7.0                   not-cached https://github.com/FortAwesome/Font-Awesome.git#^4.7.0
bower font-awesome#^4.7.0                      resolve https://github.com/FortAwesome/Font-Awesome.git#^4.7.0
bower waypoints#^4.0.1                      not-cached https://github.com/imakewebthings/waypoints.git#^4.0.1
bower waypoints#^4.0.1                         resolve https://github.com/imakewebthings/waypoints.git#^4.0.1
bower fetch#^2.0.2                          not-cached https://github.com/github/fetch.git#^2.0.2
bower fetch#^2.0.2                             resolve https://github.com/github/fetch.git#^2.0.2
bower nanoscroller#~0.8.0                   not-cached https://github.com/jamesflorentino/nanoScrollerJS.git#~0.8.0
bower nanoscroller#~0.8.0                      resolve https://github.com/jamesflorentino/nanoScrollerJS.git#~0.8.0
bower algolia-autocomplete-no-conflict#1.0.0       not-cached https://github.com/basicer/algolia-autocomplete-no-conflict.git#1.0.0
bower algolia-autocomplete-no-conflict#1.0.0          resolve https://github.com/basicer/algolia-autocomplete-no-conflict.git#1.0.0
bower validated-backbone-mediator#~0.1.3           not-cached https://github.com/rubenvereecken/Validated-Backbone-Mediator.git#~0.1.3
bower validated-backbone-mediator#~0.1.3              resolve https://github.com/rubenvereecken/Validated-Backbone-Mediator.git#~0.1.3
bower treema#master                                  download https://github.com/codecombat/treema/archive/master.tar.gz
bower underscore.string#~2.3.3                       download https://github.com/epeli/underscore.string/archive/2.3.3.tar.gz
bower modernizr-mixin#~3.0.0                         download https://github.com/danielguillan/modernizr-mixin/archive/v3.0.7.tar.gz
bower ace-builds#~1.4.12                             download https://github.com/ajaxorg/ace-builds/archive/v1.4.14.tar.gz
bower jquery-mousewheel#~3.1.9                       download https://github.com/jquery/jquery-mousewheel/archive/3.1.13.tar.gz
bower jquery#~2.1.0                                  download https://github.com/jquery/jquery-dist/archive/2.1.4.tar.gz
bower esper.js#*                                      extract esper-2022-08-26.tar.gz
bower algolia-autocomplete.js#^0.17.0                download https://github.com/algolia/autocomplete.js/archive/0.17.3.tar.gz
bower font-awesome#^4.7.0                            download https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.tar.gz
bower waypoints#^4.0.1                               download https://github.com/imakewebthings/waypoints/archive/4.0.1.tar.gz
bower treema#master                                   extract archive.tar.gz
bower fetch#^2.0.2                                   download https://github.com/github/fetch/archive/v2.0.4.tar.gz
bower nanoscroller#~0.8.0                            download https://github.com/jamesflorentino/nanoScrollerJS/archive/0.8.7.tar.gz
bower modernizr-mixin#~3.0.0                          extract archive.tar.gz
bower jquery-mousewheel#~3.1.9                        extract archive.tar.gz
bower underscore.string#~2.3.3                        extract archive.tar.gz
bower jquery#~2.1.0                                   extract archive.tar.gz
bower validated-backbone-mediator#~0.1.3             download https://github.com/rubenvereecken/Validated-Backbone-Mediator/archive/v0.1.5.tar.gz
bower modernizr-mixin#~3.0.0                         resolved https://github.com/danielguillan/modernizr-mixin.git#3.0.7
bower jquery-mousewheel#~3.1.9                       resolved https://github.com/jquery/jquery-mousewheel.git#3.1.13
bower jquery#>=1.2.2                               not-cached https://github.com/jquery/jquery-dist.git#>=1.2.2
bower jquery#>=1.2.2                                  resolve https://github.com/jquery/jquery-dist.git#>=1.2.2
bower jquery#>=1.2.2                                 download https://github.com/jquery/jquery-dist/archive/3.7.0.tar.gz
bower underscore.string#~2.3.3                       resolved https://github.com/epeli/underscore.string.git#2.3.3
bower waypoints#^4.0.1                                extract archive.tar.gz
bower font-awesome#^4.7.0                             extract archive.tar.gz
bower treema#master                              invalid-meta for:/tmp/runner/bower/ad7f0c017c285ccbf44cf0024ef1bfec-3500-ANX3Cb/bower.json
bower treema#master                              invalid-meta The "description" is too long, the limit is 140 characters
bower algolia-autocomplete-no-conflict#1.0.0         download https://github.com/basicer/algolia-autocomplete-no-conflict/archive/v1.0.0.tar.gz
bower algolia-autocomplete.js#^0.17.0                 extract archive.tar.gz
bower fetch#^2.0.2                                    extract archive.tar.gz
bower nanoscroller#~0.8.0                             extract archive.tar.gz
bower treema#master                                  resolved https://github.com/codecombat/treema.git#4b9529aa66
bower jquery#>=2.1.0                               not-cached https://github.com/jquery/jquery-dist.git#>=2.1.0
bower jquery#>=2.1.0                                  resolve https://github.com/jquery/jquery-dist.git#>=2.1.0
bower jquery#>=2.1.0                                 download https://github.com/jquery/jquery-dist/archive/3.7.0.tar.gz
bower tv4#>=1.0.15                                 not-cached https://github.com/geraintluff/tv4.git#>=1.0.15
bower tv4#>=1.0.15                                    resolve https://github.com/geraintluff/tv4.git#>=1.0.15
bower jquery-ui#>=1.10.4                           not-cached https://github.com/components/jqueryui.git#>=1.10.4
bower jquery-ui#>=1.10.4                              resolve https://github.com/components/jqueryui.git#>=1.10.4
bower validated-backbone-mediator#~0.1.3              extract archive.tar.gz
bower jquery#>=1.2.2                                  extract archive.tar.gz
bower fetch#^2.0.2                                   resolved https://github.com/github/fetch.git#2.0.4
bower algolia-autocomplete-no-conflict#1.0.0          extract archive.tar.gz
bower waypoints#^4.0.1                               resolved https://github.com/imakewebthings/waypoints.git#4.0.1
bower algolia-autocomplete-no-conflict#1.0.0         resolved https://github.com/basicer/algolia-autocomplete-no-conflict.git#1.0.0
bower jquery-ui#>=1.10.4                             download https://github.com/components/jqueryui/archive/1.12.1.tar.gz
bower tv4#>=1.0.15                                   download https://github.com/geraintluff/tv4/archive/v1.2.7.tar.gz
bower nanoscroller#~0.8.0                            resolved https://github.com/jamesflorentino/nanoScrollerJS.git#0.8.7
bower jquery#>= 1.6                                not-cached https://github.com/jquery/jquery-dist.git#>= 1.6
bower jquery#>= 1.6                                   resolve https://github.com/jquery/jquery-dist.git#>= 1.6
bower jquery#>= 1.6                                  download https://github.com/jquery/jquery-dist/archive/3.7.0.tar.gz

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

@sweep-ai
Copy link
Author

sweep-ai bot commented Aug 1, 2023

GitHub actions yielded the following error.

The relevant lines from the logs corresponding to the error are:

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: vue-pug-plugin@2.0.2
npm WARN Found: pug@2.0.4
npm WARN node_modules/pug
npm WARN   dev pug@"^2.0.3" from the root project
npm WARN   2 more (pug-loader, vue-pug-loader)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer pug@"^3.0.1" from vue-pug-plugin@2.0.2
npm WARN node_modules/vue-pug-plugin
npm WARN   vue-pug-plugin@"^2.0.0" from vue-pug-loader@1.1.27
npm WARN   node_modules/vue-pug-loader
npm WARN
npm WARN Conflicting peer dependency: pug@3.0.2
npm WARN node_modules/pug
npm WARN   peer pug@"^3.0.1" from vue-pug-plugin@2.0.2
npm WARN   node_modules/vue-pug-plugin
npm WARN     vue-pug-plugin@"^2.0.0" from vue-pug-loader@1.1.27
npm WARN     node_modules/vue-pug-loader

added 1446 packages, and audited 1448 packages in 4m

179 packages are looking for funding
run `npm fund` for details

49 vulnerabilities (1 low, 12 moderate, 30 high, 6 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

The command that failed is npm ci.

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

@sweep-ai
Copy link
Author

sweep-ai bot commented Aug 1, 2023

GitHub actions yielded the following error.

npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Invalid: lock file's pug@2.0.4 does not satisfy pug@3.0.2
npm ERR! Invalid: lock file's pug-code-gen@2.0.3 does not satisfy pug-code-gen@3.0.2
npm ERR! Invalid: lock file's pug-filters@3.1.1 does not satisfy pug-filters@4.0.0
npm ERR! Missing: pug-lexer@5.0.1 from lock file
npm ERR! Invalid: lock file's pug-linker@3.0.6 does not satisfy pug-linker@4.0.0
npm ERR! Invalid: lock file's pug-load@2.0.12 does not satisfy pug-load@3.0.0
npm ERR! Invalid: lock file's pug-parser@5.0.1 does not satisfy pug-parser@6.0.0
npm ERR! Missing: pug-runtime@3.0.1 from lock file
npm ERR! Invalid: lock file's pug-strip-comments@1.0.4 does not satisfy pug-strip-comments@2.0.0
npm ERR! Missing: constantinople@4.0.1 from lock file
npm ERR! Missing: pug-attrs@3.0.0 from lock file
npm ERR! Missing: pug-error@2.0.0 from lock file
npm ERR! Missing: pug-runtime@3.0.1 from lock file
npm ERR! Missing: void-elements@3.1.0 from lock file
npm ERR! Invalid: lock file's with@5.1.1 does not satisfy with@7.0.2
npm ERR! Missing: constantinople@4.0.1 from lock file
npm ERR! Missing: pug-error@2.0.0 from lock file
npm ERR! Missing: pug-walk@2.0.0 from lock file
npm ERR! Missing: pug-error@2.0.0 from lock file
npm ERR! Missing: pug-walk@2.0.0 from lock file
npm ERR! Missing: pug-walk@2.0.0 from lock file
npm ERR! Missing: pug-error@2.0.0 from lock file
npm ERR! Invalid: lock file's token-stream@0.0.1 does not satisfy token-stream@1.0.0
npm ERR! Missing: pug-error@2.0.0 from lock file
npm ERR! Missing: assert-never@1.2.1 from lock file
npm ERR! Missing: babel-walk@3.0.0-canary-5 from lock file
npm ERR! Missing: is-expression@4.0.0 from lock file
npm ERR! Missing: pug-error@2.0.0 from lock file
npm ERR! Missing: acorn@7.4.1 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-01T14_54_05_686Z-debug-0.log

The command that failed is npm ci.

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

@sweep-ai
Copy link
Author

sweep-ai bot commented Aug 1, 2023

GitHub actions yielded the following error.

The command that failed is npm ci. Here are the relevant lines from the logs:

npm ERR! code EUSAGE
npm ERR!
npm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-01T15_06_02_726Z-debug-0.log
##[error]Process completed with exit code 1.

Please note that the error message suggests running an install with npm@5 or later to generate a package-lock.json file before running npm ci again.

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

@sweep-ai
Copy link
Author

sweep-ai bot commented Aug 1, 2023

GitHub actions yielded the following error.

The command that failed is npm ci. Here are the relevant lines from the logs:

npm ERR! code EUSAGE
npm ERR!
npm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-01T15_11_08_594Z-debug-0.log
##[error]Process completed with exit code 1.

Please note that the error message suggests running an install with npm@5 or later to generate a package-lock.json file before running npm ci again.

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

@sweep-ai
Copy link
Author

sweep-ai bot commented Aug 1, 2023

GitHub actions yielded the following error.

npm ERR! code EUSAGE
npm ERR!
npm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-01T15_17_53_247Z-debug-0.log

The command that failed is npm ci.

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

@sweep-ai
Copy link
Author

sweep-ai bot commented Aug 1, 2023

GitHub actions yielded the following error.

The command that failed is npm ci. Here are the relevant lines from the logs:

npm ERR! code EUSAGE
npm ERR!
npm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-01T15_24_34_083Z-debug-0.log
##[error]Process completed with exit code 1.

Please note that the error message suggests running an install with npm@5 or later to generate a package-lock.json file before retrying the npm ci command.

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

@sweep-ai
Copy link
Author

sweep-ai bot commented Aug 1, 2023

GitHub actions yielded the following error.

The command that failed is npm ci. Here are the relevant lines from the logs:

npm ERR! code EUSAGE
npm ERR!
npm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci
npm ERR!
npm ERR! Options:
npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
npm ERR! [-E|--save-exact] [-g|--global] [--global-style] [--legacy-bundling]
npm ERR! [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm ERR!
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
npm ERR!
npm ERR! Run "npm help ci" for more info

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2023-08-01T15_30_19_304Z-debug-0.log
##[error]Process completed with exit code 1.

Please note that the error message states that npm ci can only be used with an existing package-lock.json or npm-shrinkwrap.json file. It suggests running an install with npm@5 or later to generate the package-lock.json file and then trying again.

There are a lot of errors. This is likely a larger issue with the PR and not a small linting/type-checking issue.

This is likely a linting or type-checking issue with the source code but if you are updating the GitHub Actions or versioning, this could be an issue with the GitHub Action yaml files.

sweep-ai bot added 29 commits August 20, 2023 22:56
@mrfinch mrfinch closed this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: fix comment whitespace issues in translate-utils.coffee
3 participants