Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working in production #2

Closed
alanhamlett opened this issue Mar 7, 2016 · 26 comments
Closed

not working in production #2

alanhamlett opened this issue Mar 7, 2016 · 26 comments
Labels

Comments

@alanhamlett
Copy link
Member

The Cloud9 plugin only works in dev mode when locally running the Cloud9 sdk.

It doesn't work in production yet. More info here:
https://groups.google.com/d/msg/cloud9-sdk/d7w5KaPEXI0/l5cx6onNAQAJ

@alanhamlett
Copy link
Member Author

Fixed on March 10th.

@rw251
Copy link

rw251 commented Mar 24, 2016

I still don't get prompted for an api key when using v2.0.3.

example

Let me know if there's anymore debugging info I can provide.

@alanhamlett
Copy link
Member Author

@rw251 are there any wakatime related errors in your Browser Console window when installing the plugin?

@alanhamlett alanhamlett reopened this Mar 24, 2016
@rw251
Copy link

rw251 commented Mar 24, 2016

Yes looks like there is. Below is copied from the browser console:

PubSub message: Object {channel: "/events/p/503524/37155", type: "package", action: "install", body: Object}
workspace-php.js:25154 PubSub package API message Object {channel: "/events/p/503524/37155", type: "package", action: "install", body: Object}
workspace-php.js:24799 Error: Plugin is missing the setup function {"wakatime":{"packagePath":"plugins/wakatime/wakatime"},"name":"wakatime","version":"2.0.3","apikey":"wAhcDqPc4t+95pIe6EHDekJY6R8="}
    at https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:183:137
    at Array.forEach (native)
    at checkConfig (https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:183:51)
    at https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:216:20
    at https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:270:95
    at _require (https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:63:27)
    at req (https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:45:45)
    at resolveConfig (https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:268:4)
    at Object.resolveConfig (https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:265:91)
    at Architect.loadAdditionalPlugins (https://cdn.c9.io/nc-3.1.1947-5a3efd86/config/workspace-php.js:214:222)

@alanhamlett
Copy link
Member Author

Just updated the issue with Cloud9:

https://groups.google.com/forum/#!msg/cloud9-sdk/d7w5KaPEXI0/l5cx6onNAQAJ

@nightwing
Copy link
Contributor

@rw251 do you still see the issue? this may be a race condition in the code loading the plugin for the first time.

@rw251
Copy link

rw251 commented Apr 4, 2016

Yes I still see this. I got the same error on 3 different c9 vm environments as well.

@ghost
Copy link

ghost commented Apr 18, 2016

I am also experiencing the issue where c9 does not prompt for the API key. However, the install clears successfully and I see no relevant errors on the Firefox Browser Console.

syntax error 2803125:1:1
PubSub message: Object { channel: "/events/p/2803125/934574", type: "package", action: "uninstall", body: Object } workspace-html5.js:7880:92
PubSub message: Object { channel: "/events/p/2803125/934574", type: "package", action: "install", body: Object } workspace-html5.js:7880:92
no element found

@samudary
Copy link

samudary commented Apr 19, 2016

Hi there,

Having the same issue when installing on C9. No prompt for the API key.

@nightwing
Copy link
Contributor

are you installing with ?debug=2 or without? ?debug=2 is only for development.

@rw251
Copy link

rw251 commented Apr 30, 2016

I'm not installing with ?debug=2.

@ghost
Copy link

ghost commented May 12, 2016

The production version of wakatime, when installed in Debug mode with c9 install wakatime works, with the Dialog box popping up. It also appears in C9>Preferences>Plugin Manager>Installed Plugins.

However, when working on non-debug mode, wakatime is not present in Installed Plugins. Running c9 install wakatime yields an "this folder already exists" error.

@ghost
Copy link

ghost commented May 28, 2016

I was able to get c9 install wakatime to work while in non-debug mode by going into C9 Gear/Preferences Icon > Experimental > SDK and turning on all three SDK options, Load Custom Plugin and Load Plugin from Workspace before running c9 install wakatime.

@rw251
Copy link

rw251 commented May 30, 2016

Yes that works for me too. I had previously installed wakatime and after enabing Load Custom Plugin and Load Plugin from Workspace, then refreshing the page led to the Email/Api pop up appearing.

@chocoelho
Copy link

I'm able to use wakatime when in debug mode, but when trying to install it normally, it throws this error:

<user>:~/workspace $ c9 install wakatime --force
Unknown Error getting api.c9.io/packages/wakatime/versions/3.0.2/download?access_token=<my_token>
<user>:~/workspace $ c9 install wakatime
WARNING: Directory not empty: /home/ubuntu/.c9/plugins/wakatime. Use --force to overwrite.

@chocoelho
Copy link

I've enabled both options Load Custom Plugin and Load Plugin from Workspace, but still, nothing happens(just the error message).

@emilgodsk
Copy link

Wakatime not installing on cloud9 - getting following errors:

"username":~/workspace $ c9 install wakatime
WARNING: Directory not empty: /home/ubuntu/.c9/plugins/wakatime. Use --force to overwrite.

"username":~/workspace $ c9 install wakatime --force
Unknown Error getting api.c9.io/packages/wakatime/versions/3.0.2/download?access_token=xxxxxxxxxxxxx:500

19 oct. 2016 - 13:50

@spences10
Copy link

Is this still broken? I tried installing yesterday and got the same errors as @egodsk and @chocoelho

Read through the Google groups posts and it doesn't seem like anyone got anywhere with it, is that a fair assumption?

@alanhamlett
Copy link
Member Author

alanhamlett commented Jan 30, 2017

#8 has manual install instructions that work, but only when your C9 IDE is in debug mode. I'll add those instructions to the readme soon.

@arishuynhvan
Copy link

Hi, this is still broken as of today

@alanhamlett
Copy link
Member Author

@arishuynhvan have you tried the manual install steps?

@arishuynhvan
Copy link

Thanks for making the manual install instructions. I've tried and it seemed to have installed, but somehow, the status was not updated in the wakatime dashboard when I work in c9 regardless of my debugging mode.

I think because I installed Wakatime extension for Chrome.
So I tried to launch c9 in Firefox, and the dashboard is now updated with Wakatime in the debug mode.
However, I think it may not update when I work in the non-debugging mode.

@alanhamlett
Copy link
Member Author

These new install instructions should help:
https://github.com/wakatime/c9-wakatime#installation

(Thanks to Luciendub https://community.c9.io/t/allow-wakatime-in-normal-mode/14815)

@spences10
Copy link

So this still doesn't work in normal mode?

The instructions say you need it in debug mode, I amended my init script then restarted c9 and there was no prompt to enter my api key

I'm a bit confused as to how to get this to work still, do I need to flit between debug and normal mode?

Seems a bit hacky

@alanhamlett
Copy link
Member Author

Debug mode should no longer be needed, using the latest instructions you can run the plugin in Normal mode.

@spences10
Copy link

Ok, when I 'restart' I use the restart button

image

After that I'm not prompted to enter my API key

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

No branches or pull requests

8 participants