Bjornej / GruntLauncher

A vspackage that adds the possibility to launch Grunt tasks
MIT License
40 stars 11 forks source link

No context menu visible #3

Open onkeltoob opened 11 years ago

onkeltoob commented 11 years ago

Heyho and first of all thanks for the effort, this will hopefully turn out to be a very useful add-on. I'm having the same problem as described in issue #2, there are no Grunt entries in the context menu. I did, however install the latest version 1.0.0.1 from here (even though it says 1.0 in my "Extensions and Updates..." window) and I'm using a capitalised Gruntfile.js. I don't really know what further information to provide, but here's a Gist with my Gruntfile.js: https://gist.github.com/papatoob/c4983755444faaa2a22e

Do you have any idea what might be going wrong? Grunt itself seems to run fine, at least it's doing what I wanted.

Thanks in advance, Tobi

Bjornej commented 11 years ago

I've tried your gruntfile on my computer and it works so it's being parsed correctly by the plugin. File name is not a problem, I've changed it to accept both Gruntfile.js and gruntfile.js.

What version of visual studio are you using and what operating system?

Do you have some special characters in the path to the gruntfile?

onkeltoob commented 11 years ago

Good morning.

I'm using Visual Studio 2012 Premium (11.0.60610.01 Update 3) on Windows 7 Professional Service Pack 1.

I actually had an underscore in the file path (which in this context wouldn't really be a special character), but the problem persisted after clearing it.

Bjornej commented 11 years ago

Hi,

I've not tested the plugin with update 3 but I don't suppose that's the problem.

When i get home tonight I'll build a debug version of the package with output enabled for you to try so we can try to pinpoint what exactly goes wrong.

Bjornej commented 11 years ago

I've added debugging output to the package and created a debug build. If you could uninstall the currently installed package and install this I can try to pinpoint the problem by looking at the output

onkeltoob commented 11 years ago

Thanks a lot for your support. I'll be back at work on monday and will try that immediately.

onkeltoob commented 11 years ago

Did that and got the following output:

Initializing package
Adding command
Command Added
Bjornej commented 11 years ago

Ok so the package is being initialized correctly.

When you right-click on gruntfile.js in the solution explorer is something else printed to the output window?

onkeltoob commented 11 years ago

Sorry for letting you wait so long, I wasn't in the office yesterday. No, when right-clicking my gruntfile.js nothing else is printed to the output window.

Bjornej commented 11 years ago

No problem.

In regards to your problem It seems that the event that controls the visibility of the commands (BeforeQueryStatus) in the solution explorer context menu is not being fired which is really strange and I'm not able to reproduce the problem. Can you tell me what other exxtensions you have installed?

onkeltoob commented 11 years ago

Here's a list:

I first suspected the last one to be a problem since it also provides some right-click menu entries. But as I stated, deactivating did not change anything.

Actually this is not a very big deal for me, I have already gotten used to the "command line grunting". But if you want to figure it out anyway I will of course try to contribute.

Bjornej commented 11 years ago

Those extensions are safe, I have all of them installed except for the Color Theme Editor. I thought you had something like Power tools installed which are much more invasive.

I'm stumped about this bug, I will try to make some research about this problem but I'm not sure it will be simple.

Thank you for your patience .

db commented 10 years ago

Looks like similar issue here.

Context menu has "Grunt" and "Grunt: Cannot parse Gruntfile".

VS2012.4 GruntLauncher 1.2 Node 0.10

Bjornej commented 10 years ago

Your problem is different, if the command "Grunt: Cannot parse Gruntfile" is present it means that the plugin is unable to parse the Gruntfile to identify the possible options.

Can you send me your gruntfile so I can correct the parser?

db commented 10 years ago

Thank you for the prompt feedback. I dont have access to the system with the issue now, but its gruntfile was based on the below template. I tried various simplifications of it without narrowing down the issue.

https://github.com/db/generator-minimalbase/blob/master/app/templates/_gruntfile.js

Bjornej commented 10 years ago

Ok, I think I've spotted the problem.

When I get home I'll modify the parser and create you an ad-hoc build to try

Bjornej commented 10 years ago

Ok I think I've solved the problem. Can you uninstall your currently installed plugin and try this ?

If the problem is solved I'll update the gallery package too.

db commented 10 years ago

Works great. Thanks.

Bjornej commented 10 years ago

Published on visual studio gallery

madskristensen commented 10 years ago

This issue can probably be closes

u84six commented 9 years ago

Hi, I'm also having this issue with the gruntfile parsing. It works with the grunt command line but doesn't work with the extension.