Skip to content

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

Description

@yncki

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')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions