anas-araid / vscode-supabase-cli Goto Github PK
View Code? Open in Web Editor NEWsupabase cli for visual studio code (EXPERIMENTAL)
Home Page: https://marketplace.visualstudio.com/items?itemName=anasaraid.vscode-supabase-cli
License: MIT License
supabase cli for visual studio code (EXPERIMENTAL)
Home Page: https://marketplace.visualstudio.com/items?itemName=anasaraid.vscode-supabase-cli
License: MIT License
Hey,
I found your extension via the recent Launch Week Hackathon, and it looks really useful.
Unfortunately, it doesn't seem to install properly. I tried installing it via the VS Code marketplace, but it fails when trying to load:
2024-02-22 09:49:01.186 [error] Activating extension anasaraid.vscode-supabase-cli failed due to an error:
2024-02-22 09:49:01.186 [error] Error: Cannot find module 'axios'
Apparently it requires an additional NodeJS module? Should it not be shipping with that?
It seems the issue can be fixed by manually entering the installed extension's directory and running npm run install:all
, but that seems a little bit ridiculous.
For anyone else with this problem looking for a quick fix, on Windows, the incantations are:
# npm install --global yarn
cd $env:userprofile\.vscode\extensions\anasaraid.vscode-supabase-cli-*
npm run install:all
After installing the extension on Windows, I noticed that it does not appear to run correctly. For example, if I press Ctrl+Shift+P and run "Run supabase db reset command", nothing happens and this error appears in the Extension Host logs:
2024-02-22 10:18:41.459 [error] Error: ENOENT: no such file or directory, lstat '/c:/Users/colin.emonds/Code/foo'
at lstatSync (node:fs:1670:3)
at Object.lstatSync (node:electron/js2c/asar_bundle:2:4026)
at executeCommand (c:\Users\colin.emonds\.vscode\extensions\anasaraid.vscode-supabase-cli-0.0.1\out\utils\exec-command.js:9:40)
at c:\Users\colin.emonds\.vscode\extensions\anasaraid.vscode-supabase-cli-0.0.1\out\register.js:28:160
at Generator.next (<anonymous>)
at c:\Users\colin.emonds\.vscode\extensions\anasaraid.vscode-supabase-cli-0.0.1\out\register.js:8:71
at new Promise (<anonymous>)
at __awaiter (c:\Users\colin.emonds\.vscode\extensions\anasaraid.vscode-supabase-cli-0.0.1\out\register.js:4:12)
at c:\Users\colin.emonds\.vscode\extensions\anasaraid.vscode-supabase-cli-0.0.1\out\register.js:28:72
at s.h (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:175243)
at s.$executeContributedCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:150:176103)
at d.S (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:147:5520)
* snip many more lines *
The directory in the error message exists, but the path looks very odd. Is the leading slash intended?
Genuinely awesome work. Is there anything I can do to help you get this on the extensions store? Would love to start using it through there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.