favish / atom-drupal

Drupal snippets, filetypes and hotkeys for the Atom Editor
MIT License
28 stars 14 forks source link

Promise.done is deprecated. #16

Open RishiKulshreshtha opened 7 years ago

RishiKulshreshtha commented 7 years ago

Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done

Promise.done (C:\Users\rishi_kulshreshtha\AppData\Local\atom\app-1.14.2\resources\app.asar\src\atom-environment.js:1203:5)
Object.activate (C:\Users\rishi_kulshreshtha\.atom\packages\atom-drupal-1.8.0\lib\drupal.coffee:6:29)
Package.activateNow (C:\Users\rishi_kulshreshtha\AppData\Local\atom\app-1.14.2\resources\app.asar\src\package.js:218:19)
<unknown> (C:\Users\rishi_kulshreshtha\AppData\Local\atom\app-1.14.2\resources\app.asar\src\package.js:190:32)
Package.measure (C:\Users\rishi_kulshreshtha\AppData\Local\atom\app-1.14.2\resources\app.asar\src\package.js:96:15)
<unknown> (C:\Users\rishi_kulshreshtha\AppData\Local\atom\app-1.14.2\resources\app.asar\src\package.js:183:26)
robballou commented 7 years ago

I believe this was fixed in https://github.com/favish/atom-drupal/issues/15

Please check if you have any updates available and let us know if that resolves this for you.