GithubHelp home page GithubHelp logo

Comments (9)

davemo avatar davemo commented on July 28, 2024

Hey Adam, are you using the default configuration of Lineman or do you have additional .less files that are getting compiled? If you have customizations can you post a gist of what your less files for the project look like? I believe the last line:

  error(launcher)

comes from an issue where Testacular is not able to find the PhantomJS installation in Windows. I actually worked on this earlier this week as I built up a dev env in Windows 7 to see how things would work. I have an open ticket to replace Testacular with Testem, another library that can run headless specs that works much better on Windows.

from lineman.

 avatar commented on July 28, 2024

I'm willing to believe we have several problems hitting us at once on Windows. We should take the time to get a test environment set up for a Windows VM soon.

from lineman.

BigAB avatar BigAB commented on July 28, 2024

@davemo

Just the files included after running:

lineman Lineman
cd Lineman
grunt run

...(or grunt.cmd run), and straight up grunt get's similar errors.

Also running:

phantomjs

...works so not sure what the issue is.

from lineman.

davemo avatar davemo commented on July 28, 2024

Hey Adam, I just pushed a new version which replaces our spec runner dependency Testacular with the much more capable Testem. This update adds 2 new commands to the CLI for lineman: lineman run and lineman spec. The intent is to get the app running and watching files with run and then fire up spec in another terminal tab.

While this update doesn't touch LESS compilation, could you update from npm and try out the new workflow and see if you still encounter these issues?

from lineman.

davemo avatar davemo commented on July 28, 2024

Just wanted to ping you @BigAB and see if you had time to pull a new version of Lineman and test this again?

from lineman.

BigAB avatar BigAB commented on July 28, 2024

Not as of yet. Will try to do it and report back as soon as I can. May not be today though.

from lineman.

BigAB avatar BigAB commented on July 28, 2024

So... todays things.
Updated lineman from NPM.

As per readme I tried lineman new Lineman
and it created a project called new

I _sigh_ and cd new
and as per readme try `lineman spec'
and it makes a new project in spec directory

I _sigh_ and go to delete it but it turns out the operating system can't delete all files because the filenames (paths) are too long!

doh!

So I Google, get that all cleaned up and try again:
lineman Lineman this time to not get a project called new
I notice the commands say grunt run so I do that and hey, works a little better this time, minus the less problem that still there:

Running "watch" task
Waiting...>> undefined: [Lundefined:Cundefined] watch EPERM
<WARN> Error compiling LESS. Use --force to continue. </WARN> 

I try grunt spec

Running "configure" task

Running "spec" task

module.js:340
    throw err;
          ^
Error: Cannot find module 'C:\Lineman\node_modules\testem\testem.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
<WARN> Spec execution failed with exit code 1 Use --force to continue. </WARN>

Aborted due to warnings.

So apparently I am missing testem. npm install testem
good.
I try grunt spec again

TEST'EM 'SCRIPTS!
Open the URL below in a runner to connect.
Open the URL below in a runner to connect.
http://localhost:7357
--------------+
  Chrome 22.0 |
    0/0 x     |
              +------------------------------------------------------------------------------------------------------------------------------
Uncaught ReferenceError: module is not defined at http://localhost:7357/grunt.js, line 2 

So, yeah... not sure what's up there.

I try grunt
This seems to go well.

I try grunt clean
This seems to go well as well.

If I could solve the watch error, the un-deletable node-modules directory, and running the specs I might try using this.

probably need to change the readme too, it seems very out of date.

from lineman.

davemo avatar davemo commented on July 28, 2024

Phew! Looks like I need to revisit my windows testing to see what the heck went wrong. Thanks for your detailed testing breakdown @BigAB, I'll spend some time in the next couple of days to take a look.

Any suggestions or pull requests that would update the documentation to be more clear would be greatly accepted :)

from lineman.

davemo avatar davemo commented on July 28, 2024

Closing as I tested the most recent release against Windows 7.

from lineman.

Related Issues (20)

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.