Skip to content

/commit not working at all since v0.9.216 #2572

Closed as not planned
Closed as not planned

Description

@karqo

Before submitting your bug report

Relevant environment info

- OS: windows 10, ubuntu 22.04
- Continue version: 0.9.216, 0.9.217
- IDE version: 1.94.*

Description

Since version 0.9.216 /commit generates no result at all and only prints:
No changes detected. Make sure you are in a git repository with current changes.

NOTE: since 0.9.216 this even happens without WSL or, respectively, without working on any remote repository.
However, very likely this issue might be related to #1450 and all reports therein.

To reproduce

  1. run command /commit

Log output

No response

Activity

  1. self-assigned this
    on Oct 18, 2024
  2. added
    area:slash-commands
    kind:bug
    priority:medium
    on Oct 18, 2024
  3. jasonhowk commented on Oct 28, 2024

    @jasonhowk

    Saw this as well, and on a whim I took a look at the code and in order for commit to work correctly any changes need to be staged. When I staged some changes /commit worked as expected. If I un-staged them I received the No changes detected. Make sure you are in a git repository with current changes.

    The message CTA could be worded better to indicate the proper operating conditions.
    i.e.

    No changes detected in staged files. Make sure you are in a git repository with current changes staged.
    
  4. jasonhowk commented on Oct 28, 2024

    @jasonhowk

    Updated the config to this and everything worked as I expected.

    {
          "name": "commit",
          "description": "Generate a git commit message",
          "params": {
             "includeUnstaged": true
          }
    }
    
  5. karqo commented on Oct 31, 2024

    @karqo
    Author

    Updated the config to this and everything worked as I expected.

    {
          "name": "commit",
          "description": "Generate a git commit message",
          "params": {
             "includeUnstaged": true
          }
    }
    

    Ok, this works partly, i.e., not yet with WSL or, respectively, whilst working on any remote repository.

  6. Konano commented on Nov 21, 2024

    @Konano

    Updated the config to this and everything worked as I expected.

    {
          "name": "commit",
          "description": "Generate a git commit message",
          "params": {
             "includeUnstaged": true
          }
    }
    

    Not work on any remote server.

    2024-11-21 23:33:38.858 [error] CodeExpectedError: cannot open file:///home/ubuntu/bots/example.py. Detail: 无法读取文件'\home\ubuntu\bots\example.py' (Error: 无法解析不存在的文件 '\home\ubuntu\bots\example.py')
        at OFe.$tryOpenDocument (vscode-file://vscode-app/d:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:615:8481)
    2024-11-21 23:33:45.028 [error] RangeError: path should be a `path.relative()`d string, but got "..\..\..\..\Program Files\Microsoft VS Code\exthost"
    	at throwError (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71831:13)
    	at checkPath (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71845:16)
    	at Ignore2._test (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71933:9)
    	at Ignore2.ignores (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71960:21)
    	at c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:541227:31
    2024-11-21 23:34:10.671 [error] RangeError: path should be a `path.relative()`d string, but got "..\..\..\..\Program Files\Microsoft VS Code\exthost"
    	at throwError (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71831:13)
    	at checkPath (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71845:16)
    	at Ignore2._test (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71933:9)
    	at Ignore2.ignores (c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:71960:21)
    	at c:\Users\NanoApe\.vscode\extensions\continue.continue-0.9.233-win32-x64\out\extension.js:541227:31
    
  7. github-actions commented on Mar 3, 2025

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  8. github-actions commented on Mar 14, 2025

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

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

Metadata

Metadata

Assignees

Labels

area:slash-commandskind:bugpriority:mediumstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions