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

TypeError: Cannot read properties of undefined (reading 'trim') codewhisper/dist/cli/index.js:395:51 #106

Open
yncki opened this issue Oct 27, 2024 · 0 comments

Comments

@yncki
Copy link

yncki commented Oct 27, 2024

Long story short 👍
Error applying change to README.APPS.md: TypeError: Cannot read properties of undefined (reading 'trim')
at file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:395:51
at Array.map ()
at replaceWithFlexibleWhitespace (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:393:30)
at flexibleMatch (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:365:12)
at applySearchReplace (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:353:25)
at applyFileChange (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:535:30)
at async applyChanges (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:459:7)
at async applyCodeModifications (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:2316:5)
at async generateAndApplyCode (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:2208:5)
at async handlePlanWorkflow (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:2112:3)
Error applying changes: TypeError: Cannot read properties of undefined (reading 'trim')
at file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:395:51
at Array.map ()
at replaceWithFlexibleWhitespace (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:393:30)
at flexibleMatch (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:365:12)
at applySearchReplace (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:353:25)
at applyFileChange (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:535:30)
at async applyChanges (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:459:7)
at async applyCodeModifications (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:2316:5)
at async generateAndApplyCode (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:2208:5)
at async handlePlanWorkflow (file:///C:/Users/TAJNY/AppData/Roaming/npm/node_modules/codewhisper/dist/cli/index.js:2112:3)
✖ Error applying AI Code Modifications
Failed to create branch or apply changes: Cannot read properties of undefined (reading 'trim')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant