Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Try out a new outline view for Javascript

I reproduced this error using the latest Orion code from HEAD. It happens when installing any plugin. :-(
Opened a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=357487

Mark

Inactive hide details for John J Barton ---09/13/2011 12:00:59 AM---I tried the plugin in 16.0.879.0 canary using http://johnjbJohn J Barton ---09/13/2011 12:00:59 AM---I tried the plugin in 16.0.879.0 canary using http://johnjbarton.github.com/outliner/nonymousPlugin.

From: John J Barton <johnjbarton@xxxxxxxxxxxxxxx>
To: Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date: 09/13/2011 12:00 AM
Subject: Re: [orion-dev] Try out a new outline view for _javascript_
Sent by: orion-dev-bounces@xxxxxxxxxxx





I tried the plugin in 16.0.879.0 canary using http://johnjbarton.github.com/outliner/nonymousPlugin.html in eclipse-orion-I20110906-2200-win32.win32.x86. I did not see the problem you report.   Let me know what you learn or how I can reproduce what you see.
jjb

On Mon, Sep 12, 2011 at 3:33 PM, John J Barton <johnjbarton@xxxxxxxxxxxxxxx> wrote:
    Hi Steve,
    _responseHandler
    is not in my code, but I also found that Chrome v15 does not always work with Orion.  I'll try it tonight on my Windows box.
    I have been using v14 no problem.

    You can try:

     1) Open Web Inspector on the Orion page, in the console type "localStorage.clear()" then reload.
    or
      2) Open Web Inspector on the Orion page, Scripts Panel, select "pluginregstry.js", set a breakpoint on console.log() in catch block of the function _responseHandler. Reload. The breakpoint should hit, then in the console type
     e.stack
    To get the call stack we can figure out what might be failing for you.


    jjb



    On Mon, Sep 12, 2011 at 2:29 PM, steven heron <steve@xxxxxxxxxxx> wrote:
    Hi,
    I've tried to install the outliner, following the instructions supplied, but without success. As the plugin loads, I get an error message TypeError  "non_object_property_call" thrown in the _responseHandler in pluginregistry.js. I'm running Chrome v 15 on windows, with the Integration build from 20110911. Can anyone tell me what this error means ?

    Thanks

    On Thu, Sep 8, 2011 at 6:05 AM, John J Barton <johnjbarton@xxxxxxxxxxxxxxx> wrote:
      Ok thanks for the hint!
      http://johnjbarton.github.com/

      I'm open to *any* feedback. If you don't see names for functions please look in the console and mail me any error messages.  (Eventually I deactivate the console and error messages).

      I added 'demo' page that I will be expanding with more cases.


      jjb



      On Wed, Sep 7, 2011 at 10:45 AM, John Arthorne <John_Arthorne@xxxxxxxxxx> wrote:
      John, if you make a gh-pages branch in your fork of the outliner repo, then people could install the plugin directly from github:

      http://pages.github.com/

      Currently anyone who wants to try your plugin needs to copy all the related files to some other server, which decreases the chances they'll actually try it ;)

      John A


John J Barton <johnjbarton@xxxxxxxxxxxxxxx>
Sent by: orion-dev-bounces@xxxxxxxxxxx

09/07/2011 12:51 AM


Please respond to
Orion developer discussions <
orion-dev@xxxxxxxxxxx>
To
Orion developer discussions <orion-dev@xxxxxxxxxxx>
cc
Subject
Re: [orion-dev] Try out a new outline view for _javascript_




      I made good progress based on Mark's plugin:
      https://github.com/johnjbarton/outliner
      I renamed uglifoc to Nonymous:
      https://github.com/johnjbarton/nonymous

      Right off I can see this plugin will be great for me at least: I found two bugs and two design issues in the first 5 minutes ;-).

      Bugs: I fail on define() and one of the assignment test cases.

      Design:

      x = window.addEventListener('load', function(event) {}, false);
      // x<(load-fal)

      addEventListener('load', function(event) {}, false);
      // addEventListener(load-fals);


      x = window.addEventListener('load', function(event) {}, false);
        Mark: load(event),
        Nonymous-design:  x<(load-fal) (more about this another time)

      // x<(load-fal)

      // x<(load-fal)


      addEventListener('load', function(event) {}, false);
        Mark: load(event)
        Nonymous-design: // addEventListener(load-fals)

      I'd like to know the reasoning on the Mark result. It's not bad in this case, except for the duplication issue.

      In the Nonymous names the parenthesis do *not* mean function args.  I think that is bad design. We were not thinking about showing the arguments after function names the way the outliner does. We use the parens to mean "in a function argument", so addEventListener(load-fals) is code for "a function defn in an argument to addEventListener with other arguments "load" and "fals" (cut off by our clipper).

      If we add arguments and open up the clipper we could get:
         addEventListener(load-false)(event)
      but that seems like it will lead to confusion. Plus pretty soon you have the entire line of source ;-).  Needs work.

      On another front, building up plugins from github projects:

      I'm not to keen on the way my fork ends up in terms of file layout. Mark has lib/UglifyJs and lib/transformjs, so I added lib/nonymous. That part seems good, but my tree also has UglifyJS, so we end up with:
        lib/nonymous/UglifyJS and
        lib/UglifyJS
      in the plugin source tree. Beyond being ugly (heh), this can combine with path and package arguments to require.js to leave us confused about which version of UglifyJS is in play. If anyone has any experience or has seen other ways to do this please let me know.

      jjb


      On Fri, Sep 2, 2011 at 2:05 PM, John Arthorne <
      John_Arthorne@xxxxxxxxxx> wrote:
      Mark, I tried this out and I have to say it's a vast improvement on the jslint outline already!  Don't forget to add license/copyright headers to your js files... this might be something we want to eventually consume back.

      Better heuristics on names would be fantastic so I can't wait to see jjb's fork.



Mark MacDonald/Ottawa/IBM@IBMCA
Sent by:
orion-dev-bounces@xxxxxxxxxxx

09/02/2011 02:29 PM


Please respond to

Orion developer discussions <
orion-dev@xxxxxxxxxxx>
To
Orion developer discussions <orion-dev@xxxxxxxxxxx>
cc
Subject
Re: [orion-dev] Try out a new outline view for _javascript_



    _______________________________________________
    orion-dev mailing list
    orion-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/orion-dev

    GIF image

    GIF image


    Back to the top