tvooo / sublime-grunt

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

Still can't see grunt tasks sometimes when I change between projects #69

Closed mascardoso closed 5 years ago

mascardoso commented 10 years ago

Hi I keep having this error.

Traceback (most recent call last): File ".\sublimeplugin.py", line 339, in run return self.run() File ".\main.py", line 132, in run File ".\main.py", line 16, in init File ".\main.py", line 80, in list_gruntfiles File ".\main.py", line 90, in choose_file TypeError: No registered converter was able to produce a C++ rvalue of type class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > from this Python object of type list

Was this already fixed?

Thanks

tvooo commented 10 years ago

Don't think so, I've never seen this error in the wild. Anything specific to reproduce it? After changing projects?

mascardoso commented 10 years ago

Hi tvooo. Sorry, I forgot to post here the solution to my problem.

The problem was code syntax on both gruntfiles.

On both of them when I defined the default task I had like this:

grunt.registerTask('default', ['jshint'], ['uglify'], ['sass']);

and it should be like this:

grunt.registerTask('default', ['jshint','uglify','sass']);

After that it worked perfectly.

You can close the issue. And by the way this is a awesome and useful plugin. Thanks for that.

tvooo commented 10 years ago

Hey,

it's still an issue; if grunt returns with something non-valid, we need to catch it, so thanks for the heads up. And for the nice words :)

Cheers

tvooo commented 5 years ago

Repository was moved to https://github.com/sptndc/sublime-grunt Please re-file any issues that still exist.