mrohland / plantuml

Plantuml package for Atom Text Editor
MIT License
15 stars 6 forks source link

Object.require is deprecated. #19

Open zibo-wang opened 7 years ago

zibo-wang commented 7 years ago

Use remote.Dialog instead of remote.require("dialog")

Object.require (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:57:12)
Object.<anonymous> (/Users/Roger/.dotfiles/atom/packages/plantuml/lib/file-utils.coffee:8:19)
Object.<anonymous> (/Users/Roger/.dotfiles/atom/packages/plantuml/lib/file-utils.coffee:64:4)
Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:109:30)
Object..coffee (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:216:21)
Module.load (module.js:473:32)
caberham commented 7 years ago

Not sure if this helps!

whyvrafvr commented 7 years ago

Got the same installing plantuml package on Atom and then I got an issue trying to generate a plantuml : TypeError: Cannot read property 'file' of undefined at module.exports.FileUtil.prepareFile (/Users/jsie/.atom/packages/plantuml/lib/file-utils.coffee:9:8) at Object.generate (/Users/jsie/.atom/packages/plantuml/lib/plantuml.coffee:23:18) at atom-workspace.subscriptions.add.atom.commands.add.plantuml:generate (/Users/jsie/.atom/packages/plantuml/lib/plantuml.coffee:12:32) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29) at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59) at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19) at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1162:28) at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/application-delegate.js:312:25) at emitThree (events.js:116:13) at EventEmitter.emit (events.js:194:7)

iOrevir commented 7 years ago

I have no error message and do not understand the implications of this issue.

mxromero commented 7 years ago

hi, when ejecute code of uml on atom show me two message of "deprecated calls" and the warning is (" Use remote.Dialog instead of remote.require("dialog")"). do you have any solution of this problem because i don't see the diagram.

MatthiasHertel commented 7 years ago

i have the same issue