Skip to content
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

Every object is null when using Dartium 50, WebStorm 2017.1.2 on Windows 10 #29854

Closed
mnordine opened this issue Jun 13, 2017 · 10 comments
Closed
Assignees
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.

Comments

@mnordine
Copy link
Contributor

I've seen this behavior on 2 machines. Rolling back Dartium works.

@zoechi
Copy link
Contributor

zoechi commented Jun 13, 2017

and 2017.1.4 on Mac

@terrylucas terrylucas assigned jwren and terrylucas and unassigned terrylucas and jwren Jun 15, 2017
@terrylucas terrylucas added the area-intellij Tracking issues for the Dart IntelliJ plugin. label Jun 15, 2017
@terrylucas
Copy link
Contributor

@alexander-doroshko

Can you investigate on the WebStorm side on what you're not getting from Dartium? For most objects I'm seeing null, scalars (strings, ints, etc. are valid), many dart:html items like button, div seem to appear too. However, many others are null.

A good simple example to try is from the https://github.com/dart-lang/dart-tutorials-samples
use the anagram sample

Setting a BP on the generateNewLetters(); line in the function:

void newletters(Event e) {
letterpile.children.clear();
result.children.clear();
generateNewLetters();
}

will show both this and e as null?

@jwren
Copy link
Member

jwren commented Jun 15, 2017

@terrylucas I know before the roll you tested it against IJ, which version and platform works?

Also, is the issue presenting itself in the Webstorm 2017.2 EAP or Ultimate 2017.2 EAP?

FYI: Alex is out on vacation next week.

@terrylucas
Copy link
Contributor

Tested to make sure BPs worked (and some variables do display values) however it looks like others do not. I also tried with 2017.2 EAP and it fails the same way. In particular, in the anagram example the instance for e displays as null.

@alexander-doroshko
Copy link

I'm OOO till June, 26. The first step is to see what Dartium sends to the IDE, maybe it is sending nulls instead of real var values. To get these logs click Help -> Find Action, type Registry, open it, search for js.debugger.wip.log property, set it to some log file path like /foo/bar/log.json. This file will be rewritten on each debug session.

@alexander-doroshko
Copy link

@terrylucas @jwren I compared debug logs and see some difference between Dartium 1.23 and 1.24.1 that I think leads to nulls as var values. I played with the anagram project and a single breakpoint in void newletters(Event e). Note that this is expected to be null, but e - not, it is expected to be MouseEvent. IDE sends "Runtime.getProperties" request and receives "handleResult" event. The difference is that the response from Dartium 1.24.1 includes "value":null for the e variable, but response from Dartium 1.23 doesn't contain "value" attribute at all. See attached screenshot. I'm not an expert in the protocol so can't say for sure whether it is a Dartium fault or IDE incorrectly interprets the response or both. I'll be able to ask colleagues after vacation unless you know the answer.
image

@jwren
Copy link
Member

jwren commented Jun 16, 2017

@alexander-doroshko Thanks for looking into the issue. I am not familiar with the protocol requirements/ expectations either.

@terrylucas
Copy link
Contributor

terrylucas commented Jun 16, 2017 via email

@terrylucas
Copy link
Contributor

Have a fix for this CL

terrylucas added a commit that referenced this issue Jun 20, 2017
- Fix DevConsole crash with JS see Issue #29873
     CL https://codereview.chromium.org/2941143002
- Fix debugging in WebStorm, NULL returned for JS objects see Issue #29854
     CL https://codereview.chromium.org/2945063002

TBR=jacobr@google.com

Review-Url: https://codereview.chromium.org/2952643002 .
whesse pushed a commit that referenced this issue Jun 22, 2017
- Fix DevConsole crash with JS see Issue #29873
     CL https://codereview.chromium.org/2941143002
- Fix debugging in WebStorm, NULL returned for JS objects see Issue #29854
     CL https://codereview.chromium.org/2945063002

TBR=jacobr@google.com

Review-Url: https://codereview.chromium.org/2952643002 .
@terrylucas
Copy link
Contributor

Released in 1.24.2 stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.
Projects
None yet
Development

No branches or pull requests

6 participants