missing file in compiled script: "Cannot find module" error #1219

Closed
maxlath opened this Issue Mar 2, 2016 · 13 comments

Projects

None yet

5 participants

@maxlath
maxlath commented Mar 2, 2016

Description

Since a few months already (since I upgraded to Brunch 2.0? hard to tell exactly), I keep having the exact same file missing from the built app.js file. This happened quite exclusively after brunch first compilation.

This is the error I get in the browser:

Unhandled rejection Error: Cannot find module "modules/general/views/behaviors/templates/confirmation_modal" from "modules/general/views/behaviors/confirmation_modal"
    require@http://localhost:3006/public/javascripts/vendor.js?DIGEST:79:11
    expanded@http://localhost:3006/public/javascripts/vendor.js?DIGEST:56:14
    @http://localhost:3006/public/javascripts/app.js?DIGEST:8421:13
    initModule@http://localhost:3006/public/javascripts/vendor.js?DIGEST:63:1
    require@http://localhost:3006/public/javascripts/vendor.js?DIGEST:73:1
    expanded@http://localhost:3006/public/javascripts/vendor.js?DIGEST:56:14
    @http://localhost:3006/public/javascripts/app.js?DIGEST:7035:21
    initModule@http://localhost:3006/public/javascripts/vendor.js?DIGEST:63:1
    require@http://localhost:3006/public/javascripts/vendor.js?DIGEST:73:1
    expanded@http://localhost:3006/public/javascripts/vendor.js?DIGEST:56:14
    @http://localhost:3006/public/javascripts/app.js?DIGEST:7019:22
    initModule@http://localhost:3006/public/javascripts/vendor.js?DIGEST:63:1
    require@http://localhost:3006/public/javascripts/vendor.js?DIGEST:73:1
    expanded@http://localhost:3006/public/javascripts/vendor.js?DIGEST:56:14
    App<.initialize@http://localhost:3006/public/javascripts/app.js?DIGEST:427:22
    Marionette.Object@http://localhost:3006/public/javascripts/vendor.js?DIGEST:19808:5
    Marionette.Application<.constructor@http://localhost:3006/public/javascripts/vendor.js?DIGEST:22207:7
    extend/child@http://localhost:3006/public/javascripts/vendor.js?DIGEST:12232:34
    @http://localhost:3006/public/javascripts/app.js?DIGEST:480:18
    initModule@http://localhost:3006/public/javascripts/vendor.js?DIGEST:63:1
    require@http://localhost:3006/public/javascripts/vendor.js?DIGEST:73:1
    expanded@http://localhost:3006/public/javascripts/vendor.js?DIGEST:56:14
    module.exports@http://localhost:3006/public/javascripts/app.js?DIGEST:490:9
From previous event:
    @http://localhost:3006/public/javascripts/app.js?DIGEST:553:1
    initModule@http://localhost:3006/public/javascripts/vendor.js?DIGEST:63:1
    require@http://localhost:3006/public/javascripts/vendor.js?DIGEST:73:1
    @http://localhost:3006/:16:1

(the Unhandled rejection and From previous event: are the way bluebird catchs the error, but bluebird itself has no role in this error)

This error is quite normal, given that the file templates/confirmation_modal can not be found in the built app.js file.

I couldn't find any reason for this file missing from brunch watch --debug logs either.

I usually can easily fix this issue with touch ~/inventaire/client/app/modules/general/views/behaviors/templates/confirmation_modal.hbs (so much so that I created an alias of it ;)).

Any clue where I could start looking to fix this issue?
Meanwhile, is there a hook somewhere firing just after the first compilation, where I could systemically touch ~/inventaire/client/app/modules/general/views/behaviors/templates/confirmation_modal.hbs?

Thanks in advance for any help!

Environment

  1. Brunch: 2.3.2
  2. Node: 4.3.0
  3. NPM: 3.7.1
  4. Operating system: Ubuntu 12.04

package.json contents

{
  "author": "maxlath",
  "name": "inventaire-client",
  "description": "a libre collaborative resources mapper powered by open-knowledge (client-side)",
  "version": "2.1.0",
  "license": "AGPL-3.0",
  "homepage": "https://inventaire.io",
  "repository": {
    "type": "git",
    "url": "http://github.com/maxlath/inventaire-client"
  },
  "engines": {
    "node": "~4.2.1"
  },
  "scripts": {
    "postinstall": "./scripts/postinstall",
    "start": "brunch watch --debug",
    "lint": "coffeelint -f ./config/coffeelint.json app/*",
    "lint-staged": "../scripts/lint-staged",
    "test": "mocha --compilers coffee:coffee-script/register",
    "test-watch": "mocha --compilers coffee:coffee-script/register --watch",
    "test-build": "./scripts/test_build/run local",
    "test-build-prod": "./scripts/test_build/run prod",
    "build": "./scripts/build",
    "flo": "supervisor -w flo-server.coffee -- server.coffee",
    "patches": "../scripts/run_patches ./scripts/patches",
    "generate-sitemaps": "./scripts/sitemaps/generate.coffee"
  },
  "dependencies": {
    "browser-locale": "^1.0.0",
    "inv-utils": "^2.0.1",
    "level-js": "^2.2.3",
    "level-multiply": "git+https://github.com/maxlath/node-level-multiply.git",
    "levelup": "^1.3.1",
    "memdown": "^1.1.2",
    "to-data-url": "^1.0.1",
    "wikidata-lang": "^2.0.3",
    "wikidata-sdk": "^2.2.1"
  },
  "devDependencies": {
    "auto-reload-brunch": "^2.0.0",
    "bluebird": "^3.1.5",
    "bower": "^1.7.7",
    "browserify": "^11.2.0",
    "brunch": "^2.2.2",
    "chai": "^3.5.0",
    "clean-css-brunch": "^2.0.0",
    "coffee-script-brunch": "^2.0.0",
    "coffeeify": "^2.0.1",
    "config": "^1.19.0",
    "css-brunch": "^2.0.0",
    "fb-flo": "^0.5.0",
    "git-digest-brunch": "^1.0.3",
    "git-hooks": "^1.0.2",
    "graceful-fs": "^4.1.2",
    "handlebars": "^4.0.5",
    "handlebars-brunch": "^2.0.1",
    "html-minifier": "^1.1.1",
    "javascript-brunch": "^2.0.0",
    "ls": "^0.1.0",
    "mkdirp": "^0.5.1",
    "mocha": "^2.4.5",
    "sass-brunch": "^2.0.0",
    "sinon": "^1.17.3",
    "transifexify": "^1.0.6",
    "uglify-js-brunch": "^2.0.1"
  }
}

due to the project being older than Brunch NPM support, dependencies are manually copied to vendor

brunch config contents

exports.config =
  # See http://brunch.io/#documentation for docs.
  notifications: yes
  sourceMaps: true
  paths:
    # doc: https://github.com/brunch/brunch/blob/master/docs/config.md#paths
    watched: ['app', 'vendor']
  files:
    javascripts:
      joinTo:
        # foundation js is included in vendor as a normal bower component
        'javascripts/vendor.js': /^(vendor\/scripts|bower_components)/
        'javascripts/app.js': /^app/
      order:
        before: [
          "bower_components/jquery/dist/jquery.js"
          "bower_components/underscore/underscore.js"
          "bower_components/backbone/backbone.js"
        ],
        after: [
          "bower_components/leaflet.markercluster/dist/leaflet.markercluster-src.js"
          "vendor/*"
        ]

    stylesheets:
      joinTo:
        # /!\ foundation is joined to app.css as its scss '!default'ed properties requires to be after app
        # but in the same compiled file! (thus the failing attemps to extract foundation in its own file)
        'stylesheets/vendor.css': /^(vendor\/stylesheets|bower_components\/(?!foundation))/
        'stylesheets/app.css': /^app/

    templates:
      joinTo: 'javascripts/app.js'

  plugins:
    autoReload:
      enabled: true
  overrides:
    production:
      sourceMaps: true
      optimize: true
      plugins: autoReload: enabled: false

bower.json contents

{
  "name": "inventory-client",
  "version": "0.0.1",
  "description": "resources mapper",
  "main": "public/javascripts/app.js",
  "keywords": [
    "inventory",
    "P2P-RM"
  ],
  "authors": [
    "maxlath"
  ],
  "license": "AGPL3",
  "homepage": "http://inventaire.io",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "autosize": "~3.0.8",
    "backbone-filtered-collection": "~0.4.0",
    "backbone-nested-model": "backbone-nested-afeld#~2.0.4",
    "backbone.marionette": "marionette#2.4.1",
    "blueimp-canvas-to-blob": "^3.1.0",
    "cropper": "~0.11.1",
    "df-visible": "jquery-visible#~1.2.0",
    "font-awesome": "~4.4.0",
    "foundation": "https://github.com/maxlath/bower-foundation.git#brunch-custom",
    "imagesloaded": "~3.1.8",
    "jquery.inview": "jquery.inview#~1.0.0",
    "leaflet": "~0.7.5",
    "masonry": "~3.3.2",
    "moment": "~2.10.6",
    "leaflet.markercluster": "~0.4.0",
    "bluebird": "~3.1.1",
    "polyglot": "^1.0.0"
  },
  "overrides": {
    "jquery-visible": {
      "main": "jquery.visible.js"
    },
    "foundation": {
      "main": [
        "js/foundation/foundation.js",
        "js/foundation/foundation.alert.js",
        "js/foundation/foundation.dropdown.js",
        "js/foundation/foundation.joyride.js",
        "js/foundation/foundation.reveal.js",
        "js/foundation/foundation.tooltip.js",
        "js/foundation/foundation.topbar.js"
      ],
      "excluded": [
        "js/foundation/foundation.abide.js",
        "js/foundation/foundation.accordion.js",
        "js/foundation/foundation.clearing.js",
        "js/foundation/foundation.equalizer.js",
        "js/foundation/foundation.interchange.js",
        "js/foundation/foundation.magellan.js",
        "js/foundation/foundation.offcanvas.js",
        "js/foundation/foundation.orbit.js",
        "js/foundation/foundation.slider.js",
        "js/foundation/foundation.tab.js"
      ]
    },
    "leaflet.markercluster": {
      "main": [
        "dist/leaflet.markercluster-src.js",
        "dist/MarkerCluster.css",
        "dist/MarkerCluster.Default.css"
      ]
    },
    "modernizr": {
      "main": "modernizr.js"
    },
    "blueimp-canvas-to-blob": {
      "main": "js/canvas-to-blob.js"
    },
    "outlayer": {
      "main": [
        "item.js",
        "outlayer.js"
      ]
    }
  }
}
@goshakkk
Member
goshakkk commented Mar 2, 2016

@maxlath hey, can you please share a subset of your app that reproduces the issue so that it's easier for us to debug? (the app with the configs and that template file probably)

It's probably related in some way to NPM integration, and since you are not using it, can you see if npm: {enabled: false} in config fixes the issue?

Still, the subset app that reproduces the issue would be very much appreciated. Anything app/* disappearing from the bundle is not the expected behavior even with npm integration and we should address it.

@maxlath
maxlath commented Mar 2, 2016

the full app is here https://github.com/inventaire/inventaire-client/tree/dev/
I will try with npm: {enabled: false} and keep you updated!

@maxlath
maxlath commented Mar 2, 2016

@goshakkk that was quick, I just reproduced the bug with npm: {enabled: false} :/

@goshakkk
Member
goshakkk commented Mar 2, 2016

@maxlath interesting... I'll take, a look, thank you!

@goshakkk
Member
goshakkk commented Mar 3, 2016

I cloned the repo, ran npm install and then brunch w and was not able to reproduce the issue. Both when just started, and after changing some file to trigger a rebuild, modules/general/views/behaviors/templates/confirmation_modal consistently appears in the generated app.js.

I furthermore tried with both brunch 2.3.2 that you mentioned in the issue, as well as the latest 2.4.2 and it didn't change a thing regarding that template.

Could the issue be due to node_modules or some other kind of cache or something? Can you try cloning the repo into a separate fresh directory locally and try it there?

@jeremydierx

Same problem for me since a few months, brunch miss files at random when it compiles (in vendor.js and app.js)… Touching the missing file resolves the problem.

@goshakkk
Member
goshakkk commented Mar 3, 2016

@jeremydierx What OS are you on? What version of brunch does it happen on for you? Does it still happen with the latest brunch version? Does it, as suggested in my last comment, happen if you clone your repo to a separate fresh directory and try it there?

@es128
Member
es128 commented Mar 3, 2016

Sounds like it might be a race condition between the text editor performing an odd write sequence that involves blanking or moving the source file away temporarily and the file system watcher. It would be useful to know whether the last event on that file when this issue occurs reports a delete or a change (which can be seen when running brunch in debug mode).

A potential fix to explore would be to detect that a source file that previously had content is now empty and retry the read of that file after a short delay - or something similar after every reported delete of a source file depending on the characteristics of how this actually occurs for those that can reproduce it.

@jeremydierx

@goshakkk my OS is archlinux 64, brunch version is 2.3.2. I don't know when problem has started but it's the same story with my others recent projects.

@goshakkk
Member
goshakkk commented Mar 7, 2016

@jeremydierx @maxlath did you see @es128's previous comment?

Does it happen during brunch build too or only during brunch watch?

@maxlath
maxlath commented Mar 7, 2016

so it seems I found a way to reproduce the bug close to everytime:

to force a cache bust, I regularly use the following script using just nodejs fs module on a file watched by brunch

#!/usr/bin/env coffee
fs = require 'fs'

path = '/home/maxlath/inventaire/client/app/api/api.coffee'
fs.readFile path, (err, buf)->
  text = buf.toString()
  buster = new Date().getTime()
  text = text.replace /json\?DIGEST\d*/, "json?DIGEST#{buster}"
  fs.writeFile path, text

which makes brunch generate an emtpy module

require.register("api/api", function(exports, require, module) {

});

I wondered if Sublime Text had something to do with it as I already had a race condition issue #971, but it seems that no: this happened after closing everything sublime, starting brunch watch --debug, and firing the script.

Here are the logs of this sequence:

07 Mar 16:12:52 - info: compiled 510 files into 4 files, copied 62 in 20.8 sec

