These are chat archives for mojotech/pioneer

29th
Sep 2014
Adam
@aaddaamm
Sep 29 2014 18:04
@samccone I'm looking at working on pioneer and @buob told me that you recently had success running this on windows? I'm getting this Error ```
Error: Cannot find module 'c:\Users\arobinson\Documents\GitHub\node_modules\pion
eer\lib/pioneer'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (c:\Users\arobinson\Documents\GitHub\node_modules\pion
eer\bin\pioneer:6:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
Sam Saccone
@samccone
Sep 29 2014 18:04
what are you running
oh
Adam
@aaddaamm
Sep 29 2014 18:05
I'm trying to run bash $ ./node_modules/.bin/pioneer --scaffold
Sam Saccone
@samccone
Sep 29 2014 18:05
ah
i see the problem :(
those all need to be
path.join(“../“, “lib”)
path.join(lib, “pioneer”)
path.join(“../“, package.json)
try applying those to the bin file
and see if it works for you
if so.. that is a good first PR :)
Jake Buob
@buob
Sep 29 2014 18:06
:dancers:
Adam
@aaddaamm
Sep 29 2014 18:07
So i would replace those lines with the corresponding edits you specified?
Sam Saccone
@samccone
Sep 29 2014 18:07
yep
the issue is with relative paths and windows
path.join fixes the issue
Jake Buob
@buob
Sep 29 2014 18:09
weird
Sam Saccone
@samccone
Sep 29 2014 18:09
?
Jake Buob
@buob
Sep 29 2014 18:09
how does path.join change it?
Sam Saccone
@samccone
Sep 29 2014 18:09
when i was testing on windows I never tested the bin file :(
windows paths
use /
err
\
Jake Buob
@buob
Sep 29 2014 18:10
aaah
Sam Saccone
@samccone
Sep 29 2014 18:10
so ../
..\
Sam Saccone
@samccone
Sep 29 2014 18:23
working for you @arobinson109 ?
Adam
@aaddaamm
Sep 29 2014 18:27
not yet
@buob is looking at what i have
am i supposed to compile/re-build, @samccone, after the changes?
Sam Saccone
@samccone
Sep 29 2014 18:30
if you only changed the bin
there is no need to recompile
Adam
@aaddaamm
Sep 29 2014 18:31
I'm editing the pioneer file located under pioneer/bin
Sam Saccone
@samccone
Sep 29 2014 18:32
yep
that is the bin
Adam
@aaddaamm
Sep 29 2014 18:32
so do i need to re-install? i'm trying to follow the getting_started.md file
Sam Saccone
@samccone
Sep 29 2014 18:33
ah since you are developing the project
you will want to clone the repo
go into the project directoy
run npm link
then from another shell session run pioneer --scaffold
and then you can make the changes to your cloned project folder
and just run scaffold again
Jake Buob
@buob
Sep 29 2014 18:36
what the--
oh cool!
npm link.
Jake Buob
@buob
Sep 29 2014 19:18
is there supposed to be a lib folder in pioneer @samccone ?
Sam Saccone
@samccone
Sep 29 2014 19:18
after you build
Jake Buob
@buob
Sep 29 2014 19:18
ah
skilesare
@skilesare
Sep 29 2014 19:34
Does it make sense for things to be put in the node_modules/.bin? I generally exclude everthing in the node_modules folder from source control.
Sam Saccone
@samccone
Sep 29 2014 19:35
@skilesare that is npms local bin symlink
not something you have to worry about
skilesare
@skilesare
Sep 29 2014 19:36
What do you mean? when I do scaffold, it puts the scaffold in the node_modules/.bin. If I put all my tests in there then they won't go into gi.
Maybe I'm misunderstanding something.
Sam Saccone
@samccone
Sep 29 2014 19:37
@skilesare so you are just running ./node_module/.bin/pioneer —scaffold ?
skilesare
@skilesare
Sep 29 2014 19:38
Well...that is what the getting started says to do right?
Sam Saccone
@samccone
Sep 29 2014 19:38
that is correct
i just created a new folder
and ran ./node_module/.bin/pioneer
and it made a test folder
that contains all the scaffold files
skilesare
@skilesare
Sep 29 2014 19:41
Ok....never mind
Sam Saccone
@samccone
Sep 29 2014 19:41
skilesare
@skilesare
Sep 29 2014 19:41
I'm an idiot
Sam Saccone
@samccone
Sep 29 2014 19:41
heh ok
:P
skilesare
@skilesare
Sep 29 2014 19:41
I ran it from the pioneer folder
Sam Saccone
@samccone
Sep 29 2014 19:41
heeeh
that would do it :)
skilesare
@skilesare
Sep 29 2014 19:41
on windows you have to flip the /
Sam Saccone
@samccone
Sep 29 2014 19:41
yep
good ol windows :(
Jake Buob
@buob
Sep 29 2014 19:42
:pitchfork:
Sam Saccone
@samccone
Sep 29 2014 19:42
:japanese_castle:
skilesare
@skilesare
Sep 29 2014 20:24
If I'm using pioneer to test an SPA and it takes a while for my page to load, what is the best way to approach this. I don't see anything in the widget api that is like .waitFor() or something similar? It looks like there is a built in time out but I'm wondering if there is a good way to be deliberate about waiting.
Sam Saccone
@samccone
Sep 29 2014 20:24
the built in timeout should be good
if not you can override the default timeout
using the global timeout setting
skilesare
@skilesare
Sep 29 2014 20:28
ok...so something like .Read(".myclass") won't reject until the time out has passed?
Sam Saccone
@samccone
Sep 29 2014 20:28
correct
skilesare
@skilesare
Sep 29 2014 20:28
sweet. thanks
skilesare
@skilesare
Sep 29 2014 20:43
Is this the assertion library you are using? Does it come bundled or do we need to side load it? http://chaijs.com/plugins/chai-as-promised
Sam Saccone
@samccone
Sep 29 2014 20:43
it comes baked in