Skip to content

Could not connect to local Supabase project #38

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

Open
21550022 opened this issue Mar 5, 2025 · 21 comments · May be fixed by #39
Open

Could not connect to local Supabase project #38

21550022 opened this issue Mar 5, 2025 · 21 comments · May be fixed by #39
Assignees
Labels
bug Something isn't working

Comments

@21550022
Copy link

21550022 commented Mar 5, 2025

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 21550022 added the bug Something isn't working label Mar 5, 2025
@DuncanLHS
Copy link

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

@giuseppecapasso
Copy link

I confirm, I have the same problem

@tidymonkey81
Copy link

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.

@21550022
Copy link
Author

@tidymonkey81 my docker desktop has expose port

Image

@xunjianxiang
Copy link

Same here! Latest version both!

@wescarnegie
Copy link

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

@quangnt0107
Copy link

no reply support from supabase's team

@trailofdad
Copy link

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

@anas-araid
Copy link
Collaborator

anas-araid commented Mar 12, 2025

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 🙏

@trailofdad
Copy link

Thanks @anas-araid We appreciate you 🙏🏻

@cpretzinger
Copy link

any progress on it? thanks!!

@anas-araid anas-araid self-assigned this Mar 16, 2025
@anas-araid anas-araid linked a pull request Mar 16, 2025 that will close this issue
@anas-araid anas-araid linked a pull request Mar 16, 2025 that will close this issue
@anas-araid
Copy link
Collaborator

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!

@vejja
Copy link

vejja commented Mar 17, 2025

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.

@jdoklovic
Copy link

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?

@anas-araid
Copy link
Collaborator

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

@vejja
Copy link

vejja commented Mar 21, 2025

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.

@mikevb3
Copy link

mikevb3 commented Mar 22, 2025

thx @anas-araid !!!

@QuicksilverSlick
Copy link

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
Copy link

QuicksilverSlick commented Apr 13, 2025

@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

@LemonHX
Copy link

LemonHX commented May 9, 2025

const checkStatus = `${this.baseUrl}:${Ports.PG_META}/api/projects/default`;

@LemonHX
Copy link

LemonHX commented May 9, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.