I just released a new version of the application based on a user’s feature request and to fix a minor bug. If none of these changelog items apply to your workflow you can safely keep using the old version:
Added support for sending HTTP GET requests to http://localhost:53135/play to trigger “Play All Testcases” on CodinGame. This works regardless of what Auto Play is set to in CG Local’s settings.
Fixed the “Open CodinGame” button on Linux systems that don’t have the GNOME libraries installed.
The app keeps disconnecting me. I start working on a puzzle and the app is connected and syncs my code, and after working on it a bit, I see that the connection was shut down and the code no longer syncs.
@DrDeath it disconnects for me as well. First the sync works for a few minutes, then it stops. I tried both Brave and Chrome browsers. It was working well during the Summer Contest in Brave. I am getting the following message in the console when disconnect happens:
10:15:32 [WebSocketSelector-166] INFO: com.jaspervanmerle.cglocal.server.Server.onWsClose(Server.kt:58) - /[0:0:0:0:0:0:0:1]:55324 closed a connection
10:15:32 [WebSocketSelector-166] INFO: com.jaspervanmerle.cglocal.server.Server.onWsClose(Server.kt:61) - Application became available again
10:15:32 [AWT-EventQueue-0] INFO: com.jaspervanmerle.cglocal.util.Utilities.setCenter(utilities.kt:27) - Placing DisconnectedView in the center of MainView
10:15:32 [AWT-EventQueue-0] INFO: com.jaspervanmerle.cglocal.util.Utilities.setStatus(utilities.kt:56) - Changing status to 'Listening on port 53135'
Same problem as above and very similar console output.
On Firefox browser and this happens after updating cg extension today.
Previous version worked properly.
Disconnects within seconds.
Console output:
13:44:56 [WebSocketSelector-22] INFO: com.jaspervanmerle.cglocal.server.Server.onWsClose(Server.kt:58) - null closed a connection
13:44:56 [WebSocketSelector-22] INFO: com.jaspervanmerle.cglocal.server.Server.onWsClose(Server.kt:61) - Application became available again
13:44:56 [AWT-EventQueue-0] INFO: com.jaspervanmerle.cglocal.util.Utilities.setCenter(utilities.kt:27) - Placing DisconnectedView in the center of MainView
13:44:56 [AWT-EventQueue-0] INFO: com.jaspervanmerle.cglocal.util.Utilities.setStatus(utilities.kt:56) - Changing status to 'Listening on port 53135'
I was forced to make some changes to avoid the extension from getting disabled for Chrome users. I tested syncing on Chrome and Firefox and it still worked, but apparently I didn’t test syncing for long enough because I can also reproduce the connection from being broken after a few minutes.
I’m working on a fix, but I don’t know the root cause yet and don’t have a lot of time today. In the mean time, Firefox users can install the previous version by clicking “Download file” underneath version 1.1.1 on the CG Local version history page and then confirming you want to add the add-on when the pop-up shows.
I can no longer get this to work at all, in either chrome or firefox. In addition to the disconnects after a few seconds on the latest version, which downgrading to 1.1.1 does fix on firefox, both the latest and 1.1.1 also are just not syncing the file. It shows it connects fine, and the codingame ide goes to read-only, but it doesn’t actually upload anything to the codingame ide or download to the synced file.
This is a very useful tool, thank you for making it!