d-koppenhagen / vscode-code-review

Create a code review with all your comments in one file
https://marketplace.visualstudio.com/items?itemName=d-koppenhagen.vscode-code-review
MIT License
68 stars 36 forks source link

[bug] Error when trying to create code review file #151

Open abePdIta opened 9 months ago

abePdIta commented 9 months ago

🐞 Bug report

Description

The plugin looses the workspace context if the user once opens a tab for which the path is not defined. As a consequence, the plugin tries to open/create the code-review file from/in the root directory (obviously failing) and the current commit SHA is unknown.

Reproduction

Open a diff, for example, from a commit in Git Graph plugin (mhutchie.git-graph). Try to add a review note on any file. Failure.

Error message


Error when trying to create code review file: '/code-review.csv': Error: EROFS: read-only file system, open '/code-review.csv'

🌍 Your Environment

I'm on Mac.

gnom1gnom commented 9 months ago

Same problem +1. Workaround - restart vscode...