-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Joyride: Run Workspace Script... error on windows #183
Comments
Hi! Looks like you have something in This script should work: const vscode = require("vscode");
showHelloMessage = async () => {
const button = await vscode.window.showInformationMessage("Hello World!", "Cancel", "OK");
if (button === "OK") {
vscode.window.showInformationMessage("You clicked OK! Try clicking Cancel too?.");
} else {
const name = await vscode.window.showInputBox({
title: "CIA wants to know",
prompt: "What is your name?",
});
vscode.window.showInformationMessage(`Hello ${name}!`);
}
};
showHelloMessage(); |
@PEZ i test on three computers got same error, here is screen recording test your code: |
@tshemeng, thanks for testing that. I don't know what's going on, but could be specific to Windows. I'll get hold of a Windows machine to test this on. Can you confirm that ClojureScript ( (require '["vscode" :as vscode]
'[promesa.core :as p])
(defn show-hello-message []
(p/let [button (vscode/window.showInformationMessage "Hello World!" "Cancel" "OK")]
(if (= "OK" button)
(vscode/window.showInformationMessage "You clicked OK! Try clicking Cancel too?.")
(p/let [name (vscode/window.showInputBox #js {:title "CIA wants to know",
:prompt "What is your name?"})]
(vscode/window.showInformationMessage (str "Hello " name))))))
(show-hello-message) |
@PEZ .cljs works fine. |
Open any project on Windows, run command
Joyride: Run Workspace Script...
, select a .js file, VSCode Joyride got errorThe text was updated successfully, but these errors were encountered: