"Private member is not accessible" on Function prototype

Hi,

All of a sudden I have started to get errors on function's prototype: "Private member is not accessible"
Attached a screenshot,

Any ideas?
Thx.



Attachment(s):
ws8prototype.png
9 comments
Comment actions Permalink

Hi there,

Pleae try "File | Invalidate caches..." and restart if you have not done it yet.

0
Comment actions Permalink

Hi,

I just tried that...no luck...
It seems to happen only in my existing project, if I open a new project it seems to be working.
Anything else?
Thx.



Attachment(s):
ws8prototype.png
0
Comment actions Permalink

Not sure at all.

Maybe check your JavaScript Libraries settings -- maybe it has anything to do with them.

Otherwise it has to be some code in your project. I would recommend Ctrl+Click and see where it will take you to.

0
Comment actions Permalink

Hi,

It takes me to "lodash" library (which is a dependency of a dependency of grunt-cli, i.e MyProject\node_modules\grunt-cli\node_modules\findup-sync\node_modules\lodash)
Anyway, the code it taksed me to there is:

if (!nativeCreate) {
      baseCreate = (function() {
        function Object() {}
        return function(prototype) {
          if (isObject(prototype)) {
            Object.prototype = prototype;
            var result = new Object;
            Object.prototype = null;
          }
          return result || context.Object();
        };
      }());
    }


I see why it can be tricky but still, in my other projects (where I have the same pedendency on grunt-cli) it doesn't happen.
Even on my team members WebStorm, where we work on the EXACTLY same project structure, it doesn't happen...

0
Comment actions Permalink

I personally cannot help you here.

If you wish -- submit new ticket to the Issue Tracker , preferrably (higly recommended) with some sample project that reproduces the issue (this will/may speed up things a lot).

0
Comment actions Permalink

Thank you.
As soon as I'll finish my current task I'll delete my projects and clone again from git to really have a start fresh.
If it won't work I'll see if I can reproduce it...

0
Comment actions Permalink

Thx,
Can I get an early access to 8.0.1?

0
Comment actions Permalink

Not yet.  Please follow us on Twitter (https://twitter.com/webstormide) or subscribe to our blog (http://blog.jetbrains.com/webstorm/) to stay informed about our releases/EAPs

0

Please sign in to leave a comment.