Skip to content
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

Path does not exist #1

Closed
t7yang opened this issue Jul 21, 2017 · 18 comments
Closed

Path does not exist #1

t7yang opened this issue Jul 21, 2017 · 18 comments
Assignees

Comments

@t7yang
Copy link

t7yang commented Jul 21, 2017

  1. install projects
  2. setup "projects.refreshRoots": [ "D:\my-project-path" ]
  3. F1 run projects refresh
  4. F1 project open (get list), hit enter to switch project
  5. vscode pop alert window: path does not exist. the path " does not seems to exist anymore on disk

tried on vscode and vscode insider get the same result :(
os: windows 10 creator update
vscode: 1.4.2 64bit

@fabiospampinato
Copy link
Owner

Can you run Projects: edit configuration and paste here the path found my the extension for that particular project? Is that path actually valid?

It's either finding the wrong path or failing to open it for some reason.

@fabiospampinato fabiospampinato self-assigned this Jul 21, 2017
@t7yang
Copy link
Author

t7yang commented Jul 21, 2017

I got an error: unable to open ": invalid file resource (file://c:\users\myaccount\vscode.projects.json).

but the config file is actually there

I deleted the preview one, and run edit configuration again, get the same error.

and my home path has an default config file. weird

@fabiospampinato
Copy link
Owner

I think this is the same issue as #2. I've pushed a new update that might fix it. Can you try updating the extension?

@t7yang
Copy link
Author

t7yang commented Jul 21, 2017

negative!
1.2.2 updated. problem still there :(

@fabiospampinato
Copy link
Owner

What is the exact value of your projects.configPath setting as written in the settings file? I think there's probably a problem there. I set up a new Windows machine and I cannot reproduce it any other way.

@t7yang
Copy link
Author

t7yang commented Jul 21, 2017

either leave it empty or the path of config, the former get error when edit config (which expected).
(C:\\Users\\myusername\\vscode_projects.json)
but both get error ( path does not exist ) when project: open

@fabiospampinato
Copy link
Owner

fabiospampinato commented Jul 21, 2017

Then that's the problem, C:\Users\myusername\vscode_projects.json is not a valid path, because \u is used for writing unicode characters, and \v means the "vertical tab" character. You should replace those backslashes with double backslashes, so the path will effectively become C:\\Users\\myusername\\vscode_projects.json.

If you leave it empty the config file will be filled with fake paths like /path/to/project that don't point to anything in your system, that's why you are getting the error in that case.

Edit:
Did you edit your comment to add extra backslashes or am I very tired?

@t7yang
Copy link
Author

t7yang commented Jul 21, 2017

no, I did add the escape char, it didnt show because of md. I updated my previous reply.

@fabiospampinato
Copy link
Owner

fabiospampinato commented Jul 21, 2017

I've tried using the same logic used by the top downloaded extensions to open the file, you can find the updated extension here. Just do a Command palette -> Install from VSIX... and restart VSC.

If it works I'll push an update, if it doesn't I'm afraid that being unable to reproduce it I won't be able to fix it.

@t7yang
Copy link
Author

t7yang commented Jul 21, 2017

negative! tried both vscode and insiders, even disabled all extensions to make sure no other impact.

@fabiospampinato
Copy link
Owner

Damn... Does this extension work in your environment? Try to run its "Edit Project" command.

@t7yang
Copy link
Author

t7yang commented Jul 21, 2017

project manager and git project manager both work fine on my vscode. so... you infer this problem happen on my pc only?

@evandrocoan
Copy link

evandrocoan commented Jul 21, 2017

I did not tried the git project manager and the project manager did not worked on my pc after I used the external settings folder with:

code --user-data-dir "F:\vscode\settings" --extensions-dir "F:\vscode\extensions"

But after the last commit 15cbcdf this package started working here.

@fabiospampinato
Copy link
Owner

@t7yang I'm not implying anything like that. On the contrary, if it happens to you it probably happens to other people as well. I'm just saying that at the moment I have no clue on how to fix this.

@t7yang Can you try if it works with the latest update if you provide a new configPath?

@t7yang
Copy link
Author

t7yang commented Jul 22, 2017

@fabiospampinato finally, yes, it works now 👍 (time to say goodbye to project manager and git project manager :P thank you so much)

@fabiospampinato
Copy link
Owner

I'm happy to hear that 😄

Did you have to change configPath or just updating the extension was enough?

@t7yang
Copy link
Author

t7yang commented Jul 22, 2017

both (leave it empty or path) ok. but I think it is better to make default config in vscode default user settings folder (just like project manager), because this make sync extension able to sync the config.

@fabiospampinato
Copy link
Owner

That's interesting, I haven't thought about that 🤔 Thanks for the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants