lucidnz / bootstrapify-1

An open-source base theme for Shopify using Twitter Bootstrap
http://bootstrapify-theme.myshopify.com/
187 stars 72 forks source link

Warning: ENOENT, no such file or directory #237

Open chaoticbear opened 8 years ago

chaoticbear commented 8 years ago

When running grunt or grunt watch after editing any of the settings files I get this error:

Running "shopify_theme_settings:settings" (shopify_theme_settings) task Warning: ENOENT, no such file or directory '/tmp/templates116211-28649-157vhno/.html' Use --force to continue.

I've tried both suggested solutions here, but still receive the same no such file or directory error: https://github.com/discolabs/grunt-shopify-theme-settings/issues/17

Seems like a different error than the ENOENT spawn error.

I'm running Mint 17.3 (basically ubuntu 14.04)

Output of npm -ls

├─┬ grunt@0.4.5 │ ├── async@0.1.22 │ ├── coffee-script@1.3.3 │ ├── colors@0.6.2 │ ├── dateformat@1.0.2-1.2.3 │ ├── eventemitter2@0.4.14 │ ├── exit@0.1.2 │ ├─┬ findup-sync@0.1.3 │ │ ├─┬ glob@3.2.11 │ │ │ ├── inherits@2.0.1 │ │ │ └─┬ minimatch@0.3.0 │ │ │ ├── lru-cache@2.7.3 │ │ │ └── sigmund@1.0.1 │ │ └── lodash@2.4.2 │ ├── getobject@0.1.0 │ ├─┬ glob@3.1.21 │ │ ├── graceful-fs@1.2.3 │ │ └── inherits@1.0.2 │ ├─┬ grunt-legacy-log@0.1.3 │ │ ├── grunt-legacy-log-utils@0.1.1 │ │ ├── lodash@2.4.2 │ │ └── underscore.string@2.3.3 │ ├── grunt-legacy-util@0.2.0 │ ├── hooker@0.2.3 │ ├── iconv-lite@0.2.11 │ ├─┬ js-yaml@2.0.5 │ │ ├─┬ argparse@0.1.16 │ │ │ ├── underscore@1.7.0 │ │ │ └── underscore.string@2.4.0 │ │ └── esprima@1.0.4 │ ├── lodash@0.9.2 │ ├─┬ minimatch@0.2.14 │ │ ├── lru-cache@2.7.3 │ │ └── sigmund@1.0.1 │ ├─┬ nopt@1.0.10 │ │ └── abbrev@1.0.7 │ ├── rimraf@2.2.8 │ ├── underscore.string@2.2.1 │ └── which@1.0.9 ├─┬ grunt-contrib-compress@0.9.1 │ ├─┬ archiver@0.9.1 │ │ ├── buffer-crc32@0.2.5 │ │ ├─┬ file-utils@0.1.5 │ │ │ ├─┬ findup-sync@0.1.3 │ │ │ │ └── lodash@2.4.2 │ │ │ ├─┬ glob@3.2.11 │ │ │ │ ├── inherits@2.0.1 │ │ │ │ └─┬ minimatch@0.3.0 │ │ │ │ ├── lru-cache@2.7.3 │ │ │ │ └── sigmund@1.0.1 │ │ │ ├── iconv-lite@0.2.11 │ │ │ ├── isbinaryfile@0.1.9 │ │ │ ├── lodash@2.1.0 │ │ │ ├─┬ minimatch@0.2.14 │ │ │ │ ├── lru-cache@2.7.3 │ │ │ │ └── sigmund@1.0.1 │ │ │ └── rimraf@2.2.8 │ │ ├── lazystream@0.1.0 │ │ ├── lodash@2.4.2 │ │ ├─┬ readable-stream@1.0.33 │ │ │ ├── core-util-is@1.0.2 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ └── string_decoder@0.10.31 │ │ ├─┬ tar-stream@0.3.3 │ │ │ ├── bl@0.6.0 │ │ │ └─┬ end-of-stream@0.1.5 │ │ │ └─┬ once@1.3.3 │ │ │ └── wrappy@1.0.1 │ │ └─┬ zip-stream@0.3.7 │ │ ├── crc32-stream@0.2.0 │ │ ├─┬ debug@1.0.4 │ │ │ └── ms@0.6.2 │ │ └── deflate-crc32-stream@0.1.2 │ └── prettysize@0.0.3 ├── grunt-contrib-concat@0.3.0 ├── grunt-contrib-copy@0.5.0 ├─┬ grunt-contrib-jshint@0.7.2 │ └─┬ jshint@2.3.0 │ ├─┬ cli@0.4.5 │ │ └─┬ glob@7.0.3 │ │ ├─┬ inflight@1.0.4 │ │ │ └── wrappy@1.0.1 │ │ ├── inherits@2.0.1 │ │ ├─┬ minimatch@3.0.0 │ │ │ └─┬ brace-expansion@1.1.3 │ │ │ ├── balanced-match@0.3.0 │ │ │ └── concat-map@0.0.1 │ │ ├─┬ once@1.3.3 │ │ │ └── wrappy@1.0.1 │ │ └── path-is-absolute@1.0.0 │ ├── console-browserify@0.1.6 │ ├─┬ minimatch@0.4.0 │ │ ├── lru-cache@2.7.3 │ │ └── sigmund@1.0.1 │ ├── shelljs@0.1.4 │ └── underscore@1.4.4 ├─┬ grunt-contrib-sass@0.8.1 │ ├── async@0.9.2 │ ├─┬ chalk@0.5.1 │ │ ├── ansi-styles@1.1.0 │ │ ├── escape-string-regexp@1.0.5 │ │ ├─┬ has-ansi@0.1.0 │ │ │ └── ansi-regex@0.2.1 │ │ ├─┬ strip-ansi@0.3.0 │ │ │ └── ansi-regex@0.2.1 │ │ └── supports-color@0.2.0 │ ├── dargs@2.1.0 │ ├─┬ which@1.2.4 │ │ ├─┬ is-absolute@0.1.7 │ │ │ └── is-relative@0.1.3 │ │ └── isexe@1.1.2 │ └── win-spawn@2.0.0 ├─┬ grunt-contrib-uglify@0.3.3 │ ├─┬ chalk@0.4.0 │ │ ├── ansi-styles@1.0.0 │ │ ├── has-color@0.1.7 │ │ └── strip-ansi@0.1.1 │ ├─┬ grunt-lib-contrib@0.6.1 │ │ └── zlib-browserify@0.0.1 │ └─┬ uglify-js@2.4.24 │ ├── async@0.2.10 │ ├─┬ source-map@0.1.34 │ │ └── amdefine@1.0.0 │ ├── uglify-to-browserify@1.0.2 │ └─┬ yargs@3.5.4 │ ├── camelcase@1.2.1 │ ├── decamelize@1.2.0 │ ├── window-size@0.1.0 │ └── wordwrap@0.0.2 ├─┬ grunt-contrib-watch@0.5.3 │ ├─┬ gaze@0.4.3 │ │ └─┬ globule@0.1.0 │ │ ├─┬ glob@3.1.21 │ │ │ ├── graceful-fs@1.2.3 │ │ │ └── inherits@1.0.2 │ │ ├── lodash@1.0.2 │ │ └─┬ minimatch@0.2.14 │ │ ├── lru-cache@2.7.3 │ │ └── sigmund@1.0.1 │ └─┬ tiny-lr@0.0.4 │ ├── debug@0.7.4 │ ├── faye-websocket@0.4.4 │ ├─┬ noptify@0.0.3 │ │ └─┬ nopt@2.0.0 │ │ └── abbrev@1.0.7 │ └── qs@0.5.6 └─┬ grunt-shopify-theme-settings@0.4.7 ├─┬ cheerio@0.17.0 │ ├─┬ CSSselect@0.4.1 │ │ ├── CSSwhat@0.4.7 │ │ └─┬ domutils@1.4.3 │ │ └── domelementtype@1.3.0 │ ├─┬ dom-serializer@0.0.1 │ │ └── domelementtype@1.1.3 │ ├── entities@1.1.1 │ ├─┬ htmlparser2@3.7.3 │ │ ├── domelementtype@1.3.0 │ │ ├── domhandler@2.2.1 │ │ ├── domutils@1.5.1 │ │ ├── entities@1.0.0 │ │ └─┬ readable-stream@1.1.13 │ │ ├── core-util-is@1.0.2 │ │ ├── inherits@2.0.1 │ │ ├── isarray@0.0.1 │ │ └── string_decoder@0.10.31 │ └── lodash@2.4.2 ├── htmltidy@0.0.6 ├─┬ js-yaml@3.1.0 │ ├─┬ argparse@0.1.16 │ │ ├── underscore@1.7.0 │ │ └── underscore.string@2.4.0 │ └── esprima@1.0.4 ├─┬ swig@1.4.2 │ ├─┬ optimist@0.6.1 │ │ ├── minimist@0.0.10 │ │ └── wordwrap@0.0.3 │ └─┬ uglify-js@2.4.24 │ ├── async@0.2.10 │ ├─┬ source-map@0.1.34 │ │ └── amdefine@1.0.0 │ ├── uglify-to-browserify@1.0.2 │ └─┬ yargs@3.5.4 │ ├── camelcase@1.2.1 │ ├── decamelize@1.2.0 │ ├── window-size@0.1.0 │ └── wordwrap@0.0.2 └─┬ temp@0.8.3 ├── os-tmpdir@1.0.1 └── rimraf@2.2.8

Output of grunt shopify_theme_settings --verbose

`Initializing Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks. Initializing config...OK

Registering "grunt-contrib-jshint" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-contrib-jshint/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-contrib-jshint/package.json...OK Loading "jshint.js" tasks...OK

Registering "grunt-contrib-uglify" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-contrib-uglify/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-contrib-uglify/package.json...OK Loading "uglify.js" tasks...OK

Registering "grunt-contrib-watch" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-contrib-watch/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-contrib-watch/package.json...OK Loading "watch.js" tasks...OK

Registering "grunt-contrib-sass" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-contrib-sass/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-contrib-sass/package.json...OK Loading "sass.js" tasks...OK

Registering "grunt-contrib-copy" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-contrib-copy/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-contrib-copy/package.json...OK Loading "copy.js" tasks...OK

Registering "grunt-contrib-concat" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-contrib-concat/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-contrib-concat/package.json...OK Loading "concat.js" tasks...OK

Registering "grunt-contrib-compress" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-contrib-compress/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-contrib-compress/package.json...OK Loading "compress.js" tasks...OK

Registering "grunt-shopify-theme-settings" local Npm module tasks. Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/package.json...OK Parsing /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/package.json...OK Loading "shopify_import_theme_settings.js" tasks...OK

Running tasks: shopify_theme_settings

Running "shopify_theme_settings" task

Running "shopify_theme_settings:settings" (shopify_theme_settings) task Verifying property shopify_theme_settings.settings exists in config...OK Files: settings/branding.yml, settings/colour.yml, settings/design.yml, settings/layout.yml, settings/homepage.yml, settings/homepage-slider.yml, settings/typography.yml, settings/blog.yml, settings/products.yml, settings/collections.yml, settings/sidebar.yml, settings/navigation.yml, settings/footer.yml, settings/cart.yml, settings/age-verification.yml, settings/localization.yml, settings/money.yml, settings/social.yml, settings/advanced.yml -> theme/config/settings.html
Options: templates=["settings/templates"], tidyOptions={"docType":"strict","outputXhtml":true,"indent":true,"indentSpaces":4,"wrap":0,"showBodyOnly":true,"dropEmptyElements":false}, noCache Reading settings/branding.yml...OK Parsing settings/branding.yml...OK Reading settings/colour.yml...OK Parsing settings/colour.yml...OK Reading settings/design.yml...OK Parsing settings/design.yml...OK Reading settings/layout.yml...OK Parsing settings/layout.yml...OK Reading settings/homepage.yml...OK Parsing settings/homepage.yml...OK Reading settings/homepage-slider.yml...OK Parsing settings/homepage-slider.yml...OK Reading settings/typography.yml...OK Parsing settings/typography.yml...OK Reading settings/blog.yml...OK Parsing settings/blog.yml...OK Reading settings/products.yml...OK Parsing settings/products.yml...OK Reading settings/collections.yml...OK Parsing settings/collections.yml...OK Reading settings/sidebar.yml...OK Parsing settings/sidebar.yml...OK Reading settings/navigation.yml...OK Parsing settings/navigation.yml...OK Reading settings/footer.yml...OK Parsing settings/footer.yml...OK Reading settings/cart.yml...OK Parsing settings/cart.yml...OK Reading settings/age-verification.yml...OK Parsing settings/age-verification.yml...OK Reading settings/localization.yml...OK Parsing settings/localization.yml...OK Reading settings/money.yml...OK Parsing settings/money.yml...OK Reading settings/social.yml...OK Parsing settings/social.yml...OK Reading settings/advanced.yml...OK Parsing settings/advanced.yml...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/blog.html...OK Writing /tmp/templates116211-28946-1ipjq7y/blog.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/checkbox.html...OK Writing /tmp/templates116211-28946-1ipjq7y/checkbox.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/collection.html...OK Writing /tmp/templates116211-28946-1ipjq7y/collection.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/color.html...OK Writing /tmp/templates116211-28946-1ipjq7y/color.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/field.html...OK Writing /tmp/templates116211-28946-1ipjq7y/field.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/file.html...OK Writing /tmp/templates116211-28946-1ipjq7y/file.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/font.html...OK Writing /tmp/templates116211-28946-1ipjq7y/font.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/linklist.html...OK Writing /tmp/templates116211-28946-1ipjq7y/linklist.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/page.html...OK Writing /tmp/templates116211-28946-1ipjq7y/page.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/section.about.html...OK Writing /tmp/templates1162recieve11-28946-1ipjq7y/section.about.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/section.html...OK Writing /tmp/templates116211-28946-1ipjq7y/section.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/select.html...OK Writing /tmp/templates116211-28946-1ipjq7y/select.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/settings.html...OK Writing /tmp/templates116211-28946-1ipjq7y/settings.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/snippet.html...OK Writing /tmp/templates116211-28946-1ipjq7y/snippet.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/subsection.html...OK Writing /tmp/templates116211-28946-1ipjq7y/subsection.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/text-multi.html...OK Writing /tmp/templates116211-28946-1ipjq7y/text-multi.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/text-single.html...OK Writing /tmp/templates116211-28946-1ipjq7y/text-single.html...OK Reading /media/data/clients-rm/workingdir/node_modules/grunt-shopify-theme-settings/tasks/templates/time-range.html...OK Writing /tmp/templates116211-28946-1ipjq7y/time-range.html...OK Reading settings/templates/display-location-field.html...OK Writing /tmp/templates116211-28946-1ipjq7y/display-location-field.html...OK Warning: ENOENT, no such file or directory '/tmp/templates116211-28946-1ipjq7y/.html' Use --force to continue.`

stewartknapman commented 8 years ago

Hmm, at first glance this looks to be with the theme settings plugin. @gavinballard might be able to shed some light on this for you, maybe?

gavinballard commented 8 years ago

If nothing in https://github.com/discolabs/grunt-shopify-theme-settings/issues/17 or https://github.com/vavere/htmltidy/issues/11 helps, I don't have much to offer I'm afraid. The theme settings plugin is deprecated these days since the move to settings_schema.json so I don't maintain it any more.

chaoticbear commented 8 years ago

Thanks for the responses. This issue still exists for me, but in case anyone else runs into it here's my workaround:

Perhaps grunt-shopify-theme-settings should be removed? Maybe editing the settings_schema.json manually is the best way to do it now?