-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Suddenly "No projects saved yet" #277
Comments
The same thing just happened to me today, any idea on what's going on? |
On a Mac, the location for the "projects.json" is in: The docu describes a way to save the "projects.json" to a different location. So I will go ahead and create a new folder for that file and put that folder under git control. However: It would be great, if we could find out, why this happens. @chrisid Can you remember, if you changed any settings? Or any important recent update? Anything similar? |
@rowild nothing changed, turned off the computer yesterday and when turned it on today projects.json was gone. Luckily I've got time-machine backup. Just moved to a custom location, thanks for the tip! |
@chrisid Not sure if the different location will stop the strange behaviour. We'll see Hope, the project owner can enlighten us with some tips... |
On Windows, the location for About possible reasons for this to happen, I don't think anything that could be caused by the extension itself. The latest real update happened almost 2 months ago. The only moment that projects.json` file is updated (which you could think it could crack the file) is when you save/rename/delete/disable a project. Otherwise, it only loads it. In recent releases, VS Code changed how extensions stores some of its data (created this
I'll re-check the extension source, looking for possible reasons. Hope this helps |
Lost my projects file too, not using insiders release, am using Settings Sync. (Hope that info helps) |
@chrisid, do you also use Settings Sync? |
@alefragnani I don't use Settings Sync. I'll keep an eye on my last steps in case it happens again. |
I also lost all data about projects. I do use Settings Sync. Before I lost the data, I added Web Template Studio extension and then did sync with Settings Sync. |
Did everybody experience the loss of projects TODAY? Could it be some kind of date problem? Or a time span (meaning: this happens after, e.g., 3 months)? Or was there a VS Code update today? Just thinking out loud... |
@rowild I don't think it was caused by VS Code update. I've been using the same version for ~1 week and updated my Insiders today, after the loss. |
Sorry - pushed the wrong button... |
I would just like to add that this is not the first time that this happens. (I have a feeling that this happens every 4 to 6 weeks...) |
@alexdevero I don't think this is caused by this extension either, based on the scenarios which it writes @rowild Have you ever looked in Settings Sync repository for similar issues? I mean, not necessarily with If I remember correctly, one of the 2019 monthly releases of VS Code was deleting/clearing the autosaved files from all workspaces, and they had to release a patch a few days latter to fix that. The autosaved files feature wasn't working. I'm not saying it's not my extension's fault, but maybe, it isn't and you should look for that too. Hope this helps |
@alefragnani Thank you for your extensive feedback and your ideas! I very strong have the feeling that it is NOT your extension. So I agree with you on that. |
Same thing happened to me today. I used Setting Sync but haven't synched files in a while nor updated the app for about a week as well. It looks like the |
@alexdevero @chrisid @alefragnani @pcherna Was this the first time? Or can anybody also confirm that this has been a recurring problem? |
@rowild Yes, I can confirm that this happened on May 30th 2019. In my case, it was the first time it happened. |
Same here :( |
For me now, this extension is completely broken. The "Any" projects section does not show anymore, no matter what settings I configure, it's impossible for me to save folders as favorites, as it keeps telling me, the project does exist already - yet nothing is shown in the sidebar. |
The second time it's happened to me now. Would be great if we could set it to look at a dev folder and just pull the projects in the root of that folder rather than only a manual save for each and every project. Maybe could be a simple command as well/instead? Project Manager->Create Projects from Master Directory. Then even if this happens again can just run that command and get nearly everything back in order easily. |
@DA-Bryan Can I ask you some questions, please?
There is a simple setting to get all your projects into the "all" or "git" or "mercurial" etc tabs. Yu can define "Base Folders" and you also can define "Ignored folders". Just look into your settings options, it is really easy. That way, projects are not saved as "Favorites", but simply read from the folders on Vs Code's startup (I think). Works great. However: We should pin-point the problem, of course, so your answers would help (me, at least). Thank you! |
Thanks for the idea, I think I tried that a long time ago but noticed it causing a heavy lag. I have a lot of projects as I also run support for a lot of clients for our company. Faster to have them locally and git pull as needed. But maybe something to look into again. |
@DA-Bryan Thanks for your feedback! - I have around 40 Projects. Since I only need "something to click on" to open the project, i also set all the "depths" options to "1" only. Maybe that is a new option, since you last used that? Here it works really fast, but I only use it since yesterday. However: I dare to say, that there has been sth going on between May 29th and May 30th for all of us. It's a riddle... |
My projects also gone. Update |
That's really weird 😕 . As you can see in The latest extension's update was released in May 28th, but it was only a npm security alert (https://github.com/alefragnani/vscode-project-manager/network/alerts), related to I'm trying to figure out more scenarios which could corrupt BTW, I only have a Windows PC available for development/test so, no Mac or Linux scenarios on my side, unfortunately, sorry. Hope this helps |
I lost all projects on one machine ~1 week ago (before 30th), and now on my second machine. No Settings Sync. |
I've also just seen that my projects.json file is empty. This is at least the second time it has happened. Not using Settings Sync. |
Just happened to me this morning too, haven't touched my work computer since the 28th, but it's been off. I remember updating this extension some time last week. Not using this 'Settings Sync' people are mentioning (never heard of it). I'm on GNU/Linux. I haven't set up any remote, shared, or symlinked folders/files for vscode either (rather plain install tbh). mlocate, which essentially caches the filesystem, says the there should have been a file at Edit: List of extensions;
|
I have a feeling that there is another extension interfering. Can we check, which extensions we all have installed? These are mine, not all are enabled (depending on type of work - FE or BE - the workspace settings vary): 2gua.rainbow-brackets-0.0.6 |
My list:
|
How did you generate that list? |
@rowild just run |
That still generates a list with the verdor name prefixed. Alex Devero has one that lists only the extensions' names. |
Now I see, sorry. I think he just removed the vendor name manually (editing the output) and sorted the lines. I don't know any |
Correct, I removed the vendor name and used "Sort ..." command in VS Code :). |
So far we have these in common: auto-close-tag-0.5.6 Since there are some users here who do not use settings-syns, we can loose that one, too... |
Unless I've done something wrong, If you include my list of extensions that I hid in a dropdown in my earlier comment, the only extensions in common between the three lists seem to be editorconfig and project-manager. |
my list:
|
@Necklaces Sorry, I didn't see your list! |
@alefragnani An info I'd like to share, not knowing, if it is of any importance: On Mac, the folder VS Code uses, is under
It looks a bit strange that there are empty curly braces... The encompassing folder has the date string Currently, I have no idea, what that means... but I keep searching... Question (since I have no idea about extension development): Is the "globalStorage" as the folder, where the project.json is saved to, the recommended place (if there is anything like a recommendation)? EDIT: |
@rowild , On a Mac, the original location for The concatenatioon of So, unless this code had failed, I understand you installed the extension (or saved any project) after that release. But, if you have the extension installed earlier, and had projects saved earlier too, I would say that something in VS Code has changed. I tested the extension with stable and insiders releases a few moments ago and it appears to be working fine. Which is sad :( I don't use EditorConfig, but I don't see how it could interfere in Does anyone has a Hope this helps. |
@alefragnani Thank you for your extensive feedback! Very interesting! |
This bug happened to me today too. I'm using Mac on my work, and yesterday I had to restart after more than a week on. And when I listed the projects to open, the message "No projects saved yet" appeared.
📄 My list of extensions:auto-close-tag@0.5.6 autodocstring@0.3.0 beautify@1.5.0 better-align@1.1.6 code-settings-sync@3.2.9 color-highlight@2.3.0 debugger-for-chrome@4.11.3 docthis@0.7.1 dotenv@1.0.1 EditorConfig@0.13.0 gitignore@0.6.0 gitlens@9.8.1 JavaScriptSnippets@1.7.2 jshint@0.10.20 jslint@1.2.1 laravel-blade@1.1.2 markdown-checkbox@0.1.3 markdown-emoji@0.0.9 markdown-preview-github-styles@0.1.6 markdown-toc@1.5.6 material-icon-theme@3.8.0 nord-visual-studio-code@0.10.0 path-intellisense@1.4.2 php-cs-fixer@0.1.119 php-debug@1.13.0 php-docblocker@1.8.0 phpcs@1.0.5 project-manager@10.5.2 python@2019.5.18426 quitcontrol-vscode@3.1.3 reg@0.0.2 rest-client@0.21.3 shell-format@5.0.1 ssh@0.0.4 stylus@0.0.4 sublime-keybindings@4.0.0 viml@0.1.7 vscode-apache@1.2.0 vscode-codemetrics@1.18.1 vscode-color@0.4.5 vscode-eslint@1.9.0 vscode-intelephense-client@1.0.14 vscode-javascript-snippet-pack@0.1.5 vscode-nginx@0.6.0 vscode-styled-components@0.0.26 vscode-todo-plus@4.13.0 vue@0.1.5 I honestly thought that list was bigger. 🤔 Command used to get the list: code --list-extensions --show-versions | cut -f2- -d'.' | sort --ignore-case |
@thiagobraga Thank you for your report! Could you be so kind and check the logs folder of VS Code, too (lease see above). Do you have any log data where suddenly a "project.json: {}" appears, similar to mine above? If so, what is the name (= date) of the encompassing folder? |
Hi @rowild, you are welcome. Happy that this command helped. About the logs, I checked the VS Code log folder and there were only folders for the month of June. I'm not sure if it was some cleaning of the system, or Code itself, or even CleanMyMac running automatically. Anyway, in the logs that I have, I've executed these commands, but I didn't get any relevant information: cd ~/Library/Application Support/Code/logs
grep -rni 'globalStorage' . # no results
grep -rni 'projects.json' . # no results
grep -rni 'project-manager' . # only _doActivateExtension and loadCommonJSModule logs ...
# ... and this entry, but I don't think it has any use
# ./20190604T175632/sharedprocess.log:19:[2019-06-04 17:57:28.270] [sharedprocess] [info] Deleted from disk alefragnani.project-manager /Users/thiagobraga/.vscode/extensions/alefragnani.project-manager-10.5.1 I've tried other words in grep like 'delete', 'remove', but nothing relevant too. |
@thiagobraga Thank you again!! |
This just happened to me (again). I always assumed it was settings sync, but it seems it's not that by reading some responses. My problem just got worse though. I can't even create a new projects.json file. When I do Where does the file live in Linux? |
Sorry to hear that. In Linux, it looks for appdata = process.env.APPDATA || (process.platform === "darwin" ? process.env.HOME + "/Library/Application Support" : "/var/local");
newFile = path.join(appdata, channelPath, "User", file);
// in linux, it may not work with /var/local, then try to use /home/myuser/.config
if ((process.platform === "linux") && (!fs.existsSync(newFile))) {
newFile = path.join(homeDir, ".config/", channelPath, "User", file);
} I’m sorry, but I don’t use Linux, and I’m away from a computer now, so I can’t be sure about the APPDATA value. Hope this helps |
@alefragnani You are right about the config file location on Linux, and
https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations |
I'm closing this issue because no new comments has been made for quite a while. The issue remained open to help other which could face the same problem. Fortunately it appears it’s not happening anymore. Thank you |
I had a list of projects, but today, on re-opening VS Code, all the saved projects are gone, the list is empty and it says "No projects saved yet". Even the notification window tells me that there are no projects saved yet, when I type "Project Manager: Edit Projects". It seems the json is empty...
This actually happened not for the first time, but so far I didn't see any posted issues here.
How can I check, what happened?
What could be possible reasons?
Where is the actual projects.json saved? (There is nothing about that in the doce...)
I use "settings sync", and every once in a while I change the editor's own settings by moving some rules from "settings" to "workspace". But I do not have any manually edited "Project Manager" settings...
Does anybody have a similar experience? Any hints? Tips?
Thank you!
The text was updated successfully, but these errors were encountered: