CodinGame Sync Beta

Many thanks!

Just my 5¢: on Windows you (I mean a user) might want to have a look at Text Editor Anywhere.
On Firefox (regardless of OS) — it’s all text (the browser extension).
These tools work on all sites (and TAE even in all applications such as Excel code editor) and may give you (the extension developer) some inspiration.

Nevertheless, thank you for the plugin :slight_smile:

Works quite well with Visual Studio Code!
Thanks for the extension :slight_smile:

Didn’t test extensively (in fact, I just installed it) but seems to work perfectly with Visual SlickEdit 2015 (v20.0.2.1 64-bit) in a Windows 10 environment.

Hi,

Thank you very much for [CG] Sync tool. It’s so nice !

Is there any plan to use Sync with Firefox ?

Thank you for your wonderful job !

1 Like

Is there a mozzilla app too??

CG Sync is not available for Firefox, but you can use this tool https://www.codingame.com/forum/t/greasemonkey-simple-file-to-ide-sync/862

Has anyone explored porting the Chrome extension to Firefox WebExtensions? I haven’t played with the API yet, but it’s supposed to be largely compatible with Chrome extension APIs. If there’s no effort going into this right now, maybe I’ll take an evening to explore this possibility. I have a decent amount of experience developing extensions for both Chrome and Firefox.

  • danBhentschel

Guys, do you plan to provide same functionality via REST API or CLI? That would be more convenient for dev integration.

4 Likes

Honestly REST API sounds like a great idea, the extension is nice but it’s really clumsy

1 Like

Works with Atom Editor (by Github)

Why not have a python/bash script that runs as a git post commit hook? There are a few reasons for this.
1 - Random junk is not posted to the site, it could have a syntax validation check, which is usually available in a local compiler
2 - Git commits are cheap and fast locally.
3 - Git diffs are cheaper over the wire in bandwidth terms than sending the whole file.
4 - A git clone for offline play might also be fun :slight_smile:
You could just as easily use registered key based auth (only for us editor types) and something behind native git tooling.

2 Likes

When I click “use an external code editor”, the “on” button doesn’t get highlighted, only “off” gets highlighted… and the sync plug-in icon is just gray out all the time in chrome… :frowning:
I have tried rebooting chrome.; any idea?

1 Like

I really like this extension. The only issue I have, is with the autoplay feature. For multiplayer bot programming it would make much more sense to automatically “replay in same conditions” instead of automatically playing in new game conditions.
As it is, I either have to turn off autoplay, or switch back to the online ide for debugging my code.

I think this little addition or change would improve it a lot for me :slight_smile:

2 Likes

Is there anyway to have a different source file for each challenge without having to change every time I switch from one to another ?

Can some one help me with this question?

It looks like, my IDE cannot receive the inputs.
I tried to have only one page open in codin.com and i used eclipse Luna

@_CG_SaiksyApo

You got some pretty neat answers already. CGSync only copy/paste your code from your IDE in the browser, nothing more. You can’t play the testcase and debug (step by step) in your IDE using CGSync.

but can i have the inputs?
i am not looking for test cases, but i need the inputs to start

You can’t have access to the input for the game with a TV (Thor, Descent…). For In/Out puzzle (Temperature), you can go your IDE settings and enable the Expert Mode, and you will be able to see the provided inputs and the expected output.

You can also go to the coding game ide option, set them to manual and now the plugin auto play will do the same as “replay in same conditions”

But still I agree that the plugin should trigger automatically the “replay in same conditions” without having to change the option every time.

Would it be possible to make an extension that works with any html textarea field (not necessary on coding game) that would be incredibly usefull !