Skip to content
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

Uncaught TypeError: undefined is not a function #12

Open
rogerkk opened this issue Jul 26, 2015 · 0 comments
Open

Uncaught TypeError: undefined is not a function #12

rogerkk opened this issue Jul 26, 2015 · 0 comments

Comments

@rogerkk
Copy link

rogerkk commented Jul 26, 2015

Steps to reproduce:

  1. Create file names /tmp/test.txt, with the following contents
    @startuml version @enduml
    Contents chosen to have the bare minimum to see if I could get this thing working at all.
  2. Run the Plantuml: Generate action

I have tested running PlantUML manually and have been able to generate a png from the file in 1).

Atom Version: 1.0.2
System: Ubuntu 15.04
Thrown From: plantuml package, v0.1.2

Stack Trace

Uncaught TypeError: undefined is not a function

At /home/roger/.atom/packages/plantuml/lib/file-utils.coffee:35

TypeError: undefined is not a function
    at Function.module.exports.FileUtil.getPngFilename (/home/roger/.atom/packages/plantuml/lib/file-utils.coffee:51:23)
    at module.exports.FileUtil.getPngFilePath (/home/roger/.atom/packages/plantuml/lib/file-utils.coffee:23:30)
    at Object.module.exports.Plantuml.generate (/home/roger/.atom/packages/plantuml/lib/plantuml.coffee:35:25)
    at atom-workspace.subscriptions.add.atom.commands.add.plantuml:generate (/home/roger/.atom/packages/plantuml/lib/plantuml.coffee:17:26)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:241:29)
    at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/usr/share/atom/resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/usr/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-div.atom.commands.add.core:confirm (/usr/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:241:29)

Commands

     -2:06.6.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -2:05.4.0 core:save (atom-text-editor.editor.is-focused)
     -2:04.2.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -2:01.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -2:00.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -2:00.6.0 plantuml:generate (atom-text-editor.editor)
     -0:09.3.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:07.1.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:06.6.0 core:delete (atom-text-editor.editor.is-focused)
  2x -0:06.2.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:05.4.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:04.9.0 core:delete (atom-text-editor.editor.is-focused)
     -0:04.5.0 core:save (atom-text-editor.editor.is-focused)
     -0:02.4.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:00.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:00.5.0 plantuml:generate (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  }
}

Installed Packages

# User
atom-pair, v1.1.6
autoclose-html, v0.18.0
language-plantuml, v0.1.1
linter, v1.2.4
linter-ruby, v0.1.6
plantuml, v0.1.2

# Dev
No dev packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant