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

Error building techan.js in EDT (America/New_York) #64

Closed
dischord01 opened this issue Apr 17, 2015 · 5 comments
Closed

Error building techan.js in EDT (America/New_York) #64

dischord01 opened this issue Apr 17, 2015 · 5 comments
Labels
Milestone

Comments

@dischord01
Copy link

I am getting this error when installing on my Mac. I updated NPM(1.4.28) and Node(v0.10.32).

Running "karma:test" (karma) task
INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket kqtRJsuzz8OaloTY_FSx with id 46200579
PhantomJS 1.9.8 (Mac OS X) Given I have module "indicator/atr" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And atr is initialised with defaults Then on default invoke, atr should calculate correct values FAILED
    Expected { date: Date(Thu Jun 07 2012 00:00:00 GMT-0400 (EDT)), value: 2.1978571428571434 } to equal { date: Date(Fri Jun 08 2012 00:00:00 GMT-0400 (EDT)), value: 2.1978571428571434 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3784
    Expected { date: Date(Sun Jun 10 2012 00:00:00 GMT-0400 (EDT)), value: 2.128724489795919 } to equal { date: Date(Mon Jun 11 2012 00:00:00 GMT-0400 (EDT)), value: 2.128724489795919 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3784
    Expected { date: Date(Mon Jun 11 2012 00:00:00 GMT-0400 (EDT)), value: 2.0345298833819245 } to equal { date: Date(Tue Jun 12 2012 00:00:00 GMT-0400 (EDT)), value: 2.0345298833819245 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3784
    Expected { date: Date(Tue Jun 12 2012 00:00:00 GMT-0400 (EDT)), value: 1.960634891711787 } to equal { date: Date(Wed Jun 13 2012 00:00:00 GMT-0400 (EDT)), value: 1.960634891711787 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3784
    Expected { date: Date(Wed Jun 13 2012 00:00:00 GMT-0400 (EDT)), value: 1.8955895423038025 } to equal { date: Date(Thu Jun 14 2012 00:00:00 GMT-0400 (EDT)), value: 1.8955895423038025 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3784
    Expected { date: Date(Thu Jun 14 2012 00:00:00 GMT-0400 (EDT)), value: 1.8894760035678166 } to equal { date: Date(Fri Jun 15 2012 00:00:00 GMT-0400 (EDT)), value: 1.8894760035678166 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3784
    Expected { date: Date(Sun Jun 17 2012 00:00:00 GMT-0400 (EDT)), value: 1.9452277175986867 } to equal { date: Date(Mon Jun 18 2012 00:00:00 GMT-0400 (EDT)), value: 1.9452277175986867 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3784
PhantomJS 1.9.8 (Mac OS X) Given I have module "indicator/atrtrailingstop" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And atrtrailingstop is initialised with defaults Then on default invoke, atr should calculate correct values FAILED
    Expected { date: Date(Mon Jul 23 2012 00:00:00 GMT-0400 (EDT)), up: 25.20357142857143, down: null } to equal { date: Date(Tue Jul 24 2012 00:00:00 GMT-0400 (EDT)), up: 25.20357142857143, down: null }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3813
    Expected { date: Date(Tue Jul 24 2012 00:00:00 GMT-0400 (EDT)), up: 26.023316326530615, down: null } to equal { date: Date(Wed Jul 25 2012 00:00:00 GMT-0400 (EDT)), up: 26.023316326530615, down: null }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3813
    Expected { date: Date(Wed Jul 25 2012 00:00:00 GMT-0400 (EDT)), up: 26.023316326530615, down: null } to equal { date: Date(Thu Jul 26 2012 00:00:00 GMT-0400 (EDT)), up: 26.023316326530615, down: null }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3813
    Expected { date: Date(Thu Jul 26 2012 00:00:00 GMT-0400 (EDT)), up: null, down: 28.068416024573093 } to equal { date: Date(Fri Jul 27 2012 00:00:00 GMT-0400 (EDT)), up: null, down: 28.068416024573093 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3813
    Expected { date: Date(Sun Jul 29 2012 00:00:00 GMT-0400 (EDT)), up: null, down: 27.413529165675012 } to equal { date: Date(Mon Jul 30 2012 00:00:00 GMT-0400 (EDT)), up: null, down: 27.413529165675012 }.
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:3813
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised Then ticks should return a distributed range of ticks FAILED
    Expected [ Date(Thu May 17 2012 00:00:00 GMT-0400 (EDT)), Date(Sun May 20 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 22 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 28 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 30 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Fri May 18 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 22 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)), Date(Fri May 25 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 30 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)), Date(Fri Jun 01 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6238
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised Then ticks with specified tick count returns approximately that number FAILED
    Expected [ Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 28 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6245
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised Then ticks with specified interval and step count returns that number FAILED
    Expected [ Date(Thu May 17 2012 00:00:00 GMT-0400 (EDT)), Date(Sun May 20 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 28 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Fri May 25 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)), Date(Fri Jun 01 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6256
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And heavily scaled/zoomed in on value Then domain should return a single value FAILED
    Expected [ Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Fri May 25 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6322
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And heavily scaled/zoomed in on value Then ticks should return a single value FAILED
    Expected [ Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Fri May 25 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6326
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And heavily scaled/zoomed out Then ticks should return full ticks as if not zoomed FAILED
    Expected [ Date(Thu May 17 2012 00:00:00 GMT-0400 (EDT)), Date(Sun May 20 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 22 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 28 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 30 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Fri May 18 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 22 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)), Date(Fri May 25 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 30 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)), Date(Fri Jun 01 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6351
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And heavily translated Then domain should return the stretched set of domain FAILED
    Expected [ Date(Wed May 30 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)), Date(Fri Jun 01 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6364
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And heavily translated Then ticks should return stretched set of ticks FAILED
    Expected [ Date(Wed May 30 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)), Date(Fri Jun 01 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6371
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And zoomable is not clamped And heavily translated Then domain should return a stretched set of domain FAILED
    Expected [ Date(Wed May 30 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Thu May 31 2012 00:00:00 GMT-0400 (EDT)), Date(Fri Jun 01 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6405
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And translated left Then ticks should return offset tick values FAILED
    Expected [ Date(Thu May 17 2012 00:00:00 GMT-0400 (EDT)), Date(Sun May 20 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 22 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 28 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Fri May 18 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 22 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Thu May 24 2012 00:00:00 GMT-0400 (EDT)), Date(Fri May 25 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6473
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And translated left Then ticks with specified tick count returns approximately that number FAILED
    Expected [ Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 28 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6480
PhantomJS 1.9.8 (Mac OS X) Given I have module "scale/financetime" available When I require() it And initialise with actual dependencies And the constructor is used to construct an instance And domain and range is initialised And a zoomable obtained And translated left Then ticks with specified interval and step count returns that number FAILED
    Expected [ Date(Thu May 17 2012 00:00:00 GMT-0400 (EDT)), Date(Sun May 20 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Mon May 28 2012 00:00:00 GMT-0400 (EDT)) ] to equal [ Date(Mon May 21 2012 00:00:00 GMT-0400 (EDT)), Date(Wed May 23 2012 00:00:00 GMT-0400 (EDT)), Date(Fri May 25 2012 00:00:00 GMT-0400 (EDT)), Date(Tue May 29 2012 00:00:00 GMT-0400 (EDT)) ].
        at /Users/dischord01/Development/OptionsApp/techan.js/build/specs-bundle.js:6489
PhantomJS 1.9.8 (Mac OS X): Executed 635 of 643 (14 FAILED) (skipped 8) (0.736 secs / 0.575 secs)
Warning: Task "karma:test" failed. Use --force to continue.

Aborted due to warnings.

npm ERR! techan@0.6.0-1 start: `grunt serve`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the techan@0.6.0-1 start script.
npm ERR! This is most likely a problem with the techan package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     grunt serve
npm ERR! You can get their info via:
npm ERR!     npm owner ls techan
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.1.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/dischord01/Development/OptionsApp/techan.js
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/dischord01/Development/OptionsApp/techan.js/npm-debug.log
npm ERR! not ok code 0

Here were the commands I used;
git clone --recursive https://github.com/andredumas/techan.js.git
cd techan.js
npm install
npm start

@andredumas
Copy link
Owner

Not sure what is going on there, it works for me on Yosemite. I cleaned out all dependencies and ran the same commands (apart from the clone) and it was fine. I also just kicked off another build on Travis CS which was ok too.

The dates seem to be one index off expected which is strange. My setup (which I haven't touched for a while):

$ node -v
v0.10.35
$ npm -v
1.4.28
$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.10.3
BuildVersion:   14D136

I'll try to execute in your timezone and see if I can get the same result.

@andredumas
Copy link
Owner

I can recreate the issue. I've added a Dockerfile and by enabling the lines that set the the timezone to yours the build will fail with what appear to be the same errors.

docker build -t techan.js .
docker run --rm -it techan.js test

Not sure what the root cause is just yet, but at least that container will allow me to play around.

@andredumas andredumas changed the title Error installing techan.js on OSX Yosemite Error building techan.js in EDT (America/New_York) Apr 19, 2015
@dischord01
Copy link
Author

Cool, I will try building the docker file today.

On Sunday, April 19, 2015, André Dumas notifications@github.com wrote:

I can recreate the issue. I've added a Dockerfile
https://github.com/andredumas/techan.js/blob/master/Dockerfile and by
enabling the lines that set the the timezone to yours
https://github.com/andredumas/techan.js/blob/master/Dockerfile#L5 the
build will fail with what appear to be the same errors.

docker build -t techan.js .
docker run --rm -it techan.js test

Not sure what the root cause is just yet, but at least that container will
allow me to play around.


Reply to this email directly or view it on GitHub
#64 (comment).

Regards,

S. Brad Sollar

@andredumas
Copy link
Owner

Almost have a fix. It's due to the interesting ways dates are parsed in javascript. Would always work for me because my local timezone is in the plus offset (+10) of GMT (UTC) and yours in in the negative, generally putting it a day out (after time truncation). Will run a few more tests before I push.

@TravelTrader
Copy link

Hello, I am sorry, but I am living in Germany/Europe and I have the same issue. Maybe it's because of the timezone. But because I am new to npm and similar tools: What should I do with the Dockerfile to get it running?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants