Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8

オープン
#192 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby, scss

調査の方向性

manifest.js で application.css と application.css.scss エントリをリンクした状態で失敗を再現し、その後、報告されたパスを execjs/encoding.rb と autoprefixer-rails/processor.rb を通して追跡します。CSS リンクを削除した場合、および空のスタイルシートの場合の動作と比較します。CSS リンクによって encoding エラーが発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hello, just by installing gem 'bootstrap', '~> 4.4.0' (previous version gem 'bootstrap-sass', '3.3.6') I'm getting the following error:

Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
/home/user/.rvm/gems/ruby-2.7.1@project/gems/execjs-2.7.0/lib/execjs/encoding.rb:22:in `encode'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/execjs-2.7.0/lib/execjs/encoding.rb:22:in `encode'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:8:in `initialize'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:in `new'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:in `compile'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/execjs-2.7.0/lib/execjs/module.rb:27:in `compile'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails/processor.rb:160:in `runtime'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails/processor.rb:36:in `process'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails/sprockets.rb:20:in `run'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails/sprockets.rb:14:in `call'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:84:in `call_processor'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `reverse_each'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `call_processors'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:182:in `load_from_unloaded'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:59:in `block in load'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:43:in `load'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/cached_environment.rb:44:in `load'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/bundle.rb:32:in `block in call'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/bundle.rb:31:in `call'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:84:in `call_processor'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:66:in `block in call_processors'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `reverse_each'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/processor_utils.rb:65:in `call_processors'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:182:in `load_from_unloaded'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:59:in `block in load'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:337:in `fetch_asset_from_dependency_cache'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/loader.rb:43:in `load'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/cached_environment.rb:44:in `load'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/base.rb:81:in `find_asset'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/base.rb:88:in `find_all_linked_assets'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/sprockets-4.0.2/lib/sprockets/manifest.rb:125:in `block (2 levels) in find'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/safe_task_executor.rb:19:in `execute'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/promise.rb:531:in `block in realize'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/home/user/.rvm/gems/ruby-2.7.1@project/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'

manifest.js:

//= link application.css
//= link application.js

If I remove //= link application.css the error goes away, but if I empty the application.css.scss file the error remains.

主要言語
SCSS
スター
2k
フォーク
437
平均マージ
1時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

twbs/bootstrap-rubygem のほかの issue

twbs/bootstrap-rubygem の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。