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
SQLite Selected DB Path includes current folder #430
Comments
are you using settings.json or vscode workspace files? |
I'll make SQLite relative to settings file or workspace file. We've already had a lot of similar issues, that's very opinionated because which user has an understanding about this path. I'll use vscode standard, relative to current setting file dir. |
The same issue in ubuntu, can fix |
I'm using vs code workspace files but regardless, I'm guessing the file path to be inserted should be relative to the current vs code project directory. If it's global in settings.json perhaps using the full file path would be better? I've tried pasting the full file path into my workspace json and it is working. |
Closed by mistake |
I've fixed this using vscode guides for workspaces. See: https://code.visualstudio.com/docs/editor/variables-reference#_variables-scoped-per-workspace-folder Now files will be saved with We can still use dot syntax This solution covers all 3 supported kinds of workspaces by vscode. |
@bricakeld this will be released tonight, so if will still face problems with paths, just edit you connection, select the file and save it again. It will update to new standard. |
Thanks for the fix! I'll try it out next couple days and update again if needed |
🤘 |
Describe the bug
When I select an sqlite file, the current folder is included in the path, resulting in an error that says the database file cannot be opened. It can be fixed manually by changing the file path in the connections json setting, but by default, I'm guessing the file selector should result in a correct path added to the json.
To Reproduce
Example project dir:
Steps to reproduce the behavior:
.\\<current_folder>/path/to/db.sqlite
or as in example,.\\Project/db/test.sqlite
Expected behavior
The correct file path should exclude the current folder, and be saved directly as
./path/to/db.sqlite
or as in example,./db/test.sqlite
Using the full file path of the sqlite file works too.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: