thoughtbot / ember-cli-rails

Unify your EmberCLI and Rails Workflows
http://thoughtbot.github.io/ember-cli-rails/
MIT License
713 stars 206 forks source link

One-time deprecation error after starting the Rails server #472

Open gitconfig opened 8 years ago

gitconfig commented 8 years ago

Hi,

Every time I start the server with rails s and navigate to http://localhost I'm getting the following error:

EmberCli::BuildError in EmberCli::Ember#index

Showing /home/user/.rvm/gems/ruby-2.3.0/gems/ember-cli-rails-0.7.4/app/views/ember_cli/ember/index.html.erb where line # raised:

:frontend has failed to build: DEPRECATION: Overriding init without calling this._super is deprecated. Please call this._super.init && this._super.init.apply(this, arguments); addon: ember-cli-rails-addon

And in console there's more:

DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `ember-cli-rails-addon`

  at Function.Addon.lookup (frontend/node_modules/ember-cli/lib/models/addon.js:896:27)

DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `release`

  at frontend/node_modules/ember-cli/lib/models/project.js:404:38

This happens only once after starting the server. If I refresh, and for all consequent request this doesn't happen.

Which operating system and version is the project developed on? Linux arch 4.4.5-1-ARCH

Which version of ruby is the project developed on? ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]

Which version of npm is the project developed on? npm -v 3.9.6

Which version of ember-cli is the project developed on? ember -v ember-cli: 2.6.1 node: 5.9.1 os: linux x64

What is the rails version? Rails 4.2.6

What is the ember-cli-rails version (from Gemfile)? cat Gemfile.lock | grep ember ember-cli-rails (0.7.4) ember-cli-rails-assets (~> 0.6.2)

What is the ember-cli-rails-addon version (from package.json)? "ember-cli-rails-addon": "0.7.0"

Is your application server multi-threaded (such as puma and unicorn) or is it multi-process (such as thin and webrick)? webrick

What are the contents of config/initializers/ember.rb? EmberCli.configure do |c| c.app :frontend end

What are the contents of the Rails' view that renders the Ember application? unchanged

How are the EmberCLI-related routes defined? unchanged

How is the application deployed? not - relevant - on development.

seanpdoyle commented 8 years ago

@gitconfig thanks for opening this issue!

https://github.com/thoughtbot/ember-cli-rails/pull/468 might have resolved this.

Could you pull down master and try it out?

gitconfig commented 8 years ago

@seanpdoyle Thank you for the quick reply. I cloned from master and set up the local gem. But the problem persists.

Another thing that I just noticed - when hitting localhost:3000 then I'm getting the error, and only then I'm seeing the message:

Build successful - 1938ms.

Slowest Trees | Total
----------------------------------------------+--------------------- AutoprefixerFilter | 290ms
SassCompiler | 199ms
SourceMapConcat: Concat: Vendor /assets/ve... | 98ms

Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+--------------------- Babel (16) | 377ms (23 ms)
AutoprefixerFilter (1) | 290ms
SassCompiler (1) | 199ms
SourceMapConcat: Concat: Vendor /asset... (1) | 98ms

But if I change any source file and save it, then I see build recompilation immediately.

ghost commented 8 years ago

I'm experiencing the same issue (with 0.7.3). It was very painful when we worked on slower machines, we were forced to refresh a few times to be able to see app in browser :)

BTW On my system noticed significant improvement after upgrade ember-cli-htmlbars but still no ideal.