-
Notifications
You must be signed in to change notification settings - Fork 66
Fail to view student contributions #337
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
Comments
Hi David, you should be able to inspect students' contributions by a middle-click on the student identifier. Can you tell me how you are running your learn-ocaml instance? |
Hi Yann Régis, Yes, I can open the window of the contributions of one student (as you indicate). But no contribution is displayed. I have the message "No assigned or open exercises found". But I use the "Demo of the exercise environment" and the student (another account) has realized the corresponding exercise. I run the learn-ocaml instance locally with : learn-ocaml serve --port 8080, and I first make the exercise with a student account, and finally I enter the teacher mode with the teacher account (where I can see the student but not his contributions). Thanks again for your help. David. |
It is probably due to the permissions of the If you run the command from the demo-repository of the git repository, then learn-ocaml must have created a |
I run learn-ocaml in a directory with the following content: drwxrwxr-x 5 delahaye delahaye 4096 janv. 6 15:21 my-learn-ocaml-repository The content of "my-learn-ocaml-repository" is actually the same as the demo-repository in the git repository. I provide all the permissions to the "sync" directory but the synchronization still fails. Should I change the owner as well? |
You should run learn-ocaml from inside the my-learn-ocaml-repository
directory.
…On Mon, Jan 6, 2020 at 3:34 PM delahayd ***@***.***> wrote:
I run learn-ocaml in a directory with the following content:
drwxrwxr-x 5 delahaye delahaye 4096 janv. 6 15:21 my-learn-ocaml-repository
drwxrwxrwx 4 delahaye delahaye 4096 juin 15 2019 sync
drwxr-xr-x 9 delahaye delahaye 4096 juin 15 2019 www
The content of "my-learn-ocaml-repository" is actually the same as the
demo-repository in the git repository. I provide all the permissions to the
"sync" directory but the synchronization still fails. Should I change the
owner as well?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#337?email_source=notifications&email_token=AADNQ3Z7DT3TLPECNOGICVLQ4M6PNA5CNFSM4KDELE4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIFTLKI#issuecomment-571159977>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADNQ35COEBCM4TMIT57MT3Q4M6PNANCNFSM4KDELE4A>
.
|
It does not work because once built, I must launch the server in the directory where I have the "www" directory. Otherwise, I have the following error in the browser: "Error: Unix.Unix_error(Unix.ENOENT, "open", "./www/index.html")". Anyway, after the app for a given exercise repository has been built (with "learn-ocaml build"), I guess it is not used anymore, right? |
The synchronization works only when something has changed, otherwise I have an error. Here is the trace of the server (the first synchronization works but the second fails): 2020-01-06T15:00:24Z 127.0.0.1 POST /sync?token=GBS-TOK-D1T-JHJ |
I see. This is definitely a bug. |
Sorry for having accidentally closed the issue. |
@delahayd Can you try now? |
The bug of synchronization with no change is solved, thanks a lot. However, I still fail to find the contributions of a student. The window opens when I select a given student but I have the message "No assigned or open exercises found" while the demo exercise pack is marked as opened in the teacher account and while the student has realized the exercises and saved his changes with the synchronization button. I guess I do something wrong but I do not know what. Any idea? Thanks again for your help. |
I found the bug and I am working on a fix. For the moment, what you can do as a workaround is to mark the exercise as "closed" (do not forget to click on "apply") and mark it back to "open" (and again do not forget to click on "apply".) |
Great! The workaround you indicate works perfectly, thanks. Do not hesitate to tell me when the bug will have been fixed. Thanks again for your quick support. |
Closed by #439 |
Hi,
I fail to view the student contributions when I am in the teacher mode. I can see the registered students but I cannot see the exercises they realized. I guess the students have to make a synchronization and the teacher as well right? But even with the synchronization, it does not work. May be, it is due to some problems of synchronization I have when the Git copy is clean (nothing to commit) and for which I obtain the following message in Learn OCaml : "HTTP error (500): Error: Internal Server Error". Could you help me?
Thanks a lot for your help.
All the best,
David.
The text was updated successfully, but these errors were encountered: