bem-archive / bem-tools

Toolkit to work with files based on BEM methodology
http://bem.info/tools/bem/
MIT License
395 stars 72 forks source link

После make -B в bem-bl-test пустые файлы #18

Closed dmage closed 12 years ago

dmage commented 12 years ago

Играюсь с БЭМ, сегодня сделал в проекте make -B и что-то пошло не так. Раньше лечилось обновлением всего связанного с БЭМ. В этот раз не полечилось.

Удалил все что было, поставил обратно. Все равно не полечилось. После 1-й установки оно поругалось error: TypeError: Object # has no method 'parse' После npm update оно перестало ругаться, но результирующие файлы пустые.

Куда копать? Ниже лог.

dmage@nibbler ~ $ sudo npm-g install bem xjst ometajs npm WARN ometajs@2.0.10 package.json: bugs['web'] should probably be bugs['url'] /usr/bin/ometajs2js -> /usr/lib/node_modules/ometajs/bin/ometajs2js /usr/bin/xjst -> /usr/lib/node_modules/xjst/bin/xjst npm WARN q@0.7.2 package.json: bugs['web'] should probably be bugs['url'] npm WARN event-queue@0.1.0 package.json: bugs['web'] should probably be bugs['url'] /usr/bin/bem -> /usr/lib/node_modules/bem/bin/bem ometajs@2.0.10 /usr/lib/node_modules/ometajs xjst@0.0.8 /usr/lib/node_modules/xjst bem@0.1.2 /usr/lib/node_modules/bem ├── inherit@1.0.0 ├── coa@0.3.1 └── q@0.7.2 dmage@nibbler ~ $ git clone https://github.com/bem/bem-bl-test.git Cloning into bem-bl-test... cd bem remote: Counting objects: 121, done. remote: Compressing objects: 100% (79/79), done. remote: Total 121 (delta 35), reused 106 (delta 20) Receiving objects: 100% (121/121), 11.91 KiB, done. Resolving deltas: 100% (35/35), done. dmage@nibbler ~ $ cd bem-bl-test/ dmage@nibbler ~/bem-bl-test $ make -- git git://github.com/bem/bem-bl.git bem-bl Cloning into bem-bl... remote: Counting objects: 3834, done. remote: Compressing objects: 100% (1527/1527), done. remote: Total 3834 (delta 2122), reused 3724 (delta 2012) Receiving objects: 100% (3834/3834), 758.43 KiB | 307 KiB/s, done. Resolving deltas: 100% (2122/2122), done. bem create block -l pages -t bemdecl.js client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.bemdecl.js -t deps.js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js -o pages/client -n client error: TypeError: Object # has no method 'parse' TypeError: Object # has no method 'parse' at [object Object].bemBuild (/home/dmage/bem-bl-test/bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js:43:29) at [object Object].build (/usr/lib64/node_modules/bem/lib/tech.js:420:26) at /usr/lib64/node_modules/bem/lib/commands/build.js:119:22 at Array.forEach (native) at Cmd. (/usr/lib64/node_modules/bem/lib/commands/build.js:44:32) at /usr/lib64/node_modules/bem/node_modules/coa/lib/cmd.js:384:22 at _fulfilled (/usr/lib64/node_modules/bem/node_modules/q/q.js:498:32) at Promise.promiseSend (/usr/lib64/node_modules/bem/node_modules/q/q.js:242:37) at /usr/lib64/node_modules/bem/node_modules/q/q.js:519:18 at Promise.promiseSend (/usr/lib64/node_modules/bem/node_modules/q/q.js:242:37) make: * [pages/client/client.bemhtml.js] Ошибка 1 rm pages/client/client.deps.js pages/client/client.bemdecl.js dmage@nibbler ~/bem-bl-test $ sudo npm-g update npm WARN ometajs@2.0.10 package.json: bugs['web'] should probably be bugs['url'] npm WARN q@0.7.2 package.json: bugs['web'] should probably be bugs['url'] npm WARN event-queue@0.1.0 package.json: bugs['web'] should probably be bugs['url'] npm WARN ometajs@2.0.11 package.json: bugs['web'] should probably be bugs['url'] /usr/bin/xjst -> /usr/lib/node_modules/xjst/bin/xjst xjst@0.1.9 /usr/lib/node_modules/xjst ├── ometajs@2.0.11 ├── uglify-js@1.1.1 └── coa@0.2.1 dmage@nibbler ~/bem-bl-test $** make -B -- git git://github.com/bem/bem-bl.git bem-bl From git://github.com/bem/bem-bl

  • branch master -> FETCH_HEAD Already up-to-date. bem create block -l pages -t bemdecl.js client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.bemdecl.js -t deps.js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t css -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t ie.css -o pages/client -n client bem create block -l pages -t bem-bl/blocks-common/i-bem/bem/techs/html.js client bem create block -l pages -t bemdecl.js example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.bemdecl.js -t deps.js -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t css -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t js -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t ie.css -o pages/example -n example bem create block -l pages -t bem-bl/blocks-common/i-bem/bem/techs/html.js example rm pages/example/example.bemdecl.js pages/client/client.deps.js pages/client/client.bemdecl.js pages/example/example.deps.js dmage@nibbler ~/bem-bl-test $ cat pages/example/example.html

dmage@nibbler ~/bem-bl-test $ ls -al pages/example/ итого 20 drwxr-xr-x 2 dmage dmage 4096 Ноя 20 00:55 . drwxr-xr-x 4 dmage dmage 4096 Ноя 20 00:53 .. -rw-r--r-- 1 dmage dmage 1259 Ноя 20 00:55 example.bemhtml.js -rw-r--r-- 1 dmage dmage 563 Ноя 20 00:53 example.bemjson.js -rw-r--r-- 1 dmage dmage 0 Ноя 20 00:55 example.css -rw-r--r-- 1 dmage dmage 1 Ноя 20 00:55 example.html -rw-r--r-- 1 dmage dmage 0 Ноя 20 00:55 example.ie.css -rw-r--r-- 1 dmage dmage 0 Ноя 20 00:55 example.js dmage@nibbler ~/bem-bl-test $ make pages/client/client.bemdecl.js bem create block -l pages -t bemdecl.js client dmage@nibbler ~/bem-bl-test $ cat pages/client/client.bemdecl.js dmage@nibbler ~/bem-bl-test $

varya commented 12 years ago

B bem-tools недавно был рефакторинг, который забыли учесть в проекте bem-bl-test. Сейчас я поправила, если апнуться, должно работать.

veged commented 12 years ago

у нас есть ошибка в bem-tools, фикс уже сделан и в самое ближайшее время мы зарелизим новую версию в npm

Сергей Бережной

On воскресенье, 20 ноября 2011 г. at 1:26, dmage wrote:

Играюсь с БЭМ, сегодня сделал в проекте make -B и что-то пошло не так. Раньше лечилось обновлением всего связанного с БЭМ. В этот раз не полечилось.

Удалил все что было, поставил обратно. Все равно не полечилось. После 1-й установки оно поругалось error: TypeError: Object # has no method 'parse' После npm update оно перестало ругаться, но результирующие файлы пустые.

Куда копать? Ниже лог.

dmage@nibbler ~ $ sudo npm-g install bem xjst ometajs npm WARN ometajs@2.0.10 (mailto:ometajs@2.0.10) package.json: bugs['web'] should probably be bugs['url'] /usr/bin/ometajs2js -> /usr/lib/node_modules/ometajs/bin/ometajs2js /usr/bin/xjst -> /usr/lib/node_modules/xjst/bin/xjst npm WARN q@0.7.2 (mailto:q@0.7.2) package.json: bugs['web'] should probably be bugs['url'] npm WARN event-queue@0.1.0 (mailto:event-queue@0.1.0) package.json: bugs['web'] should probably be bugs['url'] /usr/bin/bem -> /usr/lib/node_modules/bem/bin/bem ometajs@2.0.10 (mailto:ometajs@2.0.10) /usr/lib/node_modules/ometajs xjst@0.0.8 (mailto:xjst@0.0.8) /usr/lib/node_modules/xjst bem@0.1.2 (mailto:bem@0.1.2) /usr/lib/node_modules/bem ├── inherit@1.0.0 (mailto:inherit@1.0.0) ├── coa@0.3.1 (mailto:coa@0.3.1) └── q@0.7.2 (mailto:q@0.7.2) dmage@nibbler ~ $ git clone https://github.com/bem/bem-bl-test.git Cloning into bem-bl-test... cd bem remote: Counting objects: 121, done. remote: Compressing objects: 100% (79/79), done. remote: Total 121 (delta 35), reused 106 (delta 20) Receiving objects: 100% (121/121), 11.91 KiB, done. Resolving deltas: 100% (35/35), done. dmage@nibbler ~ $ cd bem-bl-test/ dmage@nibbler ~/bem-bl-test $ make -- git git://github.com/bem/bem-bl.git (http://github.com/bem/bem-bl.git) bem-bl Cloning into bem-bl... remote: Counting objects: 3834, done. remote: Compressing objects: 100% (1527/1527), done. remote: Total 3834 (delta 2122), reused 3724 (delta 2012) Receiving objects: 100% (3834/3834), 758.43 KiB | 307 KiB/s, done. Resolving deltas: 100% (2122/2122), done. bem create block -l pages -t bemdecl.js client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.bemdecl.js -t deps.js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js -o pages/client -n client error: TypeError: Object # has no method 'parse' TypeError: Object # has no method 'parse' at [object Object].bemBuild (/home/dmage/bem-bl-test/bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js:43:29) at [object Object].build (/usr/lib64/node_modules/bem/lib/tech.js:420:26) at /usr/lib64/node_modules/bem/lib/commands/build.js:119:22 at Array.forEach (native) at Cmd. (/usr/lib64/node_modules/bem/lib/commands/build.js:44:32) at /usr/lib64/node_modules/bem/node_modules/coa/lib/cmd.js:384:22 at _fulfilled (/usr/lib64/node_modules/bem/node_modules/q/q.js:498:32) at Promise.promiseSend (/usr/lib64/node_modules/bem/node_modules/q/q.js:242:37) at /usr/lib64/node_modules/bem/node_modules/q/q.js:519:18 at Promise.promiseSend (/usr/lib64/node_modules/bem/node_modules/q/q.js:242:37) make: * [pages/client/client.bemhtml.js] Ошибка 1 rm pages/client/client.deps.js pages/client/client.bemdecl.js dmage@nibbler ~/bem-bl-test $ sudo npm-g update npm WARN ometajs@2.0.10 (mailto:ometajs@2.0.10) package.json: bugs['web'] should probably be bugs['url'] npm WARN q@0.7.2 (mailto:q@0.7.2) package.json: bugs['web'] should probably be bugs['url'] npm WARN event-queue@0.1.0 (mailto:event-queue@0.1.0) package.json: bugs['web'] should probably be bugs['url'] npm WARN ometajs@2.0.11 (mailto:ometajs@2.0.11) package.json: bugs['web'] should probably be bugs['url'] /usr/bin/xjst -> /usr/lib/node_modules/xjst/bin/xjst xjst@0.1.9 (mailto:xjst@0.1.9) /usr/lib/node_modules/xjst ├── ometajs@2.0.11 (mailto:ometajs@2.0.11) ├── uglify-js@1.1.1 (mailto:uglify-js@1.1.1) └── coa@0.2.1 (mailto:coa@0.2.1) dmage@nibbler ~/bem-bl-test $** make -B -- git git://github.com/bem/bem-bl.git (http://github.com/bem/bem-bl.git) bem-bl From git://github.com/bem/bem-bl (http://github.com/bem/bem-bl)

  • branch master -> FETCH_HEAD Already up-to-date. bem create block -l pages -t bemdecl.js client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.bemdecl.js -t deps.js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t css -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t js -o pages/client -n client bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/client/blocks/ -d pages/client/client.deps.js -t ie.css -o pages/client -n client bem create block -l pages -t bem-bl/blocks-common/i-bem/bem/techs/html.js client bem create block -l pages -t bemdecl.js example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.bemdecl.js -t deps.js -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t css -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t js -o pages/example -n example bem build -l bem-bl/blocks-common/ -l bem-bl/blocks-desktop/ -l blocks/ -l pages/example/blocks/ -d pages/example/example.deps.js -t ie.css -o pages/example -n example bem create block -l pages -t bem-bl/blocks-common/i-bem/bem/techs/html.js example rm pages/example/example.bemdecl.js pages/client/client.deps.js pages/client/client.bemdecl.js pages/example/example.deps.js dmage@nibbler ~/bem-bl-test $ cat pages/example/example.html

dmage@nibbler ~/bem-bl-test $ ls -al pages/example/ итого 20 drwxr-xr-x 2 dmage dmage 4096 Ноя 20 00:55 . drwxr-xr-x 4 dmage dmage 4096 Ноя 20 00:53 .. -rw-r--r-- 1 dmage dmage 1259 Ноя 20 00:55 example.bemhtml.js -rw-r--r-- 1 dmage dmage 563 Ноя 20 00:53 example.bemjson.js -rw-r--r-- 1 dmage dmage 0 Ноя 20 00:55 example.css -rw-r--r-- 1 dmage dmage 1 Ноя 20 00:55 example.html -rw-r--r-- 1 dmage dmage 0 Ноя 20 00:55 example.ie.css -rw-r--r-- 1 dmage dmage 0 Ноя 20 00:55 example.js dmage@nibbler ~/bem-bl-test $ make pages/client/client.bemdecl.js bem create block -l pages -t bemdecl.js client dmage@nibbler ~/bem-bl-test $ cat pages/client/client.bemdecl.js dmage@nibbler ~/bem-bl-test $


Reply to this email directly or view it on GitHub: https://github.com/bem/bem-tools/issues/18