-
Notifications
You must be signed in to change notification settings - Fork 131
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
Error while creating CSS assets file #116
Comments
Actually you need to install sass (http://www.sass-lang.com/install) and no longer need lessc. I forgot to update the doc, I'll do it. |
After npm install -g sass Then I visit localhost:8080 2020-06-06T18:07:03.958+0800 INFO logging/logging.go:98 {"module": "server", "status": 303, "method": "GET", "path": "/", "ip": "::1", "latency": "116.43µs"} |
Is i.e. does |
If yes, can you send me the full stacktrace in the log ? |
sass -version |
my go version hexya server -o After visit localhost:8080 log 2020-06-08T22:52:36.444+0800 INFO logging/logging.go:98 {"module": "server", "status": 303, "method": "GET", "path": "/", "ip": "::1", "latency": "184.857µs"} 2020/06/08 22:52:37 [Recovery] 2020/06/08 - 22:52:37 panic recovered: Error while creating CSS assets file /Users/foo/work/gopath/pkg/mod/github.com/hexya-erp/[email protected]/src/tools/logging/logging.go:74 (0x16084a0) 2020/06/08 22:52:37 [Recovery] 2020/06/08 - 22:52:37 panic recovered: Error while creating CSS assets file /Users/foo/work/gopath/pkg/mod/github.com/hexya-erp/[email protected]/src/tools/logging/logging.go:74 (0x16084a0) 2020-06-08T22:52:37.138+0800 INFO logging/logging.go:98 {"module": "server", "status": 304, "method": "GET", "path": "/static/web/src/img/hexya_logo_tiny.png", "ip": "::1", "latency": "274.582µs"} |
Hexya tries to create the CSS bundle in the temp dir given by os.TempDir() which defaults to $TMPDIR or "/tmp" if $TMPDIR is not set. Does the directory exist and do you have write access on it ? |
After set $TMPDIR, when visit localhost:8080 , _web_assets_common.css and _web_assets_frontend.css two files are created in $TMPDIR, but they are empty . log Error while creating CSS assets file /Users/foo/work/gopath/pkg/mod/github.com/hexya-erp/[email protected]/src/tools/logging/logging.go:74 (0x16084a0) .............. |
Strange. The sass command doesn't return anything. You should have a |
Yes , res has data,demo,i18n,resources,static, five directories. |
any solution for that it's a big issue |
It seems to work only with dart-sass (https://github.com/sass/dart-sass/releases) and not ruby sass |
When I run hexya server -o
Please wait, Hexya is starting ...
If I visit loclahost:8080
I got errors
2020/06/05 18:56:58 [Recovery] 2020/06/05 - 18:56:58 panic recovered:
Error while creating CSS assets file
error : unable to read input: write |1: broken pipe
.......
The text was updated successfully, but these errors were encountered: