Part 1 (40 min - TA led)
Common Problems and Solutions
- I can click, but can't seem to change Java files in Eclipse.
Ans: You're looking at the file on the subversion server. You need to check-out the project to the local computer first. Right click on the project and select "Check-Out". Then use the Package view to select the file that you want to run or edit.
- I can edit the files but I can't run them!
Ans: You need to check out "Challenge1-DebugMe" as a project, not your netid.
- What do I need to do?
Ans: Read the "ReadMe" file inside the project.
- How do I finish?
Ans: Make sure you commit your project back to the server. Remember there must be no (red) compile errors anywhere in your project.
- I have a compile error in TextIO.java.
Ans: Change the compiler settings to 1.6
- I have a compile error in a test class.
Ans: These classes call your code. Modify your code to fix the test's expectations.
- I'm lost dazed and confused.
Ans: Seek help from the course assistants.
- How do I work with two computers?
Ans: Before finishing today, COMMIT your changes back to subversion. When going back to a different computer use UPDATE to bring in the latest changes from subversion.
Lab assistants will:
- Checking out the project.
- Running a unit tests. Running one test.
- Starting the debugger.
- Checking the autograder output and MP scores
- Ask all students to log in to Turing's Craft. During section, each student should show you where they are with Turing's Craft.
- Remind students to sign up and pay Turing's Craft.
- If necessary, demo complete Turing's Craft by using the lecture page pre-reading sections.
- Get students started with the MP1
- COMMIT code at end (always Checkout /Update ... Later Commit) so that you can even work on two machines.
Information, hints and key points for completing MP1:
- MP1 (DebugMe) consists of three short programs: Factorial, Winner, QuizMaster.
- This project is available in Subversion.
- If you have a compile error in TextIO, then you need to change your Java Compiler level to a different value (e.g. 1.8) and do Project Menu->Clean->Clean Project. You may need to repeat this.
- Setup instructions, including your subversion directory can be found in Lab 1.
- See the R-E-A-D-M-E--F-I-R-S-T that is included in the MP.
- Make sure you COMMIT your changes. COMMIT means to commit your files back to subversion.
- If you work on two computers, you'll need to know about UPDATE, too.
- You have a local autograder and units tests. Use them!
- Each time the real autograder is run it creates a new subdirectory.
- You can review the output of the tests there and the compile log.
- Make sure you commit everything and there are no compile errors.
- MP Score is maximum of ALL grading runs that course staff runs.
- Lab achievement points are based on the following:
- I can use the debugger! I can single-step and also use breakpoints in my MP.
- I can switch perspectives (Java/SVN/Debugger) and know how to reset a perspective.
- I can commit modified Java files back to Subversion.