atom-elastic-tabstops icon indicating copy to clipboard operation
atom-elastic-tabstops copied to clipboard

Failed to activate the elastic-tabstops package

Open hax opened this issue 8 years ago • 17 comments

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.0-beta3 x64 Electron: 1.6.9 OS: Mac OS X 10.12.5 Thrown From: elastic-tabstops package 1.1.3

Stack Trace

Failed to activate the elastic-tabstops package

At Cannot read property 'updateTileNodes' of undefined

TypeError: Cannot read property 'updateTileNodes' of undefined
    at observeEditor (/Users/hax/repo/working/elastic-tabstops/lib/elastic-tabstops.js:43:24)
    at Workspace.observeTextEditors (/Applications/Atom Beta.app/Contents/Resources/app/src/workspace.js:717:15)
    at Object.activate (/Users/hax/repo/working/elastic-tabstops/lib/elastic-tabstops.js:18:18)
    at Package.module.exports.Package.activateNow (/Applications/Atom Beta.app/Contents/Resources/app/src/package.js:253:25)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/package.js:225:38
    at Package.module.exports.Package.measure (/Applications/Atom Beta.app/Contents/Resources/app/src/package.js:99:21)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/package.js:218:32
    at Package.module.exports.Package.activate (/Applications/Atom Beta.app/Contents/Resources/app/src/package.js:215:40)
    at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom Beta.app/Contents/Resources/app/src/package-manager.js:645:40)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/package-manager.js:626:35
    at Config.module.exports.Config.transactAsync (/Applications/Atom Beta.app/Contents/Resources/app/src/config.js:346:24)
    at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom Beta.app/Contents/Resources/app/src/package-manager.js:621:25)
    at PackageManager.module.exports.PackageManager.activate (/Applications/Atom Beta.app/Contents/Resources/app/src/package-manager.js:603:52)
    at /Applications/Atom Beta.app/Contents/Resources/app/src/atom-environment.js:843:36

Commands

Non-Core Packages

activate-power-mode 2.0.0 
atom-jade 0.3.0 
atom-ternjs 0.18.3 
atom-typescript 11.0.3 
blame 0.12.0 
coffee-refactor 0.7.0 
debug 0.0.1 
declarations 1.1.3 
declarations-js 1.0.2 
editorconfig 2.2.2 
elastic-tabstops 1.1.3 
file-icons 2.1.7 
hyperclick 0.0.40 
intentions 1.1.2 
js-refactor 0.7.5 
language-babel 2.65.0 
language-javascript-semantic 0.2.1 
line-ending-converter 1.3.2 
linter 2.1.4 
linter-php 1.3.2 
php-cs-fixer 4.1.0 
php-debug 0.2.4 
php-integrator-annotations 1.1.1 
php-integrator-autocomplete-plus 1.5.0 
php-integrator-base 2.1.12 
php-integrator-call-tips 1.2.1 
php-integrator-linter 1.3.0 
php-integrator-navigation 1.1.2 
php-integrator-refactoring 1.3.1 
php-integrator-tooltips 1.1.5 
refactor 0.11.4 
remote-sync 4.1.5 
Stylus 3.1.0 

hax avatar Jul 20 '17 10:07 hax

This is due to the new 1.19.0 rewrite of editor internal apis. Will be fixed (totally rewrite) next month.

hax avatar Jul 29 '17 21:07 hax

I got this update of Atom now on Ubuntu... how is the rewrite going? I can not live without elastic tabstops. :)

lillem4n avatar Aug 18 '17 00:08 lillem4n

Start working on it.

See https://github.com/hax/atom-elastic-tabstops/tree/atom-1.19 There are some bugs, but should work in normal cases.

hax avatar Aug 21 '17 08:08 hax

Will this soon be released to the normal apm-thingie so I can install it directly from Atom and not from source?

lillem4n avatar Aug 26 '17 13:08 lillem4n

@lillem4n Sorry, I'm busy on some public presentations and other tech events recent weeks, so do not have enough time to release a stable version until 10th Sept.

hax avatar Aug 31 '17 05:08 hax

That means it is comming! Most awesome! Thanks! \o/

lillem4n avatar Aug 31 '17 11:08 lillem4n

催更!😂

joy-yu avatar Sep 24 '17 13:09 joy-yu

Is that issue updated?

Smiler94 avatar Sep 28 '17 05:09 Smiler94

Is that issue updated?

charsen avatar Sep 30 '17 03:09 charsen

I just updated Atom to 1.21 and it fail there as well.

lillem4n avatar Oct 19 '17 12:10 lillem4n

Confirmed in 1.22 as well, if it helps. :)

lillem4n avatar Nov 28 '17 15:11 lillem4n

The problem is still there, can you give us a short update on the progress?

Spunky84 avatar Dec 29 '17 19:12 Spunky84

Hello, guys!

Today I decided to install Atom for the first time to try it out. (Yesterday, actually, since now it’s over midnight.)

As I tend to do in the rare occasions I install a new text editor, I looked up for an elastic tabstops plugin in the hope of finally being able to make use of the concept.

I was thoroughly pleased to find this package, so I hurriedly installed it with high hopes. Unfortunately, it crashed on installation, and Atom linked me to this very issue that hasn’t been touched in several months.

I was quite frustrated about it; I really wanted to make use of elastic tabstops. But I did not give up, I decided to download the code from branch atom-1.19 to see if it would work only to find out that it didn’t either.

That did not stop me, however. I put my quite lacking hacking skills to use and started to hack around the source.

I will stop narrating my little misadventures now as the rest is about what you’d expect. But, in conclusion, I was able to fix the broken version at atom-1.19 to make it work on the newest version of Atom.

I will be attaching the fixed files in this very comment so you guys can rejoice too.

Here are the steps to use the fixed version correctly:

  • Download the zip file from the atom-1.19 branch.
  • Unzip it as elastic-tabstops-new or some other meaningful name.
  • Download the files from this comment.
  • Put the files you’ve downloaded from this comment into the lib folder of the elastic-tabstops-new folder, replacing the existing files from that folder.
  • From the elastic-tabstops-new folder, run npm install.
  • Put the elastic-tabstops-new folder into the ~/.atom/packages folder in your computer.
  • If you don’t have Atom open, open it.
  • If you do have Atom open, open the Command Palette and activate the Window: Reload command.
  • Rejoice!

Edit:

I forgot to mention it, but there are still some issues around positioning the caret and toggling the feature off with the given keyboard shortcut, but I’m not sure if I’m knowledged enough to fix those. Either way, if I end up finding anything, I’ll be sure to share it here.

zamfofex avatar Mar 04 '18 04:03 zamfofex

Sorry, I do not have enough time for this project in last several months.

@Zambonifofex if you could submit your fixes as a PR, I would like to merge it and republish a new version.

hax avatar Mar 04 '18 18:03 hax

@hax, done: #26.

zamfofex avatar Mar 04 '18 19:03 zamfofex

New version released, hope it work. Thank you @Zambonifofex

hax avatar Mar 04 '18 20:03 hax

Seems to sill have some issues: https://github.com/hax/atom-elastic-tabstops/issues/27

BramEsposito avatar Apr 11 '18 09:04 BramEsposito