Skip to content
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

Add setting for student readonly access to execution files #93

Open
t-schroeder opened this issue Oct 30, 2019 · 4 comments
Open

Add setting for student readonly access to execution files #93

t-schroeder opened this issue Oct 30, 2019 · 4 comments

Comments

@t-schroeder
Copy link
Contributor

It would be nice if you could specify for a VPL instance which of the execution files the students should be able to see (in readonly mode). Similar to the page "Files to keep when running".

@jcrodriguez-dis
Copy link
Owner

jcrodriguez-dis commented Oct 31, 2019

Hi,
the way we manage this is adding the "execution file" to the "required file" adding comments to indicating the student that any change in this file has no effect.
Notice that the execution file will overwrite the student's file. Of course, the execution file may differ from the file shown as "required file" to the students.
Best regards,
Juan Carlos.

@jcrodriguez-dis
Copy link
Owner

The enhancement may be to detect this case ("required file" with the same name as "execution file") and mark it, at the editor, as read-only.

@t-schroeder
Copy link
Contributor Author

Hi Juan Carlos,

thanks for sharing your workaround and for clarifying how it works. I think we can use the same workaround for our case.

I agree with your suggestion to add a special handling for when there's an execution and required file with the same name.

Regards,
Tim

@jcrodriguez-dis
Copy link
Owner

From VPL 4.2.0

  • Read-only files in the IDE:
    Files appearing in both "required files" and "execution files" are viewed as read-only by students. Although students can view the "required file", they cannot modify it. The "execution files" version is used during run, evaluation, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants