-
Notifications
You must be signed in to change notification settings - Fork 228
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
unknown error: call function result missing int 'status' #1057
Comments
Let me know if there's anything you can advise from the issue description alone. If not, I will try to create a reproduction repository for this. |
When I ran chromedriver binary as proposed here, I was able to see a more descriptive error when I ran Spectron:
Looks like Spectron runs Chromedriver, which executes VS Code and fails on some Update: This exception seems to be gone if I pass the |
The error itself originates from Chromedriver and its Status ParseCallFunctionResult(const base::Value& temp_result,
--
| std::unique_ptr<base::Value>* result) {
| const base::DictionaryValue* dict;
| if (!temp_result.GetAsDictionary(&dict))
| return Status(kUnknownError, "call function result must be a dictionary");
| absl::optional<int> status_code = dict->FindIntKey("status");
| if (!status_code) {
| return Status(kUnknownError,
// RIGHT HERE
| "call function result missing int 'status'");
| }
| if (*status_code != kOk) {
| std::string message;
| dict->GetString("value", &message);
| return Status(static_cast<StatusCode>(*status_code), message);
| }
| const base::Value* unscoped_value = dict->FindKey("value");
| if (unscoped_value == nullptr) {
| // Missing 'value' indicates the JavaScript code didn't return a value.
| return Status(kOk);
| }
| *result = base::Value::ToUniquePtrValue(unscoped_value->Clone());
| return Status(kOk);
| } But I fail to spot what sets the "status" key in the "dict". There are no explicit calls of Here's a call stack for this function:
I wish I could see how the |
Hi @kettanaito, have you by chance made any headway on this? I'm actually running into the exact same error with spectron v18 and electron v16. If you found a solution I'd love to know what it is. :) |
Hey, @arossetter. Alas, I'm stuck on this as well. Sadly, there's been no replies from the project's maintainers. I'd really love to hear some suggestions on how to debug this at least. Same here: if you find anything that moves you forward please let me know! |
@kettanaito we're not likely to get replies from the maintainers as Spectron is deprecated (#1045) but I'll definitely return here if I figure something out on my end. |
Context
I'm trying to launch a VS Code window using Spectron. Here's the setup:
The VS Code version I'm launching is 1.66.2 with the following environment:
I confirm that
vscodeExecutablePath
is correct as I see the window launching. Yet theapp.start()
throws the following error:Dependencies
Transient dependencies:
Things I've tried
Expected behavior
I can launch the given VS Code executable without issues.
The text was updated successfully, but these errors were encountered: