Giter Club home page Giter Club logo

ardus's Introduction

๐Ÿ‘‹ Hi, Iโ€™m Bryan ๐Ÿ˜Š

I've been a developer for almost 20 years. I currently work in JavaScript/TypeScript/Node.js and am learning Rust!

ardus's People

Contributors

bsgbryan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ardus's Issues

Error related to underscore

Overview

Attempting to call _.mixin and then use the mixed-in function fails with the following error:

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object function () {var err  = new Error,data = [ ];Error.captureStackTrace(err, fn.callee);var lines = err.stack.split("\n");for (var i = 0; i < lines.length; i++) {if (lines[i].search(/.*Error|wrap|decorate|__profile__|Object..js|eval at profile|Module|Function|require.*/) === -1) {var file = lines[i].split('(');if (file.length > 1) {data = file[1].substring(0, file[1].length - 2).split(':');} else {file = lines[i].split('/');var index = file.length - 1;data = file[index].substring(0, file[index].length - 2).split(':');}break;}}modul.file = data[0];modul.line = data[1];var u    = uuid(fn, modul),prof = {id: u.id,invokation: u.invokations,initialized: initd,observers: [ ],anonymous: u.anonymous,file: modul.file,line: modul.line },last = profiles.mostRecent();if (last && last.anonymous) {prof.owner = last.id + '.' + last.invokation;last.observers.push(u.uid);}profiles.add(prof);function decorate(af) {var a = [ ];for (var k = 0; k < af.length; k++)if (typeof af[k] === 'function') {if (!af[k].isWrappedWithProfiler()) {a.push(wrap(profile, 'OWNER:' + u.uid, af[k], modul));var afk = uuid(af[k], false, modul);prof.observers.push(afk.id + '.0');} else {a.push(af[k]);var afk = uuid(af[k].__wrapped, modul);prof.observers.push(afk.uid);}} else if (af[k] instanceof String && af[k].indexOf('OWNER:') === 0) {prof.owner = af[k].substring(6);} else {a.push(af[k]);}return a;}prof.rawArgs = arguments;prof.args   = decorate(arguments);prof.start   = time.now();prof.result  = fn.apply(this, prof.args);prof.end     = time.now();return prof.result;} has no method 'foo'
    at Object.<anonymous> (/Users/maynardb/Documents/Code/Ardus/examples/_.js:11:3)
    at Module._compile (module.js:432:26)
    at Object.<anonymous> (module.js:450:10)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)
    at Array.0 (module.js:470:10)
    at EventEmitter._tickCallback (node.js:192:40)

Hashes for anonymous functions aren't very informative

Overview

Displaying hashes for anonymous functions in a profile's summary output is not very informative. A better solution would be to display the object key associated with the anonymous function - when available.

Possible solution

A posible solution might be to find a way to include the object key with the arguments to uuid.

Error when running against Tap code

Overview

Currently, executing node examples/tap.js results in the following output:

node examples/tap.js 

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object #<WriteStream> has no method 'on'
    at TapProducer.<anonymous> (stream.js:52:8)
    at TapProducer.__profile__ (/Users/maynardb/Documents/Code/Ardus/lib/decorators/profiler.js:74:23)
    at TapProducer.__profile__ [as pipe] (/Users/maynardb/Documents/Code/Ardus/lib/decorators/profiler.js:74:23)
    at new GlobalHarness (/Users/maynardb/Documents/Code/Ardus/node_modules/tap/lib/tap-global-harness.js:21:15)
    at Object.<anonymous> (/Users/maynardb/Documents/Code/Ardus/node_modules/tap/lib/main.js:8:28)
    at Module._compile (module.js:432:26)
    at Object..js (/Users/maynardb/Documents/Code/Ardus/lib/globals/profiler.js:8:12)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)
    at Module.require (module.js:357:17)

Action(s)

  1. Figure out why this is happening
  2. Fix it

Add support for AST integration

Purpose

Integrating with ASTs would allow Ardus to include the source file name and line number for function declarations and invokations.

This would make summary output more valuable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.