jekyll-theme-hpstr icon indicating copy to clipboard operation
jekyll-theme-hpstr copied to clipboard

Scss encountered an error while converting 'assets/css/style.scss'

Open benisameme opened this issue 6 years ago • 5 comments

Hey, I'm getting an error with my build, what am I doing wrong? Configuration file: /builds/benisameme/test-project/_config.yml Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly. Source: /builds/benisameme/test-project Destination: public Incremental build: disabled. Enable with --incremental Generating... Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/style.scss': Invalid US-ASCII character "\xE2" on line 5 jekyll 3.5.2 | Error: Invalid US-ASCII character "\xE2" on line 5 Full log: https://gitlab.com/benisameme/test-project/-/jobs/34394548 Repo: https://gitlab.com/benisameme/test-project/tree/master assets/css/main.scss: https://gitlab.com/benisameme/test-project/blob/master/assets/css/main.scss

benisameme avatar Sep 28 '17 17:09 benisameme

Looks like an encoding issue. Probably has more to do with how you have your Ruby environment setup than anything related to the theme's files.

Give this thread on jekyll/jekyll a look.

mmistakes avatar Sep 29 '17 14:09 mmistakes

Alright, Thanks! (sorry for the late reply)

benisameme avatar Oct 04 '17 20:10 benisameme

I encountered the same issue and solved to create style.scss file filled below content in assets/css folder.

---
---

@charset "UTF-8";

winterjung avatar Oct 31 '17 14:10 winterjung

My jekyll build is being done by AWS CodeBuild, and I found I needed to add these lines to the buildspec.yml file:

  pre_build:
    commands:
      - export LC_ALL="C.UTF-8"
      - export LANG="en_US.UTF-8"
      - export LANGUAGE="en_US.UTF-8"

dltj avatar Jan 11 '18 23:01 dltj

Same problem here with a post-receive hook which had ever worked fine. I reported some details on Stackoverflow.

I solved by adding at the top of my hook.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Not sure it is the best option.

floatingpurr avatar Oct 10 '18 00:10 floatingpurr