supabase-vscode-extension
supabase-vscode-extension copied to clipboard
Could not connect to local Supabase project
Bug report
Describe the bug
i installed supabase cli by brew then i used "supabase start" but i had this issue on vscode extension "Could not connect to local Supabase project. Make sure you've run 'supabase start'!,"
To Reproduce
- brew install supabase/tap/supabase
- supabase start
- install vscode supabase extension
Screenshots
System information
- OS: [e.g. macOS Sequora 15.1 ]
- Browser (if applies) [chrome]
- Version of supabase-js: [2.15.8]
- Version of Node.js: [21.7.2]
Additional context
Add any other context about the problem here.
Same here. Using latest VS Code insiders. This is recent too, maybe in the last week. Was working prior to then
I confirm, I have the same problem
confirmed same problem. From a quick inspection, when I run supabase start the pg_meta container shows no exposed port, but the extension seems to Iook for pg_meta at http://l127.0.0.1:54323 which are hardcoded values. It might be useful to expose these to settings.
@tidymonkey81 my docker desktop has expose port
Same here! Latest version both!
I have the same issue. Too much of a newb to help though.
no reply support from supabase's team
+1 for this VSCode extension issue. First time trying to use the extension
I'll try to take a look over the weekend.
Since I have another full-time job and I'm not affiliated with Supabase, I can't address it quickly. Thanks for your patience 🙏
Thanks @anas-araid We appreciate you 🙏🏻
any progress on it? thanks!!
I've opened a PR. Since there's no official maintainer to review, merge, and publish the repo, I'll reach out to someone at Supabase
In the meantime, could someone test it to check if everything works correctly?
To run the repo locally:
- git clone [email protected]:supabase-community/supabase-vscode-extension.git
- git checkout 38-could-not-connect-to-local-supabase-project
- npm install
- npm run watch
- Press F5
Thanks!
Works on my side. I can now connect Thanks for the fix @anas-araid 🙏🏻
BTW no idea if this is relevant or not, but I can see this in my console:
[default] User selected model gpt-4o-copilot is not in the list of generic models: , falling back to default model.
In the meantime, could someone test it to check if everything works correctly?
@anas-araid Do you think you could create a vsix and post it here so we can side-load it while we wait for your PR to be merged?
https://github.com/supabase-community/supabase-vscode-extension/releases/tag/v0.0.9-alpha
Awesome @anas-araid Works here 🚀🚀🚀
For newbies like me:
To side-load a VSIX from a GitHub release, follow these steps:
- Download the VSIX file from the GitHub release page. For example, you can find the VSIX file for the Supabase VSCode extension at the v0.0.9-alpha release.
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing
Ctrl+Shift+X.- Click on the three-dot menu at the top-right corner of the Extensions view.
- Select "Install from VSIX..." from the dropdown menu.
- Navigate to the location where you downloaded the VSIX file, select it, and click "Open".
- The extension will be installed, and you should see it listed in the Extensions view.
thx @anas-araid !!!
Awesome @anas-araid Works here 🚀🚀🚀
For newbies like me:
To side-load a VSIX from a GitHub release, follow these steps:
- Download the VSIX file from the GitHub release page. For example, you can find the VSIX file for the Supabase VSCode extension at the v0.0.9-alpha release.
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing
Ctrl+Shift+X.- Click on the three-dot menu at the top-right corner of the Extensions view.
- Select "Install from VSIX..." from the dropdown menu.
- Navigate to the location where you downloaded the VSIX file, select it, and click "Open".
- The extension will be installed, and you should see it listed in the Extensions view.
I've tried this and it still doesn't work. Shows the "Connect" button but when clicked, it disappears. Logs show: INFO Started local extension host with pid 14572. log.ts:460 ERR Extension 'supabase.vscode-supabase-extension' wants API proposal 'chatVariableResolver' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. error @ log.ts:460 log.ts:440 INFO Settings Sync: Account status changed from uninitialized to unavailable log.ts:440 INFO [perf] Render performance baseline is 12ms
@anas-araid > https://github.com/supabase-community/supabase-vscode-extension/releases/tag/v0.0.9-alpha
I've tried this and it still doesn't work. Shows the "Connect" button but when clicked, it disappears. Logs show: INFO Started local extension host with pid 14572. log.ts:460 ERR Extension 'supabase.vscode-supabase-extension' wants API proposal 'chatVariableResolver' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. error @ log.ts:460 log.ts:440 INFO Settings Sync: Account status changed from uninitialized to unavailable log.ts:440 INFO [perf] Render performance baseline is 12ms
Installation Identifier supabase.vscode-supabase-extension Version 0.0.9 Last Updated 2025-04-13, 13:03:35 Source VSIX Size 10.98MB Marketplace Published 2024-08-07, 04:05:38 Last Released 2024-09-10, 14:24:08
https://github.com/supabase-community/supabase-vscode-extension/blob/f69f33701beb5e8b8e3f172d647172442aeb8ed1/src/features/database/classes/supabase-api.ts#L34
someone have a look?
instead of projects now is project
http://127.0.0.1:54323/project/default
@anas-araid Thanks for this fix! It worked for me when I installed via VSIX.
Bueller? Bueller?
I created an issue on the Supabase page. Hopefully, someone from the team will see this from there. https://github.com/supabase/supabase/issues/36742
Hi all, version 0.0.10 is now live on the VS Code Marketplace which fixes the issue.