trouble with d3 code complete
I've set up d3 (v4) in PyCharm configuration help (https://www.jetbrains.com/help/pycharm/2016.3/configuring-javascript-libraries.html). However, I'm not getting code completion. After searching help and even looking at WebStorm help (since they are parallel products with similar features), I'm stuck. I'd be grateful for any ideas.
Please sign in to leave a comment.
How do you use it? Code snippets that show up the issue would be helpful
I'm sorry for the slow response Elena!
So if feels like the code completion is working okay. It's having a little trouble, but I think what I'm seeing is a problem with the linter / highlighter and that was throwing me off.
Here's both a code example (as short as I could come up with to easily illustrate the problem). And a couple of screenshots that illustrate what I mean.
Example 1: The following code snippet should run fine for you. At row 56, the linter shows "Unresolved function or method data()".
Example 2: Notice rows 50/51 the methods are white while rows 52/52 are blue. I'm using the Darcula theme, so I think all 4 should be blue ("Instance Member Variables"). In similar code, the lint analysis won't recognize d.x0, d.x1, .size(), etc. -- I'm happy to provide a few more examples. Just trying to keep it simple.
Thanks for your help,
David
Can't recreate in 2017.2 using provided example - all methods are properly resolved and colored:
I'm using d3.v4.js downloaded from http://d3js.org/d3.v4.js