Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

workspace?sdk=1 isn't able to load installed plugin, 500 error #68

Open
Pike opened this issue Apr 16, 2015 · 7 comments
Open

workspace?sdk=1 isn't able to load installed plugin, 500 error #68

Pike opened this issue Apr 16, 2015 · 7 comments

Comments

@Pike
Copy link
Contributor

Pike commented Apr 16, 2015

I've installed my plugin, moz.xliff, and restarted

https://ide.c9.io/pike/fx-ios?sdk=1

That ends up trying to load

https://vfs-gce-usw-14-2.c9.io/vfs/1328547/plugins/2IyCKLY/UnenLdkUKo1D/moz.xliff/plugin.js

which ends up in CORS hell and returns a 500 error, with the message:

VFS method readfile is blocked in read only mode
@Pike
Copy link
Contributor Author

Pike commented Apr 16, 2015

CC @javruben

@steve-van-de-heuvel
Copy link

Any news on this or installing plugins on c9.io?

@javruben
Copy link

This should be fixed. Are you still experiencing issues?

@javruben
Copy link

UPDATE: This is not fixed. We're investigating now.

@nightwing
Copy link
Contributor

The way c9 extensions are published had changed a bit.

Now c9 publish minifies all files from the package and puts them into one file __installed__.js for better performance. So old extensions need to be updated to work.

c9 cli got two new commands:

  • c9 build which creates __installed__.js file without going through publish install cycle.
  • c9 build --devel which creates bootstrap __installed__.js file that loads plugin using the same method as ?debug=2

Unfortunately c9.io still has the old version of c9 cli - we'll update that in the next few days. You can install the new version by simply running npm install c9 -g and reopening terminal.

@Pike
Copy link
Contributor Author

Pike commented Apr 22, 2015

For folks that published their add-ons that also means we'll need to republish our addons, and in the workspaces, uninstall and install the plugin?

PS: Didn't find a way to update an installed plugin?

@nightwing
Copy link
Contributor

For folks that published their add-ons that also means we'll need to republish our addons

Yes

and in the workspaces, uninstall and install the plugin?

just installing again should work. In the future plugins will be updated automatically, but perhaps having c9 update as alias for install would be nice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants