-
Notifications
You must be signed in to change notification settings - Fork 12
'No workspace open' error #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I got the same error as well: Version: 0.43.6 |
Thanks @lucabol and @empyriumz . We're looking into this now. Might get back to you with some follow up questions. |
@lucabol and @empyriumz, Cursor made some substantial changes to how they store chat and composer history in 0.43.6. So even though you are both running that version, our extension doesn't "see" chats and composers that were done with 0.43.5 and before. Can your verify that you have had some new Chat or Composer conversations with Cursor in this workspace since you upgraded? Can you have a quick conversation in a chat or composer, and try it again, and see if this new conversation shows up when you save with the extension. Thanks! |
@empyriumz what's a bit odd about the error message you posted is that's the Linux path, not the macOS path. The Linux path is the fall through when Node's |
@belucid I'm running a remote docker container so I guess that's the reason. There is no |
windows too Version: 0.43.6 |
@belucid I have not upgraded. I have used Cursor composer yesterday for the first time with 0.43.6. All my history should be with that version. |
I'm also having this issue. I'm running Cursor on Windows with WSL. I'm not sure if WSL is the cause of the issue. This is a sick idea though. I've been thinking about how I could attach https://github.com/mem0ai/mem0 to my composer to solve this problem |
Thanks all for reporting. The latest extension release |
Tip: in Cursor, open the command palette with |
Did the update I am still having trouble - new project - one file - main.py, ask composer to write a hello world. Accept change with the contents... No Workspace OpenPlease open a workspace to view its data. then I saved as workspace and tried again. Same result. |
Fixed it for me but had to download it from MarketPlace instead of 'Check for extension updates', as it didn't show the new version in Cursor. |
@irishcarbomb777 and @empyriumz did you have a chance to try the 0.2.3 update? Did it resolve it for you? |
@belucid nope, I updated the extension and now the error message is: |
@nickknyc there is a potential timing issue here. SpecStory reads history from Cursor's sqlite database, and that's not written out by Cursor immediately. There's a delay where the history is just in memory, and it eventually gets written. The most we've seen that take is about 20s, but it's not instant. Can you try again now with that same project, and see if it's still got the "No Workspace Open" output? |
@empyriumz can you share more about your remote docker setup? Let us know how (and why) you have the setup you do. Please share in enough detail so that we're able to setup our Cursor in the same configuration and replicate the issue. As you can see from your errors, it is sow checking where you thought the history was, and it turns out it's not actually there. So we need to figure out where it is on your setup. |
|
@nickknyc the presence of that particular string ("No Workspace Open") indicates you aren't on the latest version, 0.2.3, which doesn't have that string. Can you check your SpecStory extension version and make sure you get on to the latest version, 0.2.3 and try it again? |
@nickknyc We are finding that Cursor's marketplace mirror struggles to find and apply new extension versions. In case you run into issues, the latest build can always be found here: Download link: https://static.specstory.com/vscode-extension/releases/specstory-vscode-latest.vsix |
will give it a whirl this evening |
ok manually installed the vsix - this is what i get when i run save c and c history a .md file named "# Error.md" that contains the following: ErrorFailed to generate SpecStory: TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file |
Thanks @nickknyc we'll look into that. |
There is still an error when saving the composer and chat history.
Thank you very much for your extension. I have been looking for something like that and looking forward to using it. Does it store the cursor rules used as well? I am thinking of using the composer/chat history to optimize the definition of cursor rules on my own. SpecStory: v0.2.3 Cursor AI info |
Also get this error
SpecStory v0.2.4 Version: 0.44.9 Very frustrating, as I would love to use this extension! Great idea. |
Nope. Not yet. Next release should fix that. We're actively working on it! Thanks for the interest and patience. |
@nickknyc the just released 0.2.6 version has initial support for saving and sharing interactions from Composer Agent. |
@DotDotJames I'm curious how you are starting Cursor and opening this workspace. Can you describe the steps? |
UPDATE 25-01-30 03:15pm EST: I tried the extension in a project opened as a folder and it works. However, even if you open the same project as a folder the Composer/Chat history is gone because Cursor binds it to the way you opened it (maybe?). I had previously tested the extension as soon as it was launched, but it never worked for me. I tried again after almost 2 months, but it was still the same. It seems to find the Composer Storage but it does not find anything in the Workspace Storage. System Info
Version
|
@gabriel-filincowsky can you enable the debug tools in the Settings, and then open your project (which is enough if auto-save is enabled, otherwise also attempt a save with SpecStory). Then can you go to the SpecStory logs (use command-pallette Can you then paste everything from the logs here so we can see what's going on? It'll show what we're finding (or not) as your workspace, and the supporting DB for it. |
I just found a workaround. I am detailing it in another comment. |
@DotDotJames it would be helpful as well if you could follow the above steps ⬆ |
Okay, I think I have a workaround, not a solution but it might help others.Apparent IssueNot sure if that is the same for everyone, but I noticed if I open a project as a workspace the extension does not work. However, if I open a project as a folder the extension works. You might say, just reopen the same project as a folder! The issue is if you do that all the history of Composer and Chat is "lost". At least you can see it because Cursor creates a new database for it. The same happens if you rename a folder (project root). WorkoroundAlthough you might think you lost the history, you can still access it if you open the project as a workspace as before. This information is useful because it indicates that the history is not lost. You can actually retrieve the information history and insert it into the 'open as a folder' method (which works with the extension). Where the information is storedCursor stores the Composer and Chat history in the following location (depending on your operating system):
How to copy the historyIf you open this location you will notice a lot of folders. Each folder is related to a project. It is possible to just copy and paste the content of one folder to the other to restore the history. The issue is how can you know which folder is which. I am sure that you guys will come up with a better solution, but my solution is the following:
Now when you open Cursor again you will notice that the full Composer and Chat history for the project will load up. And now you can save it using SpecStory. FeedbackLet me know if this works for you. |
will try full steps later -- turns out it was saving even though wasn't saying it was error still shows tho seemingly works so thats awesome and seriously appreciate quick replies! |
@belucid here's log of workspac, still get same error even tho is actually working, i.e., shows no settings fold (even after fixing a possible folder log at workspace level) hope it helps! [2025-01-31T04:02:02.401Z] [INFO] Loading current workspace | {"file":"c:\Users\temp\Desktop\Sloop\customers\FAB\c-PAB.code-workspace","hasWorkspaceFolders":true,"folderCount":2,"workspaceFolders":["file:///c%3A/Users/temp/Desktop/Sloop/customers/FAB","file:///c%3A/Users/temp/Desktop/Sloop/legal/ip/all-you-need"]} |
Failed to auto-save composers (trigger: db-watcher) | {"error":"No workspace is currently open"} |
@DotDotJames It looks like your logs don't have developer logging enabled. If you go to "VS Code Settings" and then search for "specstory", it's this checkbox: That'll provide much more detailed "DEBUG" log output and hopefully we'll be able to see why your workspace isn't being found. |
@gabriel-filincowsky it would still be interesting to know why it's not working for you when opening the project as a workspace. The extension is designed to work no matter if the project is opened from a workspace or from a directory. In general this does work from a workspace, so it would still be useful to see your debug level logs, which will show the details of how the extension is looking for your state DB when opening from a workspace. |
Same here on windows 11, cursor 0.45.11. |
@harrisyu @gabriel-filincowsky @DotDotJames @hp-ekko this should be resolved for you in release 0.6.2. There hopefully shouldn't be any cases left where SpecStory reports not being able to ascertain the workspace (whether there is an explicit workspace file or just an opened folder/dir). Let us know if you still have any cases where it's not working for you. |
Works fine in cursor 0.46.6 ! Thank you ! |
and nothing in workspace |
@moukr can you:
This will give us a fresh log of SpecStory's attempt to open the DB for your workspace. If you can provide the logs, we can help you more from there. Alternatively, you can grab a spot with us here: https://calendly.com/d/crnq-qxh-8m9/specstory-support |
I get the same error as @moukr . Here's my error log when trying to save a specstory.
|
Uh oh!
There was an error while loading. Please reload this page.
I open Cursor with
cursor .
. I can see the composer history in the sidebar, but when ICTRL+P
SpecStory: Save Composer and Chat History
I get an empty markdown file with# No Workspace Open Please open a workspace to view its data.
I am on:
Version: 0.43.6
VSCode Version: 1.93.1
Commit: a846435528b4b760494a836f96f0739889253530
Date: 2024-12-06T05:11:55.168Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.26100
The text was updated successfully, but these errors were encountered: