GithubHelp home page GithubHelp logo

less-monitor's People

Contributors

crisfole avatar guilhermedupont avatar jamesrom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

less-monitor's Issues

"Cannot read property 'contents' of undefined"

Steps to reproduce

  1. Setup project which uses LESS v. 2.7.1.
  2. Install less-monitor globally via npm (npm install less-monitor -g).
  3. Run less-monitor -d styles/ -o buildfolder/ -m index.less -f.

Expected behaviour

less-monitor should compile LESS file "styles/index.less" with all its imports to "build/index.css" and continue to watch the file.

Actual behaviour

  1. Watch starts.
  2. less-monitor finds the "index.less" file, seen in log (1).
  3. -f option forces immediate compilation.
  4. Compilation fails with trace in (1).
  5. less-monitor terminates.

Logs and output

(1)

$ less-monitor -d styles/ -o build/ -m index.less -f
[Sep-28 10:16:53] =============================================================
[Sep-28 10:16:53] > Finding index.less files
[Sep-28 10:16:53] =============================================================
[Sep-28 10:16:53] [Hint: Press Ctrl+C to quit.]

[Sep-28 10:16:53] Listing Done!

(node:336) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
[Sep-28 10:16:53] Found index.less [+1 dependency]

[Sep-28 10:16:53] Watch started.

Quitting...
C:\Users\...\AppData\Roaming\npm\node_modules\less-monitor\node_modules\less\lib\less\parser\parser.js:117
            imports.contents[fileInfo.filename] = str;
                   ^

TypeError: Cannot read property 'contents' of undefined
    at Object.parse (C:\Users\...\AppData\Roaming\npm\node_modules\less-monitor\node_modules\less\lib\less\parser\parser.js:117:20)
    at .<anonymous> (C:\Users\...\AppData\Roaming\npm\node_modules\less-monitor\lib\app.js:533:9)
    at tryToString (fs.js:455:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)

Versions

$ node -v
v6.7.0

$ npm -v
3.10.3

$ npm list -g | grep less
+-- [email protected]
| +-- [email protected]

$ npm list | grep less
+-- [email protected]
| | | | +-- [email protected]

On Windows 10.

Breaks with latest less version

I installed less-monitor on a new machine, and therefor got the latest less version 1.6.0. But now I get this error:

[Jan-13 10:50:26] Error parsing: test.less
[Jan-13 10:50:26] -------------------------------------------------------------

undefined_methodError: Object function (){
                                return lower;
                        } has no method 'charAt' in test.less on line null, column 0:
1

test.less compiles fine with the less compiler.

If I change the less dependency version in package.json to 1.5.1, then it works fine.

"Unhandled error event"

At a seemingly random point during any project, I receive the following error:

Quitting...

events.js:72
throw er; // Unhandled 'error' event
^
Error: watch Unknown system errno 1450
at errnoException (fs.js:1019:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1037:26)

I am yet to find out what causes this error, as even when I undo the CSS changes I made to a point before I received the error, the error still appears and it completely prevents me from using less-monitor again for that project. I then have to revert to using the "simpless" application, which works fine. Any ideas as to what is causing this error to appear? I have tried uninstalling and reinstalling less-monitor several times - no change.

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.