klorenz / atom-regex-railroad-diagrams

display regex as railroad diagram, if cursor moves to it
MIT License
250 stars 31 forks source link

Does not show view on Atom 0.202.0 #42

Closed ypresto closed 9 years ago

ypresto commented 9 years ago

It does not show diagram view even when regex is under the cursor. Command palette does not show shortcut for toggling diagram too.

How to reproduce

  1. Install/update to Atom 0.202.0
  2. mv ~/.atom ~/.____atom # emulate clean install
  3. apm install regex-railroad-diagram
  4. atom
  5. Open coffeescript file
  6. Move cursor to regex
  7. Nothing happen
ypresto commented 9 years ago

It seems to be problem in atom.

> editor.bufferRangeForScopeAtCursor('.string.regexp')
Range {start: Point, end: Point, copy: function, negate: function, serialize: function…}
> editor.bufferRangeForScopeAtCursor('.regexp')
undefined
ypresto commented 9 years ago

It was destructive change on experimental api.

klorenz commented 9 years ago

I close this issue, it is outdated. (atom > 1.0)