azproduction / lmd

LMD - JavaScript Module-Assembler for building better web applications :warning: Project is no longer supported :warning:
http://azproduction.ru/lmd/
MIT License
449 stars 27 forks source link

lmd watch stop on error #118

Closed entcor closed 11 years ago

entcor commented 11 years ago

lmd watch прекращает работу процесса при некорректном написании файла скрипта и его сохранении. Не очень удобно - постоянно приходится его перезапускать

info:    Now watching 9 module files. Ctrl+C to stop
info:    Rebuilding...
warn:    This package was configured with flag cache: true, but without flag ver
sion parameter. Please define version to enable cache.
warn:    Some of our modules are probably off-package (you can register them as
"name": "@shortcut"):
warn:        - ../common/css/estyle.css
warn:        - css/liteaccordion.css
warn:
warn:    Some of your modules are declared but not used:
warn:        - jquery_accordion.css
warn:        - estyle.css
warn:        - fullscreen
warn:

C:\Users\nikitich\AppData\Roaming\npm\node_modules\lmd\bin\lmd_builder.js:1484
            self.warn(warning, config.warn);
            ^
ReferenceError: self is not defined
    at LmdBuilder.formatModules.modulesBundle.main (C:\Users\nikitich\AppData\Ro
aming\npm\node_modules\lmd\bin\lmd_builder.js:1484:13)
    at Array.forEach (native)
    at Stream.LmdBuilder.formatModules (C:\Users\nikitich\AppData\Roaming\npm\no
de_modules\lmd\bin\lmd_builder.js:1483:26)
    at Stream.LmdBuilder._build (C:\Users\nikitich\AppData\Roaming\npm\node_modu
les\lmd\bin\lmd_builder.js:1544:34)
    at Stream.LmdBuilder.build (C:\Users\nikitich\AppData\Roaming\npm\node_modul
es\lmd\bin\lmd_builder.js:1663:17)
    at LmdBuilder.fsWatch.rebuild (C:\Users\nikitich\AppData\Roaming\npm\node_mo
dules\lmd\bin\lmd_builder.js:1103:36)
    at Stream.LmdBuilder.fsWatch (C:\Users\nikitich\AppData\Roaming\npm\node_mod
ules\lmd\bin\lmd_builder.js:1188:9)
    at LmdBuilder.watch (C:\Users\nikitich\AppData\Roaming\npm\node_modules\lmd\
bin\lmd_builder.js:122:26)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
azproduction commented 11 years ago

Спасибо. Буду разбираться!

azproduction commented 11 years ago

warn: This package was configured with flag cache: true, but without flag ver sion parameter. Please define version to enable cache. Кстати, объяви свойство "version", а то от кэша не будет смысла.

entcor commented 11 years ago

Спасибо !

azproduction commented 11 years ago

Обновляйтесь lmd@1.10.5-6