supabase-vscode-extension icon indicating copy to clipboard operation
supabase-vscode-extension copied to clipboard

Could not connect to local Supabase project

Open 21550022 opened this issue 8 months ago • 21 comments

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

  1. brew install supabase/tap/supabase
  2. supabase start
  3. install vscode supabase extension

Screenshots

Image

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.

21550022 avatar Mar 05 '25 03:03 21550022

Same here. Using latest VS Code insiders. This is recent too, maybe in the last week. Was working prior to then

DuncanLHS avatar Mar 06 '25 14:03 DuncanLHS

I confirm, I have the same problem

giuseppecapasso avatar Mar 06 '25 15:03 giuseppecapasso

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 avatar Mar 10 '25 05:03 tidymonkey81

@tidymonkey81 my docker desktop has expose port

Image

21550022 avatar Mar 10 '25 07:03 21550022

Same here! Latest version both!

xunjianxiang avatar Mar 11 '25 15:03 xunjianxiang

I have the same issue. Too much of a newb to help though.

wescarnegie avatar Mar 12 '25 03:03 wescarnegie

no reply support from supabase's team

quangnt0107 avatar Mar 12 '25 07:03 quangnt0107

+1 for this VSCode extension issue. First time trying to use the extension

trailofdad avatar Mar 12 '25 12:03 trailofdad

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 🙏

anas-araid avatar Mar 12 '25 12:03 anas-araid

Thanks @anas-araid We appreciate you 🙏🏻

trailofdad avatar Mar 12 '25 13:03 trailofdad

any progress on it? thanks!!

cpretzinger avatar Mar 16 '25 18:03 cpretzinger

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!

anas-araid avatar Mar 16 '25 21:03 anas-araid

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.

vejja avatar Mar 17 '25 10:03 vejja

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?

jdoklovic avatar Mar 21 '25 16:03 jdoklovic

https://github.com/supabase-community/supabase-vscode-extension/releases/tag/v0.0.9-alpha

anas-araid avatar Mar 21 '25 17:03 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.

vejja avatar Mar 21 '25 17:03 vejja

thx @anas-araid !!!

mikevb3 avatar Mar 22 '25 00:03 mikevb3

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

QuicksilverSlick avatar Apr 13 '25 18:04 QuicksilverSlick

@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

QuicksilverSlick avatar Apr 13 '25 18:04 QuicksilverSlick

https://github.com/supabase-community/supabase-vscode-extension/blob/f69f33701beb5e8b8e3f172d647172442aeb8ed1/src/features/database/classes/supabase-api.ts#L34

LemonHX avatar May 09 '25 04:05 LemonHX

someone have a look? instead of projects now is project http://127.0.0.1:54323/project/default

LemonHX avatar May 09 '25 04:05 LemonHX

@anas-araid Thanks for this fix! It worked for me when I installed via VSIX.

PeterQJ avatar Jun 06 '25 12:06 PeterQJ

Bueller? Bueller?

joeshub avatar Jun 21 '25 16:06 joeshub

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

jar145 avatar Jun 28 '25 18:06 jar145

Hi all, version 0.0.10 is now live on the VS Code Marketplace which fixes the issue.

Hallidayo avatar Jul 03 '25 09:07 Hallidayo