Necmttn | Craftgen.ai
Necmttn | Craftgen.ai•2mo ago

How to get resource/variable running locally via vscode ?

I'm little confused with the setup and docs are not really helping with it.
8 Replies
rubenf
rubenf•2mo ago
if you want to run things fully locally, then you needto treat windmill api as an external api and provide WM_TOKEN and WM_BASE_URL That should be mentionned in the docs in developping locally
Necmttn | Craftgen.ai
Necmttn | Craftgen.aiOP•2mo ago
i believe i have everything in place yet still.
No description
Necmttn | Craftgen.ai
Necmttn | Craftgen.aiOP•2mo ago
i don't need to setup mock file right? that was kind a confused me in between.
rubenf
rubenf•2mo ago
you're using a mocked api
Necmttn | Craftgen.ai
Necmttn | Craftgen.aiOP•2mo ago
i just gave a try, here's updated screenshot of the code.
No description
Necmttn | Craftgen.ai
Necmttn | Craftgen.aiOP•2mo ago
very same piece of code works in hosted UI when i try it.
rubenf
rubenf•2mo ago
did you pass WM_WORKSPACE ? aaah but you're using the vscode extension so it's running locally, it's running on the remote use 1.455.0 and verify that the variable actually exists on the workspace you're connected to in vicecheq
Necmttn | Craftgen.ai
Necmttn | Craftgen.aiOP•2mo ago
client version right ? import * as wmill from "npm:windmill-client@1.455.0" nvm it's worked 🎊 i had typo in workspace name :S i wish the error was; (there's no such a workspace )

Did you find this page helpful?