peregrinogris / Grooveshark-Remote-Control

[DEPRECATED] A simple Firefox extension to remote control the new Grooveshark API from any webpage you're browsing.
https://addons.mozilla.org/en-US/firefox/addon/grooveshark-remote-control
22 stars 3 forks source link

Can't install add-on on Firefox 4.0b11 #18

Closed ozolinsh closed 13 years ago

ozolinsh commented 13 years ago

When trying to install add-on I receive following error message: "Grooveshark Remote Control could not be installed because Firefox cannot modify the needed file"

This happens with both versions 0.2 and 0.2.1

peregrinogris commented 13 years ago

Which OS are you using? May it be Windows XP? I think yesterday I hit that bug, but would like to confirm if is specific to XP.

ozolinsh commented 13 years ago

Yes, I am on Windows XP SP3

peregrinogris commented 13 years ago

Ok, then I know what the error is. It seems that some intermediate file of the installation process is being created with a name longer than the maximum supported length and then the installation process fails.

This is a shared bug I think with the AddonSDK:

Will talk to the jetpack folks and see what can be done. In the meantime, the workaround is to get the addon name the shortest pssible, so I'll update the addon name to gSharkRemCon that I think is safe.

olof-nord commented 13 years ago

I just tried to install it on windows XP x86 SP3 (through Virtualbox), and it worked just fine. Seems like I was lucky then?

ozolinsh commented 13 years ago

I guess this also because on my system %UserProfile% is already 56 chars

olof-nord commented 13 years ago

My %USERPROFILE% is only 30 chars. "echo %USERPROFILE%"

peregrinogris commented 13 years ago

Yes, but, for example the Firefox profile path is something like this:

C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\Profiles\3c2ucru5.Default User

That's 96 chars long, and just the win profile part is 37 chars long. Doing some rough calclations, I think that if the Firefox Profile dir is longer than 85chars, trying to install a trivial addon packaged with the AddonSDK will fail.

peregrinogris commented 13 years ago

There are two bugs (Bug 627607 and Bug 636268) on the jetpack side that have direct impact here, but as the main one (Bug 627607) is a pretty big modification, probably won't make it in the time needed to fix this. I think I'm going with the workaround, so at least the most common scenarios will be fixed.

peregrinogris commented 13 years ago

Fixed in fe8a911d8b2fdcbb7fc2e0393697f05f0d4f7fab

mpazss commented 13 years ago

still can't to install plugin. Any suggestion?

peregrinogris commented 13 years ago

@mpazss this is fixed in the development branch, but I can't spin a new version and make all the users upgrade just because an error that happens in some cases of an specific os version. The next version will include some new features that still need a bit of polish, so it'll take a week or so to be released.

mpazss commented 13 years ago

Ahora puedo instalar el addon. Muchas Gracias!!