SublimeText / CoffeeScript

Syntax highlighting and checking, commands, shortcuts, snippets, watched compilation and more.
440 stars 64 forks source link

Sublime not recognizing the package #158

Closed Boughtmanatee5 closed 2 months ago

Boughtmanatee5 commented 10 years ago

So I'm not really sure how to describe this issue. It might be an issue with Sublime or the Package manager itself, but this morning when I started sublime it gave me an error saying it couldn't find the Better CoffeeScript Package. Which has happened before and usually is solved by restarting Sublime, except this time when sublime reloaded I still didn't have the Coffescript Syntax. So I rebooted my computer, and still no syntax. Now here's where it got weird. I uninstalled the package and closed sublime. Upon reopening sublime I was greeted with the Better Coffeescript readme and I noticed the Better Coffeescript package had been added to my installed packages folder, but still no syntax. So I thought wow that was weird. So then I uninstalled the package again, closed sublime, then rebooted my computer thinking starting with a clean slate would help, but again once the computer rebooted and I opened sublime I was greeted with the Better Coffeescript readme and the package installed itself. Has anyone else had a problem like this or is my Sublime haunted?

aponxi commented 10 years ago

Back when Vista came out, I would sometimes get blank screens when booting. I would think that the OS failed and restart bunch of times until it booted correctly. Turns out that this was happening only when it was installing updates before the desktop started. I would have noticed it the first time if I had been just a bit patient! :blush:

Do you think this happens when it's updating? Maybe simply waiting could solve the problem. Logically the package might not exist if it's in between uninstall and install... and the syntax disappearing is a known issue when it's updating.

dcsan commented 10 years ago

i had this today - files stopped getting recognized and "better coffeescript" no longer shows as an option on the file types menu. how do people go about debugging the package install process? is there a logfile of which packages are failing?

this morning i updated the (mac) OS to OS-X 10.9.4 so i wonder if that's related.

ebaizel commented 10 years ago

I am seeing the same. OSX 10.9.4. Better Coffeescript never appears in the Install Package results. Using Sublime Text 3. I've tried deleting the Package Control.sublime-package and restarting Sublime Text but nothing changes.

dcsan commented 10 years ago

i updated a machine at home to 10.9.4 and i am still able to use coffee there, so it doesn't seem directly related to that upgrade... but this is driving me to webstorm!

tommituura commented 10 years ago

I just had this problem too, on Sublime Text 3 on Ubuntu 14.04 (using xubuntu-desktop). Better CoffeeScript showed up on Package Control's package list but it didn't seem to recognize filename extension or give coffeescript as an option in menu.

I removed and re-installed from package control and then restarted Sublime Text. Then I restarted Sublime Text again, and on second restart it just started to work again. So for me the problem seems to have gone away from now but I'll have to hope it doesn't come back...

Glavin001 commented 10 years ago

I am also experiencing this issue, Better CoffeeScript does not appear when searching for packages to install. I am on Sublime Text build 3065 and just reinstalled the Package Control a few minutes ago. I hope this can be resolved soon / work-around provided.

Boughtmanatee5 commented 10 years ago

I've been having this Issue on and off recently. It seems like it depends what side of the bed Sublime wakes up on, but every time it happens I remove the Better Coffeescript package, then Reinstall it, and restart sublime and it's back up. Maybe this will work for you @Glavin001.

Glavin001 commented 10 years ago

Thanks for your recommendation, @Boughtmanatee5.

Unfortunately, I don't have Better CoffeeScript installed such that I can remove it, and I'm not sure how to install it without being able to find it when search in "Install Package" menu. I just tried installing from source, however that did not work and CoffeeScript language support/syntax highlighting still is not showing up.

I am running into the issue that @ebaizel had: https://github.com/aponxi/sublime-better-coffeescript/issues/158#issuecomment-49043138

Better Coffeescript never appears in the Install Package results.

markalfred commented 10 years ago

@Glavin001 could you try clearing your package control cache?

Go to: Preferences > Package Settings > Package Control > Settings - User

And add the line

"cache_length": 30,

Then try Install Packages again. This will trigger a cache clear, as you'll see in the console.

Package Control: Settings change detected, clearing cache

(You'll probably want to remove this setting after trying this)

Glavin001 commented 10 years ago

Thanks @markalfred.

My Package Control.sublime-settings file now looks like:

{
    "installed_packages":
    [
        "AngularJS (CoffeeScript)",
        "AutoPEP8",
        "Better CoffeeScript",
        "Handlebars",
        "JSHint",
        "JSHint Gutter",
        "Sass"
    ],
    "repositories":
    [
        "https://github.com/wbond/sublime_package_control.git"
    ],
    "cache_length": 30
}

I notice I do have Better CoffeeScript shown under installed. Maybe when I manually installed by source (without package control) it worked? However, I am still unable to see CoffeeScript syntax highlighting.

Update: Turns out it was a "disabled package"! I do not know why, however I opened the Package Control and selected Package Control:Enable Package and then selected Better CoffeeScript it began to load!

renatocarvalho commented 10 years ago

@Glavin001's solution solved my problem. I have never disabled Better CoffeeScript. But for some reason it was disabled. Using latest version of Sublime 3.

markalfred commented 10 years ago

The most recent comments seem to be the same issue described here...

http://stackoverflow.com/a/18178163/2488003