y-takey / atom-mermaid

Preview mermaid on atom editor
MIT License
42 stars 7 forks source link

Howto Mermaid Preview? #9

Closed orschiro closed 8 years ago

orschiro commented 8 years ago

Dear @y-takey,

Thank you very much for taking the effort to develop this atom package!

I would love to use the mermaid preview. However, I cannot seem to get it work.

I installed the package on the latest version of Atom on Ubuntu 15.04.

I selected the following code and from the menu launched Toggle Mermaid Preview without any rendered result:

%% Example code
graph LR
    id1(Start)-->id2(Stop)
    style id1 fill:#f9f,stroke:#333,stroke-width:4px;
    style id2 fill:#ccf,stroke:#f66,stroke-width:2px,stroke-dasharray: 5, 5;

image

Am I missing something out which is not covered in the README yet?

Thankfully,

Robert

y-takey commented 8 years ago

Dear @orschiro, Thanks

I tried that code on the latest version of Atom(1.0.18), atom-mermaid(0.1.3) and Mac OSX(10.10.5). but it rendered.

2015-09-25 9 23 16

Could you try the following?

1.) more simple code. e.g.)

  graph LR   
    id1-->id2   

2.) uninstall the atom-mermaid and reinstall it.

orschiro commented 8 years ago

Dear @y-takey,

Thanks for your help! I followed your advice and reinstalled the package but now it outputs me the following error:

Atom Version: 1.0.19 System: Ubuntu 15.04 Thrown From: atom-mermaid package, v0.1.3

Stack Trace

Failed to activate the atom-mermaid package

At Module did not self-register.

Error: Module did not self-register.
    at Error (native)
    at Object.module.(anonymous function) (ATOM_SHELL_ASAR.js:137:20)
    at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:137:20)
    at Module.load (module.js:353:32)
    at Function.Module._load (module.js:308:12)
    at Module.require (module.js:363:17)
    at require (module.js:382:17)
    at bindings (/home/orschiro/.atom/packages/atom-mermaid/node_modules/d3/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/home/orschiro/.atom/packages/atom-mermaid/node_modules/d3/node_modules/jsdom/node_modules/contextify/lib/contextify.js:1:96)
    at Module._compile (module.js:428:26)

Commands

     -0:04.3.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:02.9.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:01.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:00.6.0 atom-mermaid:toggle (atom-text-editor.editor)

Config

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

Installed Packages

# User
atom-mermaid, v0.1.3
autocomplete-bibtex, v0.6.1
language-todotxt, v0.6.1
markdown-scroll-sync, v0.4.2
typewriter, v0.3.4

# Dev
No dev packages
y-takey commented 8 years ago

Dear @orschiro,

Did you close preview tab and reboot the atom editor? Please attempt if you didn't. The issue seems to occur when the old atom-package is running.

orschiro commented 8 years ago

Dear @y-takey,

Apologise for the late response. I sense that I face a more general issue with the installation of the package. Upon installation I receive the error that the package cannot self-register. Subsequently, it doesn't show up under installed packages but when searching under Installing new package, it is shown as installed.

To cover the issue in its entirety, I created the following screencast.

~ Robert

mermaid-preview-2015-10-04_09.32.31.mkv | uploaded via ZenHub

y-takey commented 8 years ago

Sorry for the delay.
As your say, It looks like general issue.

You can get other the mermaid editor(works on cross-platform) if you need.

I would be glad if I could help you even just a little.

orschiro commented 8 years ago

Dear @y-takey,

Thank you! I will give them a try. :+1:

~ Robert