These are chat archives for idleberg/Bootstrap-Listr

3rd
Mar 2016
Mathieu Aubin
@mathieu-aubin
Mar 03 2016 01:17
@carroux Hey, always a pleasure to help. If you guys need help... ask anytime.
take Pi's as donations :) hahaha honestly i can't wait to get my hands on one!
bkotecha
@bkotecha
Mar 03 2016 01:18
hey @mathieu-aubin do you have any idea how to resolve the above errors?
Mathieu Aubin
@mathieu-aubin
Mar 03 2016 01:18
i'll read on that when i have a minute -- have to fix a windows 7 computer now....
arggghhh i HATE windows
i'll be back in 3-4 hours TOPS
bkotecha
@bkotecha
Mar 03 2016 01:19
haha ok cool thanks man
Mathieu Aubin
@mathieu-aubin
Mar 03 2016 01:20
in my experience
gulp
then gulp again
nevermind, my memory is playing me.
i'll be back.
Chris Carroux
@carroux
Mar 03 2016 01:22
we've tried running gulp clean, cleaning out the bower cache and running bower install to make sure we have all dependencies covered, but no dice
Mathieu Aubin
@mathieu-aubin
Mar 03 2016 01:22
is npm out of 'range' for the PI?
Chris Carroux
@carroux
Mar 03 2016 01:23
what gets me is that the error is so cryptic and unhelpful, it seems like a lot of people online have experienced Error: spawn npm ENOENT under many different circumstances
I'm actually building Listr on my Mac
since we're keeping the RPi offline and don't want to install lots of unnecessary things for one-time use on it, I'm building on my laptop then copying over the resulting files
Mathieu Aubin
@mathieu-aubin
Mar 03 2016 01:24
i've compiled (on x64 machines Mintxfce17.3 and ubuntu 14.04server successfully
Serrez-vous disponibles dans 2-3 heures? (will you be available in 2-3 hours?)
Chris Carroux
@carroux
Mar 03 2016 01:25
I'll be available then, thanks for your help!
Mathieu Aubin
@mathieu-aubin
Mar 03 2016 01:25
np
Chris Carroux
@carroux
Mar 03 2016 01:25
I think I'll try a clean install of node and gulp on another machine
in the meantime
Chris Carroux
@carroux
Mar 03 2016 05:26
I set up a clean Ubuntu 14.04 x86_64 VM and was able to get gulp to run fine without any warnings or errors
There's still no file called /assets/js/listr.min.js though, which is strange
Chris Carroux
@carroux
Mar 03 2016 05:31
I think the overarching issue for me has been that I don't have much frontend web experience (I do mostly devops/systems work), so it wasn't immediately obvious to me what the prerequisites were to getting Listr going
For example going from a fresh Ubuntu install to having Listr working, like installing node and gulp and additional node packages when I got errors trying to run gulp after npm install
Jan T. Sott
@idleberg
Mar 03 2016 07:22
which version are you actually using?
Chris Carroux
@carroux
Mar 03 2016 07:23
Version of Listr or NodeJS?
Jan T. Sott
@idleberg
Mar 03 2016 07:23
listr
though i have experienced problems with node 5.x
Chris Carroux
@carroux
Mar 03 2016 07:24
With Listr I just did a git cloneper the install directions
I'll check which version of node I used, I compiled it from source to get the latest since the ubuntu repos have an outdated version
Ah yeah I was using 5.7.1
I'll uninstall that and just go with the ubuntu repo's version
Jan T. Sott
@idleberg
Mar 03 2016 07:27
hm, you know what
i dont get listr.min.js either
Chris Carroux
@carroux
Mar 03 2016 07:28
Now that I check the live demo for the stable version, the network console shows that it 404's for the listr.css and listr.js
And the modal viewer works there, so it's evidently something else
Jan T. Sott
@idleberg
Mar 03 2016 07:30
the master doesn't work for me, but 2.3.0-alpha.2 does
Chris Carroux
@carroux
Mar 03 2016 07:30
in the live demo they're actually listr.pack.css and listr.min.js but I would imagine they're the same content-wise, just formatted differently
I'll try that out
Did you use Node 5.x or an earlier version for that?
Jan T. Sott
@idleberg
Mar 03 2016 07:31
4.3.1
building on osx 10.9.5, at home i use 10.11.x
not sure whether it's only the highlighter that doesn't build on node 5
one day i should probably install nvm
so, you run listr with nginx on raspian?
Chris Carroux
@carroux
Mar 03 2016 07:35
Alright, installing 4.x now
Trying to! haha
Jan T. Sott
@idleberg
Mar 03 2016 07:36
i can give that a try this weekend
Chris Carroux
@carroux
Mar 03 2016 07:36
We started with lighttpd because it's nice and lightweight but trying to convert the php redirect syntax from Apache to lighttpd's config format was a huge pain
So next on the list was nginx, and luckily @ mathieu-aubin was kind enough to supply us with a working config
Loading the index page, everything looks fine, it's just that when we click on files it goes directly to them rather than opening the viewer modal
Even though we enabled the viewer modal during the building step and have that enabled in the config.json
Jan T. Sott
@idleberg
Mar 03 2016 07:41
this could make an interesting real-world example worth mentioning in the wiki
raspberry, maybe synology
Chris Carroux
@carroux
Mar 03 2016 07:43
definitely
Jan T. Sott
@idleberg
Mar 03 2016 07:44
sorry i left abruptly yesterday, had to sleep :)
Chris Carroux
@carroux
Mar 03 2016 07:44
once we get everything working we could write a step-by-step guide, Raspberry Pi community could find it useful
Jan T. Sott
@idleberg
Mar 03 2016 07:44
that would be great!
ok, i'm work now, will be back later today or on the weekend
Chris Carroux
@carroux
Mar 03 2016 07:47
no worries, we appreciate your and Mathieu's help since we're using this for a non-profit/school project and get to use it for free
I'll try out using an older version of Node and the alpha version of Listr in the meantime
Chris Carroux
@carroux
Mar 03 2016 08:41
npm install went a lot more smoothly using node 4.3.2, but gulp built the same files I had before, still no listr.min.js
some deprecation warnings came up during npm install though, FYI:
chris@ubuntu-mbp:~/Bootstrap-ListrāŸ« npm install
npm WARN peerDependencies The peer dependency jshint@2.x included from gulp-jshint will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN optional dep failed, continuing fsevents@1.0.8
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.2.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
just looking at the scripts in /tasks/, it seems like uglify.js is supposed to concatenate a bunch of scripts into listr.min.js, but even though running gulp triggers uglify.js via the make:js gulp task and it prints "Minifying JavaScript..." as expected, it doesn't actually generate listr.min.js
and since a bunch of important js goes into that (including modal.js) I'm guessing that's where the problem is, though gulp reports everything going just fine
Chris Carroux
@carroux
Mar 03 2016 08:46
I built Listr and copied it to another Ubuntu server with Apache and PHP installed to make sure the issue had nothing to do with our Nginx setup, and it had the same issue where clicking on a file went directly to it instead of opening the viewer modal, even with that option enabled
tried both Listr v2.2.4 and v2.3-alpha with the same results
Chris Carroux
@carroux
Mar 03 2016 08:52
oh wait a minute
when I tried v2.3 I just cloned the GitHub repo and did git checkout 2.3-dev to switch to that branch
if I try by downloading the v2.3.0-alpha.2 zip archive from the releases page, it generates listr.min.js successfully
so it doesn't work with the latest version of the code that I got from just cloning the repo, but that older 2.3 release does work
Chris Carroux
@carroux
Mar 03 2016 09:04
This message was deleted
This message was deleted
listr_modal_success.png
awesome, now the modal works on the Raspberry Pi
and search too
Chris Carroux
@carroux
Mar 03 2016 09:09
so something must have changed in the 79 commits between v2.3.0-alpha.2 and the current head that broke that step of the build process
I'm interested to figure out what exactly caused that but for now this works and it's just past 1 am here in CA, so I'll be back some time later when the sun's up
Jan T. Sott
@idleberg
Mar 03 2016 09:13
yeah, there were some pull requests that might have caused this
i'm more interested in working on 3.0 these days
Chris Carroux
@carroux
Mar 03 2016 09:16
what's the expected timeline for 3.0?
not to sound pushy or anything, just curious
Jan T. Sott
@idleberg
Mar 03 2016 09:19
i will start late next week
i hope i can wrap up a working version this month
but there are some things i have never done before, so there'll be a learning curve
Jan T. Sott
@idleberg
Mar 03 2016 12:26
@carroux: found the problem
the uglify task used the wrong path for the source files
Chris Carroux
@carroux
Mar 03 2016 22:45
that's great news
re: development of v3.0 and finding the problem
what sort of changes are you planning for 3.0?
Jan T. Sott
@idleberg
Mar 03 2016 22:50
well, listr is based on a very old php script
i want to ditch the entire file logic and use a mighty composer library instead
and i want to make it more customizable
basically themes and viewer plugins
the current bootstrap part will be a theme
but you could build themes using any other css framework of your liking
never did a plugin system with hooks before