Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgumentError: invalid byte sequence in UTF-8 #370

Open
belgoros opened this issue Dec 22, 2015 · 3 comments
Open

ArgumentError: invalid byte sequence in UTF-8 #370

belgoros opened this issue Dec 22, 2015 · 3 comments
Labels

Comments

@belgoros
Copy link

I got this error when following the setup steps on a Windows 8 PC in Bash GUI shell:

$ rake ember:install --trace
** Invoke ember:install (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute ember:install
rake aborted!
ArgumentError: invalid byte sequence in UTF-8
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/core_ext/string/strip.rb:23:in `scan'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/activesupport-4.2.5/lib/active_support/core_ext/string/strip.rb:23:in `strip_heredoc'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember_cli/runner.rb:22:in `run!'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember_cli/shell.rb:68:in `exec'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember_cli/shell.rb:40:in `install'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember_cli/app.rb:69:in `install_dependencies'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember-cli-rails.rb:67:in `block in each_app'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember-cli-rails.rb:67:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember-cli-rails.rb:67:in `each_app'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/ember-cli-rails.rb:38:in `install_dependencies!'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ember-cli-rails-0.6.0/lib/tasks/ember-cli.rake:14:in `block (2 levels) in <top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/task.rb:240:in `call'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/task.rb:240:in `block in execute'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/task.rb:235:in `each'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/task.rb:235:in `execute'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/task.rb:179:in `block in invoke_with_call_chain'
C:/Ruby22-x64/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/task.rb:172:in `invoke_with_call_chain'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/task.rb:165:in `invoke'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:150:in `invoke_task'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:106:in `block (2 levels) in top_level'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:106:in `each'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:106:in `block in top_level'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:115:in `run_with_threads'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:100:in `top_level'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:78:in `block in run'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/Ruby22-x64/bin/rake:33:in `<main>'
Tasks: TOP => ember:install

Ember version:

$ ember -v
version: 1.13.13
node: 4.2.3
npm: 2.14.10
os: win32 x64

Here is th egenerated package.json file of the Rails app:

{
  "name": "frontend",
  "version": "0.0.0",
  "description": "Small description for frontend goes here",
  "private": true,
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "build": "ember build",
    "start": "ember server",
    "test": "ember test"
  },
  "repository": "",
  "engines": {
    "node": ">= 0.10.0"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "broccoli-asset-rev": "^2.2.0",
    "ember-cli": "1.13.13",
    "ember-cli-app-version": "^1.0.0",
    "ember-cli-babel": "^5.1.5",
    "ember-cli-content-security-policy": "0.4.0",
    "ember-cli-dependency-checker": "^1.1.0",
    "ember-cli-htmlbars": "^1.0.1",
    "ember-cli-htmlbars-inline-precompile": "^0.3.1",
    "ember-cli-ic-ajax": "0.2.4",
    "ember-cli-inject-live-reload": "^1.3.1",
    "ember-cli-qunit": "^1.0.4",
    "ember-cli-rails-addon": "0.7.0",
    "ember-cli-release": "0.2.8",
    "ember-cli-sri": "^1.2.0",
    "ember-cli-uglify": "^1.2.0",
    "ember-data": "1.13.15",
    "ember-disable-proxy-controllers": "^1.0.1",
    "ember-export-application-global": "^1.0.4"
  }
}

Any idea ? Thank you.

@seanpdoyle seanpdoyle added the OS label Dec 22, 2015
@seanpdoyle
Copy link
Contributor

@javix thanks for bringing this to our attention.

Unfortunately, I don't have a means of testing on Windows.

There is an outstanding PR (#291) to test against Windows using the AppVeyor CI service.

If you have Windows savvy (which I'm seriously lacking in), we would really appreciate some help getting that PR running and green.

Without that PR, we don't have a means of reliably testing Windows-base fixes. :(

@belgoros
Copy link
Author

@seanpdoyle: if you could supply some guide lines how to check that, I'd be glad to take a try. Should I get the the PR locally like that or there is another way ?

By the way, is it normal that ember -v displays such an old version (1.13.13), - Ember's release is already at 2.2.0.

@seanpdoyle
Copy link
Contributor

@javix thanks for offering to help!

Should I get the the PR locally like that or there is another way ?

That's a good way to get started. I've added a checklist to the AppVeyor PR

By the way, is it normal that ember -v displays such an old version (1.13.13), - Ember's release is already at 2.2.0.

That means your Ember CLI version is 1.13.13, which the latest stable release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants