{"action":"created","issue":{"url":"https://api.github.com/repos/racket/handin/issues/17","labels_url":"https://api.github.com/repos/racket/handin/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/racket/handin/issues/17/comments","events_url":"https://api.github.com/repos/racket/handin/issues/17/events","html_url":"https://github.com/racket/handin/issues/17","id":59907819,"number":17,"title":"Handin loses language info on submit","user":{"login":"albertxing","id":2881206,"avatar_url":"https://avatars.githubusercontent.com/u/2881206?v=3","gravatar_id":"","url":"https://api.github.com/users/albertxing","html_url":"https://github.com/albertxing","followers_url":"https://api.github.com/users/albertxing/followers","following_url":"https://api.github.com/users/albertxing/following{/other_user}","gists_url":"https://api.github.com/users/albertxing/gists{/gist_id}","starred_url":"https://api.github.com/users/albertxing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertxing/subscriptions","organizations_url":"https://api.github.com/users/albertxing/orgs","repos_url":"https://api.github.com/users/albertxing/repos","events_url":"https://api.github.com/users/albertxing/events{/privacy}","received_events_url":"https://api.github.com/users/albertxing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-05T05:35:31Z","updated_at":"2015-09-10T12:23:12Z","closed_at":null,"body":"When a student submits a file, the language is reset - the three metadata lines that DrRacket inserts are not sent to the server. This is particularly annoying since our course sends out grading packages, and the graders currently have to manually set the language for each submission (we use the HTDP languages)\r\n\r\nOne potential fix that I've tested is to save the definitions text to a temporary file, then read from the temporary file. This is more of a workaround since there's no way to save to a byte string instead of a file.\r\n\r\nI can submit a rough patch for this, but I suspect this might be a wontfix. Thoughts?"},"comment":{"url":"https://api.github.com/repos/racket/handin/issues/comments/139218386","html_url":"https://github.com/racket/handin/issues/17#issuecomment-139218386","issue_url":"https://api.github.com/repos/racket/handin/issues/17","id":139218386,"user":{"login":"Blaisorblade","id":289960,"avatar_url":"https://avatars.githubusercontent.com/u/289960?v=3","gravatar_id":"","url":"https://api.github.com/users/Blaisorblade","html_url":"https://github.com/Blaisorblade","followers_url":"https://api.github.com/users/Blaisorblade/followers","following_url":"https://api.github.com/users/Blaisorblade/following{/other_user}","gists_url":"https://api.github.com/users/Blaisorblade/gists{/gist_id}","starred_url":"https://api.github.com/users/Blaisorblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Blaisorblade/subscriptions","organizations_url":"https://api.github.com/users/Blaisorblade/orgs","repos_url":"https://api.github.com/users/Blaisorblade/repos","events_url":"https://api.github.com/users/Blaisorblade/events{/privacy}","received_events_url":"https://api.github.com/users/Blaisorblade/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T12:23:12Z","updated_at":"2015-09-10T12:23:12Z","body":"I got this to work for me (at least for the first test). More testing is needed, but it's progress.\r\n\r\nI had to update a checker though, to accept the language annotation and specify the right language the same way it is sent. But the impact is limited:\r\n\r\n```\r\ndiff --git a/01-draw-a-picture/checker.rkt b/01-draw-a-picture/checker.rkt\r\nindex 1a6adea..74765e8 100644\r\n--- a/01-draw-a-picture/checker.rkt\r\n+++ b/01-draw-a-picture/checker.rkt\r\n@@ -4,7 +4,7 @@\r\n   (define (error* fmt . args)\r\n     (raise-user-error (apply format fmt args)))\r\n \r\n-  (check: :language 'lang/htdp-beginner\r\n+  (check: :language '(module (lib \"htdp-beginner.ss\" \"lang\"))\r\n           :requires '(2htdp/image)\r\n           :users (lambda (users) (values))\r\n           :create-text? #f\r\n\r\n```"}}