-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Invalid projects.json causes issues #82
Comments
@Gama11 I have the same issue, where is the |
(on windows)
|
Thank you, on macOS is at: |
@Gama11 thanks for the detailed description 👍. I think I have to revisit this code. It's probably related to the refactoring that was made to support But, I don't see why In the meantime, try to add a temporary project in Thanks for your help |
Yes, I manually emptied the file to check out the project auto-detection feature.
Like I mentioned, that's what I did. I just thought I should report this anyway so the UX can be improved. :) |
Better UX is aways a good point, but in this case, is really a bug 😄 |
I submitted PR #81, which probably fixes this issue. @alefragnani Can you please have a look and confirm if that's the case? |
Hi @samuelsuarez , First of all, thanks for you PR. I didn't evaluate yet because I'm on vacation, and decided give a break on some coding 😄 . I must return to play next week. About the fix, I guess aren't related. The problem here appears to be not handling malformed json files, instead of empty project list. I didn't check/debug the issue yet to be sure, but if your PR fixes, I will be _veeery happy 😁 |
Well, I can't simply read/write e-mails, developers loves to code 😄 I debugged this issue and discovered some things:
It will be fixed soon, but first I have to merge 2 PRs and merge another internal code that I'm doing. After that I have to check #84 Thanks for your help |
Looks like you were right, your PR fixes the empty list problem 👍 🎉. Thank you! |
Using the latest version (0.13.0) + VSCode 1.8.1.
If the
projects.json
file is completely empty, the following error appears:This is not particularly surprising.
However, clicking "Open File" here doesn't do anything. It even looks like the extension crashes entirely (?), since no project manager command works anymore:
This means you have to manually locate the
projects.json
file to correct the issue (not a big issue in my case since I knew where it was, but this could be considered bad UX).Note: if
projects.json
contains{}
instead of being completely empty, it fails slightly differently:So that might be a different issue.
The text was updated successfully, but these errors were encountered: