httpteapot
httpteapot
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
both directories are in the same VSCode workspace
12 replies
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
my tree structure is like so:
wmill/
-- wmill.yaml
-- f/
---- example.js
web/
-- file.js (The button is displayed here)
wmill/
-- wmill.yaml
-- f/
---- example.js
web/
-- file.js (The button is displayed here)
12 replies
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
But for me the button is displayed for all JS files
12 replies
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
Yes I was reading https://github.com/windmill-labs/windmill-vscode/blob/main/src/extension.ts quickly and indeed there seem to be a logic to handle that
12 replies
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
Is there a way to display the "show preview" button in VScode, only for windmill files. For instance only if there is a wmill.yaml in a parent directory?
12 replies
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
The bug is fixed, thanks
12 replies
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
Also right click -> "paste" is not available
12 replies
WWindmill
Created by httpteapot on 9/19/2024 in #help
Cannot paste text in Windmill preview in VSCode
Not working (using ^on macos)
12 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
21 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
Ok, so this is a bug with bun?
21 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
When I bun build the following file, and then execute it, it works
import { JSDOM } from "jsdom";

export async function main(a: number) {
const test = new JSDOM();
return { a, test };
}

console.log(await main(1));
import { JSDOM } from "jsdom";

export async function main(a: number) {
const test = new JSDOM();
return { a, test };
}

console.log(await main(1));
21 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
I tried to track down the issue locally running bun build on a script using jsdom, but I can't reproduce the issue. How are scripts bundled in windmill? It's not using bun build?
21 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
Yes it works with nobundling
21 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
(It works if I remove jsdom)
21 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
Isn't it the recommanded way to call a script "manually" in code without creating a flow?
21 replies
WWindmill
Created by httpteapot on 9/17/2024 in #help
Error when calling a bun script using `wmill.runScript`
Still an error with :
import * as wmill from "windmill-client"

export async function main() {
return await wmill.runScript('/u/maxime/demo_with_jsdom', null, {a: 3})
}
import * as wmill from "windmill-client"

export async function main() {
return await wmill.runScript('/u/maxime/demo_with_jsdom', null, {a: 3})
}
// maxime/demo_with_jsdom
import { JSDOM } from "jsdom";

export async function main(a: number) {
const test = new JSDOM();
return { a, test };
}
// maxime/demo_with_jsdom
import { JSDOM } from "jsdom";

export async function main(a: number) {
const test = new JSDOM();
return { a, test };
}
21 replies