Hey QuantConnect Community,
I wanted to report a potential issue I encountered yesterday and see if others have experienced something similar.
Issue: While working on a feature branch in my organization workspace, I noticed my .git folder disappeared. I discovered this when GitKraken stopped showing my latest changes. It appears the .git folder was synced to the Cloud Platform and somehow got removed during the sync process while I was actively developing.
Environment:
- QuantConnect VS Code Extension: v0.1.1971
- VS Code Version: 1.105
- OS: Windows 11 Pro (Version 10.0.26100 Build 26100)
- Language: C#
Workaround: Fortunately, I didn't lose any work since I made a backup and restored it. Here's what I did to recover:
- Made a backup of the organization workspace folder
- Removed the organization workspace from VS Code
- Pulled the organization again from QuantConnect
- Cloned the git repo
- Overwrote the files from the backed-up organization workspace files with the latest commit of my git repo
After this, the .git folder was restored and the issue hasn't returned (so far).
Questions:
- Has anyone else experienced this issue with the VS Code extension?
- Is the QuantConnect dev team aware of this potential bug?
This is the first time this has happened to me, but I wanted to bring it to the community's attention in case others run into the same problem.
Thanks!
Jordy
The Futures Trader
I encountered this issue again and wanted to share my solution, especially since I work across two different workstations.
The Problem: The documentation instructs us to "Move the .git directory from the temporary directory to the workspace directory," but this can causes conflicts when syncing the organization workspace folder (at least in my case).
My Solution: I restructured my repository to keep the .git folder outside the organization workspace folder:
Directory Structure:
By keeping the .git folder at the repository root instead of inside the Workspace folder, the version control system stays separate from the organization workspace. This prevents the conflict and works seamlessly across multiple workstations. Hope this helps.
The Futures Trader
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!