Skip to content

Commit b7e12cb

Browse files
committed
add doc/faq.md Troubleshooting page; close PrairieLearn#185
1 parent 353a049 commit b7e12cb

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

ChangeLog.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
* Fix missing user list in dropdown after UID change.
2121

22+
* Add "Troubleshooting" documentation page with frequently asked questions.
23+
2224
* __1.16.1__ - 2015-10-12
2325

2426
* Fix alignment of date plots on Safari.

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ of a server component that presents questions and other data via an
66
API, and a web-app that interfaces with the user and communicates with
77
the server.
88

9-
[ChangeLog: versions of PrairieLearn with change list](https://github.com/PrairieLearn/PrairieLearn/blob/master/ChangeLog.md)
9+
* [ChangeLog: versions of PrairieLearn with change list](https://github.com/PrairieLearn/PrairieLearn/blob/master/ChangeLog.md)
1010

1111
## User Documentation
1212

13-
* [Overview](https://github.com/PrairieLearn/PrairieLearn/blob/master/doc/overview.md)
13+
* [Troubleshooting and other questions](https://github.com/PrairieLearn/PrairieLearn/blob/master/doc/faq.md)
14+
* [Overview of PrairieLearn](https://github.com/PrairieLearn/PrairieLearn/blob/master/doc/overview.md)
1415
* [Installing and running PrairieLearn on Linux or OS X](https://github.com/PrairieLearn/PrairieLearn/blob/master/doc/installingLinux.md)
1516
* [Installing and running PrairieLearn on Windows](https://github.com/PrairieLearn/PrairieLearn/blob/master/doc/installingWindows.md)
1617
* [PrairieLearn server configuration](https://github.com/PrairieLearn/PrairieLearn/blob/master/doc/serverConfig.md)

doc/faq.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
# Troubleshooting and other questions
3+
4+
5+
## My changes to a test don't show up
6+
7+
There are several actions needed to activate changes to tests while in development mode on your local computer:
8+
9+
1. Make sure the test changes are really saved to disk in the course directory that PrairieLearn is using.
10+
11+
1. Reload the server (Ctrl-C in the server window, then re-run `node server`).
12+
13+
1. Reload the PrairieLearn webpage in your browser.
14+
15+
1. If this is an "exam"-style test, then you need to "reset" the test to force PrairieLearn to re-randomize the test instance (click "Reset" on the test "Admin" page). See [Writing tests](writingTests.md) for details.
16+
17+
On the production server you only need to sync the new test code (on the "Sync" page). If you want existing test instances to be updated with the new code then you will need to reset the test (**but this will remove all existing progress by students on that test**).
18+
19+
## I changed a question but the changes aren't showing up
20+
21+
When you change a question it only affects newly-generated variants of the question. To make sure you are getting the new version of a question on your local computer:
22+
23+
1. Make sure the question changes are really saved to disk in the course directory that PrairieLearn is using.
24+
25+
1. Reload the server (Ctrl-C in the server window, then re-run `node server`).
26+
27+
1. Reload the PrairieLearn webpage in your browser.
28+
29+
1. If this is a "homework"-type style test then you should get the question wrong and click "Do this question again" to prompt the generation of a new question variant.
30+
31+
1. If this is an "exam"-style test then you need to "reset" the test to force PrairieLearn to regenerate the question instances (click "Reset" on the test "Admin" page). See [Writing tests](writingTests.md) for details.
32+
33+
On the production server you only need to sync the new question code (on the "Sync" page), and then force a regeneration of the question variant as described above.
34+
35+
36+
## How do I reset a test for a particular student?
37+
38+
The "Admin" page for each test allows you to reset a test for all users or for the current user. To reset a test for a particular student, first use the "User" page to change your the active user to the particular student, make sure you are still in the "Instructor" role, then go back to the test "Admin" page and click "Reset for current user". **Be very careful resetting tests after students have started working on them. Resetting will remove all progress by that student.**
39+
40+
41+
## How do I view PrairieLearn errors?
42+
43+
PrairieLearn errors are output in different places depending on where the error occurs:
44+
45+
* Server-side errors are output in the terminal window where you ran `node server`. Extra debugging information can be output here by adding `console.log()` statements inside question `server.js` files.
46+
47+
* Client-side errors are output in the JavaScript console inside your web browser. In Chrome, this can be accessed from the menu item *View → Developer → JavaScript Console*. Additional debugging information can be output here with `console.log()` from within question `client.js` files.

0 commit comments

Comments
 (0)