firing the script

  brunch:watch change app/api/api.coffee +33s
  brunch:list Reading app/api/api.coffee +0ms
  brunch:pipeline Compiling app/api/api.coffee @ CoffeeScriptCompiler +2ms
  brunch:modules Wrapping api/api @ commonjs +2ms
  brunch:file Generated source map for 'app/api/api.coffee'  +0ms
  brunch:list Compiled app/api/api.coffee +0ms
  brunch:write Writing 1/4 files +82ms
  brunch:generate Concatenating [app/api/api.coffee, app/api/auth.coffee, app/api/commons.coffee, app/api/data.coffee, app/api/entities.coffee, app/api/groups.coffee, app/api/items.coffee, app/api/services.coffee, app/api/users.coffee, app/app.coffee, app/init_app.coffee, app/initialize.coffee, app/lib/allow_persistant_query.coffee, app/lib/books.coffee, app/lib/builders/utils.coffee, app/lib/data/local_cache.coffee, app/lib/data/local_db.coffee, app/lib/data/reset_dbs_periodically.coffee, app/lib/data_state.coffee, app/lib/data_waiters.coffee, app/lib/env_config.coffee, app/lib/error.coffee, app/lib/feature_detection.coffee, app/lib/fetch_moment_local.coffee, app/lib/foundation.coffee, app/lib/global_helpers.coffee, app/lib/global_libs_extender.coffee, app/lib/handlebars_helpers/base.coffee, app/lib/handlebars_helpers/blocks.coffee, app/lib/handlebars_helpers/claims_helpers.coffee, app/lib/handlebars_helpers/format_author.coffee, app/lib/handlebars_helpers/images.coffee, app/lib/handlebars_helpers/input.coffee, app/lib/handlebars_helpers/linkify.coffee, app/lib/handlebars_helpers/misc.coffee, app/lib/handlebars_helpers/partials.coffee, app/lib/handlebars_helpers/platforms.coffee, app/lib/handlebars_helpers/user_content.coffee, app/lib/handlebars_helpers/utils.coffee, app/lib/handlebars_helpers/wikidata_claims.coffee, app/lib/i18n.coffee, app/lib/i18n_missing_key.coffee, app/lib/images.coffee, app/lib/jquery-jk.coffee, app/lib/loggers.coffee, app/lib/mobile_check.coffee, app/lib/model_update.coffee, app/lib/noop_console.coffee, app/lib/piwik.coffee, app/lib/poster.coffee, app/lib/preq.coffee, app/lib/qlabel/labels_helpers.coffee, app/lib/qlabel/qlabel.coffee, app/lib/querystring_helpers.coffee, app/lib/scanner.coffee, app/lib/shared/api/img.coffee, app/lib/shared/books.coffee, app/lib/shared/global_libs_extender.coffee, app/lib/shared/handlebars_helpers.coffee, app/lib/shared/notifications_settings_list.coffee, app/lib/shared/promises.coffee, app/lib/shared/regex.coffee, app/lib/shared/shared_libs.coffee, app/lib/shared/tests.coffee, app/lib/shared/transaction_side_effects.coffee, app/lib/shared/transactions.coffee, app/lib/shared/utils.coffee, app/lib/shared/wiki_sitelinks.coffee, app/lib/shared/wikidata.coffee, app/lib/shared/wikidata_aliases.coffee, app/lib/shared/wikidata_api.coffee, app/lib/translate.coffee, app/lib/unhandled_error_logger.coffee, app/lib/urls.coffee, app/lib/utils.coffee, app/lib/view_state.coffee, app/lib/wikidata.coffee, app/modules/comments/collections/comments.coffee, app/modules/comments/comments.coffee, app/modules/comments/models/comment.coffee, app/modules/entities/collections/entities.coffee, app/modules/entities/collections/isbn_entities.coffee, app/modules/entities/collections/wikidata_entities.coffee, app/modules/entities/entities.coffee, app/modules/entities/entities_data.coffee, app/modules/entities/lib/images.coffee, app/modules/entities/lib/inv/entity_data_tests.coffee, app/modules/entities/lib/inv/inv_data.coffee, app/modules/entities/lib/isbn/isbn_data.coffee, app/modules/entities/lib/wikidata/authors.coffee, app/modules/entities/lib/wikidata/books.coffee, app/modules/entities/lib/wikidata/genre.coffee, app/modules/entities/lib/wikidata/request_book_cover.coffee, app/modules/entities/lib/wikidata/wikidata_data.coffee, app/modules/entities/models/entity.coffee, app/modules/entities/models/inv_entity.coffee, app/modules/entities/models/isbn_entity.coffee, app/modules/entities/models/wikidata_entity.coffee, app/modules/entities/views/article_li.coffee, app/modules/entities/views/author_li.coffee, app/modules/entities/views/book_li.coffee, app/modules/entities/views/entity_actions.coffee, app/modules/entities/views/entity_create.coffee, app/modules/entities/views/entity_data.coffee, app/modules/entities/views/entity_show.coffee, app/modules/entities/views/genre_data.coffee, app/modules/entities/views/genre_layout.coffee, app/modules/entities/views/templates/article_li.hbs, app/modules/entities/views/templates/author_claims.hbs, app/modules/entities/views/templates/author_li.hbs, app/modules/entities/views/templates/birth_death_dates.hbs, app/modules/entities/views/templates/book_claims.hbs, app/modules/entities/views/templates/book_li.hbs, app/modules/entities/views/templates/edit_wikidata.hbs, app/modules/entities/views/templates/entity_actions.hbs, app/modules/entities/views/templates/entity_create.hbs, app/modules/entities/views/templates/entity_data.hbs, app/modules/entities/views/templates/entity_show.hbs, app/modules/entities/views/templates/genre_data.hbs, app/modules/entities/views/templates/genre_layout.hbs, app/modules/entities/views/templates/needed.hbs, app/modules/entities/views/templates/photo_credits.hbs, app/modules/entities/views/templates/wikipedia_iframe.hbs, app/modules/entities/views/templates/works_list.hbs, app/modules/entities/views/works_list.coffee, app/modules/general/behaviors/alertbox.coffee, app/modules/general/behaviors/backup_form.coffee, app/modules/general/behaviors/base.coffee, app/modules/general/behaviors/confirmation_modal.coffee, app/modules/general/behaviors/elastic_textarea.coffee, app/modules/general/behaviors/general.coffee, app/modules/general/behaviors/loading.coffee, app/modules/general/behaviors/local_seach_bar.coffee, app/modules/general/behaviors/plain_text_author_link.coffee, app/modules/general/behaviors/prevent_default.coffee, app/modules/general/behaviors/success_check.coffee, app/modules/general/behaviors/toggle_password.coffee, app/modules/general/behaviors/unselect.coffee, app/modules/general/collections/imgs.coffee, app/modules/general/lib/active_langs.coffee, app/modules/general/lib/document_lang.coffee, app/modules/general/lib/dynamic_background.coffee, app/modules/general/lib/enter_click.coffee, app/modules/general/lib/forms.coffee, app/modules/general/lib/head_metadata.coffee, app/modules/general/lib/icon_nav.coffee, app/modules/general/lib/move_caret_to_end.coffee, app/modules/general/lib/querystring_actions.coffee, app/modules/general/lib/show_views.coffee, app/modules/general/lib/smart_prevent_default.coffee, app/modules/general/lib/wait_for_check.coffee, app/modules/general/models/filterable.coffee, app/modules/general/models/img.coffee, app/modules/general/models/positionable.coffee, app/modules/general/models/session.coffee, app/modules/general/plugins/behaviors.coffee, app/modules/general/plugins/login.coffee, app/modules/general/plugins/masonry.coffee, app/modules/general/plugins/messages.coffee, app/modules/general/plugins/pagination.coffee, app/modules/general/plugins/wiki_bar.coffee, app/modules/general/regions/common_el.coffee, app/modules/general/views/app_layout.coffee, app/modules/general/views/behaviors/change_picture.coffee, app/modules/general/views/behaviors/confirmation_modal.coffee, app/modules/general/views/behaviors/loader.coffee, app/modules/general/views/behaviors/picture.coffee, app/modules/general/views/behaviors/picture_picker.coffee, app/modules/general/views/behaviors/templates/change_picture.hbs, app/modules/general/views/behaviors/templates/confirmation_modal.hbs, app/modules/general/views/behaviors/templates/input.hbs, app/modules/general/views/behaviors/templates/loader.hbs, app/modules/general/views/behaviors/templates/picture.hbs, app/modules/general/views/behaviors/templates/picture_picker.hbs, app/modules/general/views/behaviors/templates/success_check.hbs, app/modules/general/views/behaviors/templates/textarea.hbs, app/modules/general/views/behaviors/templates/tip.hbs, app/modules/general/views/behaviors/templates/wikidata_P.hbs, app/modules/general/views/behaviors/templates/wikidata_Q.hbs, app/modules/general/views/call_to_connection.coffee, app/modules/general/views/donate_menu.coffee, app/modules/general/views/error.coffee, app/modules/general/views/feedback_menu.coffee, app/modules/general/views/icon_nav.coffee, app/modules/general/views/menu/account_menu.coffee, app/modules/general/views/menu/list_with_counter.coffee, app/modules/general/views/menu/not_logged_menu.coffee, app/modules/general/views/menu/search_input_data.coffee, app/modules/general/views/menu/templates/account_menu.hbs, app/modules/general/views/menu/templates/contribute.hbs, app/modules/general/views/menu/templates/discussions.hbs, app/modules/general/views/menu/templates/list_with_counter.hbs, app/modules/general/views/menu/templates/not_logged_menu.hbs, app/modules/general/views/menu/templates/others.hbs, app/modules/general/views/menu/templates/settings_menu.hbs, app/modules/general/views/share_menu.coffee, app/modules/general/views/templates/app_layout.hbs, app/modules/general/views/templates/back.hbs, app/modules/general/views/templates/call_to_connection.hbs, app/modules/general/views/templates/common_separator.hbs, app/modules/general/views/templates/ctrl_enter_click_tip.hbs, app/modules/general/views/templates/donate_menu.hbs, app/modules/general/views/templates/error.hbs, app/modules/general/views/templates/feedback_menu.hbs, app/modules/general/views/templates/feedbacks_menu.hbs, app/modules/general/views/templates/filter.hbs, app/modules/general/views/templates/horizontal_separator.hbs, app/modules/general/views/templates/icon_nav.hbs, app/modules/general/views/templates/lateral_buttons.hbs, app/modules/general/views/templates/loader.hbs, app/modules/general/views/templates/modals.hbs, app/modules/general/views/templates/new_message.hbs, app/modules/general/views/templates/save_cancel.hbs, app/modules/general/views/templates/share_menu.hbs, app/modules/general/views/templates/social_networks.hbs, app/modules/general/views/templates/text_field.hbs, app/modules/general/views/templates/toggle_wrap.hbs, app/modules/general/views/templates/toggler.hbs, app/modules/general/views/templates/token.hbs, app/modules/general/views/templates/topbar.hbs, app/modules/general/views/templates/unselect.hbs, app/modules/general/views/templates/validation_buttons.hbs, app/modules/general/views/templates/vertical_separator.hbs, app/modules/general/views/templates/wiki_sitelinks.hbs, app/modules/inventory/collections/friends_items.coffee, app/modules/inventory/collections/items.coffee, app/modules/inventory/inventory.coffee, app/modules/inventory/items_collections.coffee, app/modules/inventory/lib/add_helpers.coffee, app/modules/inventory/lib/add_users_and_items.coffee, app/modules/inventory/lib/filters.coffee, app/modules/inventory/lib/items_filtered.coffee, app/modules/inventory/lib/items_per_pages.coffee, app/modules/inventory/lib/layout.coffee, app/modules/inventory/lib/transactions.coffee, app/modules/inventory/models/item.coffee, app/modules/inventory/plugins/item_actions.coffee, app/modules/inventory/plugins/item_updaters.coffee, app/modules/inventory/side_nav/lib/headers.coffee, app/modules/inventory/side_nav/views/side_nav.coffee, app/modules/inventory/side_nav/views/templates/list_header.hbs, app/modules/inventory/side_nav/views/templates/public_list.hbs, app/modules/inventory/side_nav/views/templates/side_nav.hbs, app/modules/inventory/side_nav/views/templates/user_group_link.hbs, app/modules/inventory/side_nav/views/templates/user_menu.hbs, app/modules/inventory/side_nav/views/templates/user_menu_general.hbs, app/modules/inventory/side_nav/views/templates/user_menu_group.hbs, app/modules/inventory/side_nav/views/templates/user_profile.hbs, app/modules/inventory/side_nav/views/templates/user_profile_bio.hbs, app/modules/inventory/side_nav/views/user_profile.coffee, app/modules/inventory/views/add/add_layout.coffee, app/modules/inventory/views/add/templates/add_layout.hbs, app/modules/inventory/views/comment.coffee, app/modules/inventory/views/controls.coffee, app/modules/inventory/views/form/item_creation.coffee, app/modules/inventory/views/form/templates/button_group.hbs, app/modules/inventory/views/form/templates/item_creation.hbs, app/modules/inventory/views/inventory.coffee, app/modules/inventory/views/inventory_welcome.coffee, app/modules/inventory/views/item_comments.coffee, app/modules/inventory/views/item_figure.coffee, app/modules/inventory/views/item_row.coffee, app/modules/inventory/views/item_show.coffee, app/modules/inventory/views/item_transactions.coffee, app/modules/inventory/views/items_grid.coffee, app/modules/inventory/views/items_list.coffee, app/modules/inventory/views/no_item.coffee, app/modules/inventory/views/templates/comment.hbs, app/modules/inventory/views/templates/comment_edit_menu.hbs, app/modules/inventory/views/templates/controls.hbs, app/modules/inventory/views/templates/inventory.hbs, app/modules/inventory/views/templates/inventory_welcome.hbs, app/modules/inventory/views/templates/item_comments.hbs, app/modules/inventory/views/templates/item_details.hbs, app/modules/inventory/views/templates/item_figure.hbs, app/modules/inventory/views/templates/item_mixed_box.hbs, app/modules/inventory/views/templates/item_note.hbs, app/modules/inventory/views/templates/item_notes_lock.hbs, app/modules/inventory/views/templates/item_request_box.hbs, app/modules/inventory/views/templates/item_row.hbs, app/modules/inventory/views/templates/item_show.hbs, app/modules/inventory/views/templates/item_transaction_box.hbs, app/modules/inventory/views/templates/item_transactions.hbs, app/modules/inventory/views/templates/item_user_box.hbs, app/modules/inventory/views/templates/item_visibility_box.hbs, app/modules/inventory/views/templates/items_grid.hbs, app/modules/inventory/views/templates/items_list.hbs, app/modules/inventory/views/templates/no_item.hbs, app/modules/inventory/views/templates/remove_item.hbs, app/modules/map/lib/build_marker.coffee, app/modules/map/lib/config.coffee, app/modules/map/lib/custom_icon.coffee, app/modules/map/lib/draw.coffee, app/modules/map/lib/map.coffee, app/modules/map/lib/navigator_position.coffee, app/modules/map/map.coffee, app/modules/map/views/position_picker.coffee, app/modules/map/views/position_welcome.coffee, app/modules/map/views/templates/group_marker.hbs, app/modules/map/views/templates/map_welcome.hbs, app/modules/map/views/templates/position_picker.hbs, app/modules/map/views/templates/position_picker_button.hbs, app/modules/map/views/templates/user_marker.hbs, app/modules/network/collections/groups.coffee, app/modules/network/lib/aggregate_users_ids.coffee, app/modules/network/lib/group_actions.coffee, app/modules/network/lib/group_form_data.coffee, app/modules/network/lib/group_helpers.coffee, app/modules/network/lib/groups.coffee, app/modules/network/lib/groups_search.coffee, app/modules/network/lib/nearby_layouts.coffee, app/modules/network/lib/network_tabs.coffee, app/modules/network/lib/update_query_route.coffee, app/modules/network/models/group.coffee, app/modules/network/network.coffee, app/modules/network/plugins/group.coffee, app/modules/network/plugins/users_search.coffee, app/modules/network/views/create_group_layout.coffee, app/modules/network/views/friends_layout.coffee, app/modules/network/views/group.coffee, app/modules/network/views/group_board.coffee, app/modules/network/views/group_board_header.coffee, app/modules/network/views/group_settings.coffee, app/modules/network/views/groups_layout.coffee, app/modules/network/views/groups_list.coffee, app/modules/network/views/groups_search_layout.coffee, app/modules/network/views/invite_friends.coffee, app/modules/network/views/nearby_groups_layout.coffee, app/modules/network/views/nearby_users_layout.coffee, app/modules/network/views/network_layout.coffee, app/modules/network/views/no_group.coffee, app/modules/network/views/tabs.coffee, app/modules/network/views/templates/create_group_layout.hbs, app/modules/network/views/templates/friends_layout.hbs, app/modules/network/views/templates/group.hbs, app/modules/network/views/templates/group_actions.hbs, app/modules/network/views/templates/group_board.hbs, app/modules/network/views/templates/group_board_header.hbs, app/modules/network/views/templates/group_board_section.hbs, app/modules/network/views/templates/group_position_setting.hbs, app/modules/network/views/templates/group_settings.hbs, app/modules/network/views/templates/group_show.hbs, app/modules/network/views/templates/group_stats.hbs, app/modules/network/views/templates/groups_layout.hbs, app/modules/network/views/templates/groups_list.hbs, app/modules/network/views/templates/groups_search_layout.hbs, app/modules/network/views/templates/invite_friends.hbs, app/modules/network/views/templates/nearby_layout.hbs, app/modules/network/views/templates/nearby_users_layout.hbs, app/modules/network/views/templates/network_layout.hbs, app/modules/network/views/templates/network_sub_tabs.hbs, app/modules/network/views/templates/no_group.hbs, app/modules/network/views/templates/searchability.hbs, app/modules/network/views/templates/tabs.hbs, app/modules/network/views/templates/users_search_layout.hbs, app/modules/network/views/users_search_layout.coffee, app/modules/notifications/collections/notifications.coffee, app/modules/notifications/lib/notifications_types.coffee, app/modules/notifications/models/friend_accepted_request.coffee, app/modules/notifications/models/group_notification.coffee, app/modules/notifications/models/new_comment_on_followed_item.coffee, app/modules/notifications/models/notification.coffee, app/modules/notifications/notifications.coffee, app/modules/notifications/views/no_notification.coffee, app/modules/notifications/views/notification_li.coffee, app/modules/notifications/views/notifications_layout.coffee, app/modules/notifications/views/notifications_list.coffee, app/modules/notifications/views/templates/friend_accepted_request.hbs, app/modules/notifications/views/templates/group_notification.hbs, app/modules/notifications/views/templates/new_comment_on_followed_item.hbs, app/modules/notifications/views/templates/no_notification.hbs, app/modules/notifications/views/templates/notifications_layout.hbs, app/modules/notifications/views/templates/see_all.hbs, app/modules/redirect.coffee, app/modules/search/search.coffee, app/modules/search/views/find_by_isbn.coffee, app/modules/search/views/results_list.coffee, app/modules/search/views/search.coffee, app/modules/search/views/templates/find_by_isbn.hbs, app/modules/search/views/templates/results_list.hbs, app/modules/search/views/templates/search.hbs, app/modules/settings/lib/periodicity_days.coffee, app/modules/settings/settings.coffee, app/modules/settings/views/labs_settings.coffee, app/modules/settings/views/notifications_settings.coffee, app/modules/settings/views/profile_settings.coffee, app/modules/settings/views/settings.coffee, app/modules/settings/views/templates/email_me_when.hbs, app/modules/settings/views/templates/labs_settings.hbs, app/modules/settings/views/templates/notifications_settings.hbs, app/modules/settings/views/templates/password_update_input.hbs, app/modules/settings/views/templates/profile_settings.hbs, app/modules/settings/views/templates/settings.hbs, app/modules/transactions/collections/timeline.coffee, app/modules/transactions/collections/transactions.coffee, app/modules/transactions/helpers.coffee, app/modules/transactions/lib/actions_data.coffee, app/modules/transactions/lib/apply_side_effects.coffee, app/modules/transactions/lib/cancellable_states.coffee, app/modules/transactions/lib/folders.coffee, app/modules/transactions/lib/format_snapshot_data.coffee, app/modules/transactions/lib/info_partials.coffee, app/modules/transactions/lib/next_actions.coffee, app/modules/transactions/models/action.coffee, app/modules/transactions/models/message.coffee, app/modules/transactions/models/transaction.coffee, app/modules/transactions/transactions.coffee, app/modules/transactions/views/event.coffee, app/modules/transactions/views/no_transaction.coffee, app/modules/transactions/views/request_item_modal.coffee, app/modules/transactions/views/templates/action.hbs, app/modules/transactions/views/templates/info/accept_request_lending.hbs, app/modules/transactions/views/templates/info/accept_request_one_way.hbs, app/modules/transactions/views/templates/info/waiting_confirmation_one_way.hbs, app/modules/transactions/views/templates/message.hbs, app/modules/transactions/views/templates/no_transaction.hbs, app/modules/transactions/views/templates/request_item_modal.hbs, app/modules/transactions/views/templates/transaction.hbs, app/modules/transactions/views/templates/transaction_preview.hbs, app/modules/transactions/views/templates/transactions_layout.hbs, app/modules/transactions/views/templates/transactions_list.hbs, app/modules/transactions/views/templates/transactions_welcome.hbs, app/modules/transactions/views/transaction.coffee, app/modules/transactions/views/transaction_preview.coffee, app/modules/transactions/views/transactions_layout.coffee, app/modules/transactions/views/transactions_list.coffee, app/modules/transactions/views/transactions_welcome.coffee, app/modules/user/lib/auth.coffee, app/modules/user/lib/change_user_picture.coffee, app/modules/user/lib/email_tests.coffee, app/modules/user/lib/password_tests.coffee, app/modules/user/lib/recover_user_data.coffee, app/modules/user/lib/request_logout.coffee, app/modules/user/lib/solve_lang.coffee, app/modules/user/lib/user_language_update.coffee, app/modules/user/lib/user_listings.coffee, app/modules/user/lib/user_menu_update.coffee, app/modules/user/lib/user_update.coffee, app/modules/user/lib/username_tests.coffee, app/modules/user/models/main_user.coffee, app/modules/user/user.coffee, app/modules/user/views/forgot_password.coffee, app/modules/user/views/login.coffee, app/modules/user/views/login_persona.coffee, app/modules/user/views/reset_password.coffee, app/modules/user/views/signup_classic.coffee, app/modules/user/views/templates/forgot_password.hbs, app/modules/user/views/templates/language_picker.hbs, app/modules/user/views/templates/login.hbs, app/modules/user/views/templates/login_persona.hbs, app/modules/user/views/templates/password_input.hbs, app/modules/user/views/templates/reset_password.hbs, app/modules/user/views/templates/signup_classic.hbs, app/modules/user/views/templates/valid_email_confirmation.hbs, app/modules/user/views/valid_email_confirmation.coffee, app/modules/users/collections/users.coffee, app/modules/users/helpers.coffee, app/modules/users/invitations.coffee, app/modules/users/lib/remote_queries.coffee, app/modules/users/lib/search.coffee, app/modules/users/models/user.coffee, app/modules/users/models/user_commons.coffee, app/modules/users/plugins/relations_actions.coffee, app/modules/users/requests.coffee, app/modules/users/users.coffee, app/modules/users/users_collections.coffee, app/modules/users/users_data.coffee, app/modules/users/views/no_user.coffee, app/modules/users/views/templates/no_user.hbs, app/modules/users/views/templates/user_li.hbs, app/modules/users/views/user_li.coffee, app/modules/users/views/users_list.coffee, app/modules/welcome/lib/mentions.coffee, app/modules/welcome/lib/show_last_public_items.coffee, app/modules/welcome/views/joyride_welcome_tour.coffee, app/modules/welcome/views/templates/credits.hbs, app/modules/welcome/views/templates/embedded_welcome.hbs, app/modules/welcome/views/templates/joyride_add.hbs, app/modules/welcome/views/templates/joyride_conclusion_one.hbs, app/modules/welcome/views/templates/joyride_conclusion_two.hbs, app/modules/welcome/views/templates/joyride_network.hbs, app/modules/welcome/views/templates/joyride_settings.hbs, app/modules/welcome/views/templates/joyride_tip.hbs, app/modules/welcome/views/templates/joyride_welcome_tour.hbs, app/modules/welcome/views/templates/landing_screen.hbs, app/modules/welcome/views/templates/last_public_books.hbs, app/modules/welcome/views/templates/login_buttons.hbs, app/modules/welcome/views/templates/mentions.hbs, app/modules/welcome/views/templates/mission.hbs, app/modules/welcome/views/templates/social_networks.hbs, app/modules/welcome/views/templates/welcome.hbs, app/modules/welcome/views/welcome.coffee] => public/javascripts/app.js +307ms
  brunch:common Writing public/javascripts/app.js +384ms
  brunch:common Writing public/javascripts/app.js.map +175ms
07 Mar 16:13:26 - info: compiled api.coffee and 491 cached files into app.js in 972ms

api/api compiled empty

Hope that can help. I still got to try to just re-clone the repo into a separate fresh directory as suggested by @goshakkk , will try to do that asap

@maxlath
maxlath commented Mar 8, 2016

after re-cloning the repo:

  • I couldn't reproduce, yet, the first bug on templates/confirmation_modal that use to occur after the first compilation (either with watch or build)
  • I did reproduce the second bug involving fs and the api/api.coffee file
@goshakkk
Member
goshakkk commented Mar 8, 2016

@maxlath I've tried to run this script on a dead-simple brunch skeleton during brunch watch, a few times however, couldn't reproduce it

@paulmillr paulmillr closed this Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment