tvooo / sublime-grunt

Moved to https://github.com/sptndc/sublime-grunt
296 stars 35 forks source link

[ST3] SublimeGrunt: Could not expose available tasks #19

Closed chadrien closed 11 years ago

chadrien commented 11 years ago

Just upgraded SublimeGrunt via Package Control in ST3, got this error when selecting "Grunt" from Command Palette.

There is no more debug info from ST3 console, only "Could not expose available tasks".

tvooo commented 11 years ago

Hey @chadrien , thanks for this. I am working on a solution right now. This happens because Grunt cannot find a JS file I inject to it, which is used to expose the available tasks.

Here's a workaround: Go to your Installed Packages folder and unzip (yes, it's actually a renamed zip file) the Grunt.sublime-package file.

chadrien commented 11 years ago

Here's what I tried:

Still got the same error.

This new system keeping compressed packages seems to be quite a mess :/

SpeCT commented 11 years ago
  • unzip it in the "Packages" folder (with and without keeping the compressed version).

@chadrien, this helped me. But task fetching process still takes about 3-5 secs to be done. Probably because of ~30 modules in my packages.json/devDependencies – all are for grunt and my custom tasks :anguished:

@tvooo thanks for the plugin, nice catch :+1:

rngadam commented 11 years ago

This isn't only on ST3, I installed on Sublime Text 2.0.2 on Ubuntu 13.04 and I'm seeing the same error: error: Could not expose available tasks

tvooo commented 11 years ago

@rngadam Then this is a completely different problem. Along with the error, a buffer with some output is generated. Can you please post that here? Thanks!

tvooo commented 11 years ago

@SpeCT Maybe some caching mechanism could work here. Do you want to create a new issue with that, marked as a feature request?

hammondo commented 11 years ago

was this ever resolved? I just installed ST3 on a clean Windows system and got the same message.

tlartaud commented 11 years ago

same here.

ef2k commented 11 years ago

Just had this issue installing to ST3. I resolved it by:

  1. Extract Grunt.sublime-package.zip. Find it in your Installed Packages directory.
  2. Make sure the extracted folder is named Grunt.
  3. Copy it into your Packages directory.

A minor annoyance is that Grunt will now appear twice in Sublime's command palette.

tvooo commented 11 years ago

@eddflrs You can "uninstall" the package via package manager, and it won't appear twice. But of course, this whole thing is just a workaround...sorry guys. ST3 is giving me headaches.

ef2k commented 11 years ago

:+1: thanks for the tip and hard work.