jimp-dev/jimp

jimp.read is failing silently in a grunt task

開放

#852 建立於 2020年3月9日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (785 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (13,218 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Expected Behavior

When you call jimp.read, then jimp.read.then or jimp.read.catch are called.

Current Behavior

If jimp.read is called in a grunt task, then neither jimp.read.then or jimp.read.catch are called. If you call jimp.read in the node repl or in a node script, it works normally.

$ node
Welcome to Node.js v13.7.0.
Type ".help" for more information.
> var test = require( './test' );
undefined
> test();
attempting resize
running resize task
Promise { undefined }
> jimp.read success
image processing success!
received buffer, great news!

> 
(To exit, press ^C again or ^D or type .exit)
> 
$ grunt test
Running "test" task
Resizing
attempting resize
running resize task

Done.
$ 

Failure Information (for bugs)

See above.

Steps to Reproduce

$ git clone https://github.com/mattpen/jimp-grunt-test.git $ cd jimp-grunt-test $ npm install $ grunt test

Screenshots

N/A, either an image is generated or it isn't.

Context

  • Jimp Version: 0.9.5
  • Operating System: MacOS 10.14.6
  • Node version: 13.7.0

Failure Logs

No log output was produced by jimp.

貢獻者指南