CodinGame Sync Beta

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 !

There is an “Edit with Emacs” extension for Chrome. I haven’t tested it yet, but I think it does what you want.

I dont see the button any more ?

I am using Chromium Version 57.0.2987.133 (64-bit) on Void Linux and I have the following error when I enable external editor:

Error in event handler for (unknown): TypeError: Cannot read property ‘URL’ of null
at chrome-extension://ldjnbdgcceengbjkalemckffhaajkehd/js/content.js:206:25

Lovin’ the extension! :smiley:
Quick question: will it be possible in the future to hide the editor while the plugin is active?
It’s kind of useless when it’s avalable in a separate window anyway.
It would be great to have the console/game output and the mission statement side-by-side instead.

1 Like

there is a greasemonkey script.

I had the same issue. Turned out I read too fast: you must install both the extension and the app (I thought it was some android app or something…).

Hi,
The “ON” button in “use external …” is disabled. I can push the “OFF” button - it turns blue, but when I click on “ON”, the “OFF” turns gray and the “ON” continues to be gray, disabled. Can’t get to the Choose file menu at all.
Please help.
Win10, Chrome 60.0.3112.90 (Official Build) (64-bit), Codingame ext v 1.1.1