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

Suggestion to ignore package "JavaScript" causes error #266

Closed
jubalm opened this issue Jun 6, 2016 · 7 comments
Closed

Suggestion to ignore package "JavaScript" causes error #266

jubalm opened this issue Jun 6, 2016 · 7 comments

Comments

@jubalm
Copy link

jubalm commented Jun 6, 2016

Not recommending the use of tip here (Advanced usage), as it spits out the following error.

Error loading syntax file "Packages/JavaScript/JSON.sublime-syntax": Unable to read Packages/JavaScript/JSON.sublime-syntax

Better stick with the default syntax settings here.

@aaronromeo
Copy link

aaronromeo commented Aug 1, 2016

Same error here. It goes away once I remove the recommended addition of ignoring JavaScript.

@ghost
Copy link

ghost commented Aug 18, 2016

FWIW, I fixed this with a subset of the following:

  1. The important one: Associated all .json and .sublime-settings with Babel > JavaScript (Babel) (instead of Babel > JSON)
  2. (Not sure if this is necessary:) Closed all existing JSON files (.json & .sublime-settings)
  3. Restarted

@pksunkara
Copy link

But the syntax highlighting of JSON files go wonky if we do that.

@zertosh
Copy link
Member

zertosh commented Nov 28, 2016

I won't be recommending this anymore. I'll update the README after "re-rewrite babel-sublime" #293.

@zertosh zertosh closed this as completed Nov 28, 2016
@alopatin
Copy link

There's a really simple fix for this: Just copy the JSON.sublime-syntax file from Sublime Text.app/Contents/MacOS/Packages/JavaScript.sublime-package into ~/Library/Application Support/Sublime Text 3/Packages/User/.

For convenience, here is a gist with the extracted JSON.sublime-syntax file.

@jbruni
Copy link

jbruni commented Apr 3, 2017

Thanks, @alopatin
In my Ubuntu Linux install, the paths were:

  • source: /opt/sublime_text/Packages/JavaScript.sublime-package
  • destiny: ~/.config/sublime-text-3/Packages/User

@phil123456
Copy link

I dont get it, the file is already installed in the packages folder, wtf

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

7 participants