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

Failed to activate the language-babel package #518

Open
WendyMin opened this issue Nov 16, 2018 · 10 comments
Open

Failed to activate the language-babel package #518

WendyMin opened this issue Nov 16, 2018 · 10 comments

Comments

@WendyMin
Copy link

WendyMin commented Nov 16, 2018

Can't auto Completion of JSX tags, elements and attributes.

Arguments to CompositeDisposable.add must have a .dispose() method

TypeError: Arguments to CompositeDisp

osable.add must have a .dispose() method
    at assertDisposable (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:1190530)
    at CompositeDisposable.add (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:1191498)
    at Object.consumeProvider (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:161432)
    at Object.consumeProvider_2 (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:161130)
    at Provider.t.exports.Provider.provide (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:14:1034525)
    at ServiceHub.t.exports.ServiceHub.provide (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:3027895)
    at Package.activateServices (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:3036081)
    at Package.activateNow (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:3033136)
    at measure (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:3032460)
    at Package.measure (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:3030091)
    at activationPromise.activationPromise.Promise (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:3032320)
    at new Promise (<anonymous>)
    at Package.activate (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:3032263)
    at PackageManager.activatePackage (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:379950)
    at C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:913945
    at r (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:11:908551)
    at o (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:14:1037432)
    at ChildProcess.n.process.on.e (C:\Users\mcw\AppData\Local\atom\app-1.32.2\resources\app\static\<embedded>:14:1037638)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
@WendyMin
Copy link
Author

Is anybody here to help me or have the same issue? :(

@billyjacoby
Copy link

billyjacoby commented Nov 22, 2018

Im having this same issue too...

@saulable
Copy link

Yep, my syntax highlighting is gone too.

@robin-macpherson
Copy link

Same here, I've been having this issue for the past few weeks :(

@telmogoncalves
Copy link

Same here. Have anyone figured out what's wrong?

@telmogoncalves
Copy link

Alright, this is pretty stupid, but I've found out that it keeps working just by changing the grammar to Babel.

Hope it helps.

@SamSteele01
Copy link

@telmogoncalves Can you elaborate on what you did?

@telmogoncalves
Copy link

@SamSteele01 on Atom, what I did is changing the grammar to Babel. On the bottom bar, you should see displaying what grammar the file you've opened is using.

@telmogoncalves
Copy link

If you're on Mac you can try this:

  1. ⌘ + ⇧ + P
  2. Type "grammar"
  3. Type "babel"
  4. Enter

@SamSteele01
Copy link

SamSteele01 commented Jan 10, 2019

@telmogoncalves Thanks for the reply. I figured that out after posting here. I didn't like having to do it every time I opened a file. Did some digging... References this issue. The tl;dr is to uncheck tree-sitter parsing in core settings. For me I also had to move the 'themes' array into the 'core' object in config.cson. Like so:

// .atom/config.cson

core:
   ...
   themes: [
     "one-dark-ui"
     "babel-react-syntax"
   ]

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

6 participants