Skip to content

getStorageBasePath(), race conditionΒ #7173

@jimweller

Description

@jimweller

App Version

3.25.17

API Provider

AWS Bedrock

Model Used

N/A

Roo Code Task Links (Optional)

N/A

πŸ” Steps to Reproduce

set roo-cline.customStoragePath in vscode settings.json

open vscode

select roo code

πŸ’₯ Outcome Summary

Intermittent popups with error

Custom storage path "/Users/jimweller/.roo/" is unusable, will use default path

πŸ“„ Relevant Logs or Errors (Optional)

I believe there is a race condition with getStorageBasePath() where multiple instances are running simultaneously. So, the .write_test file may or may not be present. Recommend adding a unqiue suffix to the .write_test file to prevent conncurrent calls of getStorageBasePath() from conflicting on the file.

Creating a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions