Repository navigation
Releases
v0.4.3
- Chapter 10 problems now show their real name (
10_TSD_…) in the problem list, with the grader's code beside it. - Problems stay in the right chapter however the chapter name is written.
- Python code with a
/data/...file path typed in now works when you run the tests on your computer.
Thonny plug-in: thonny-ice-grader 0.2.4 on PyPI has the same changes.
v0.4.2
- Chapter 10 problems (codes
09_MoreDC_…, named10_TSD_…on the grader) now show as their own chapter, 10_TSD, like the grader's page, instead of inside chapter 9. New files for them go in a10_TSDfolder.
Thonny plug-in: thonny-ice-grader 0.2.3 on PyPI has the same fix.
v0.4.1
Fixes from a full review.
- A test too long for the grader to show (SKIP) now shows your last submission's result on it.
- Run on save no longer tests and saves another file when you switch files during a run.
- A mock exam can no longer be marked twice when time runs out during the hand-in question.
- Run One Test and Run in Terminal with your own input work offline and signed out.
- A very large time limit no longer turns every test into TLE.
- Tests run in a fresh empty folder, like on the grader.
- A huge output line is cut to a readable length, and a long error output keeps its last lines.
- Clearer messages when the grader can't be reached.
- Safer: statement files are only saved with document types, and the Gemini key never follows a redirect to another site.
- Python is looked up once, not before every run.
Install: download nattee-grader.vsix below, then code --install-extension nattee-grader.vsix.
v0.4.0
Mock exams, offline mode and statement Copy/Save
- Mock exam (the stopwatch button): pick chapters or exams, how many problems and how long. No tests, AI or submit until you hand in, then your answers are marked with the grader's tests.
- Works offline: press Download All for Offline (the cloud button in the sidebar) while the grader site is up. Then everything except Submit works without it.
- Copy and Save buttons in the statement tab. Copy gives the text, or a picture when the PDF draws its words.
- Download all statements and your solutions at once:
Nattee: Download All Statements and My Solutionsin the Command Palette. - Run in Terminal: the output and any error now stay on screen after the program ends. Ctrl+C stops it, Ctrl+D (or Ctrl+Z) ends the input.
- Thonny's Python is found automatically, and errors are clearer.
- AI explanations never include code.
v0.3.6
Exam practice problems in the sidebar
- Exam practice problems are now listed, grouped by exam: Exam1, Exam2, and future exams get their own group automatically (Exam3, ...).
- Problems the grader has no test cases for (e.g. the Exam1-2024 ones) are listed too, marked no tests: read the statement, try your own input with Run One Test, and submit. Nothing runs on save, and the status bar button runs your own input instead.
- The "Hide exam problems" setting has been removed: exam problems are always shown.
v0.3.5
Bug fixes from a full review of the extension.
Fixes
- Submit: if the grader refuses a submission, you now get an error instead of your previous submission's score.
- Cut-off expected outputs (the grader shows only the first 2 KB): a long last line is now checked as far as it's shown, instead of passing any program. A test with too little output to compare shows as SKIP.
- Submit note: "Local tests passed" now refers to exactly the code that was tested. Saving during a run queues another run, and only one run happens at a time.
- Sign-in safety: your saved password is only sent to the grader you signed in to, over https.
nattee.rootUrlcan now only be set in user settings, not by a workspace. - Clearer errors when the grader refuses a login or has no statement for a problem (no more false "Session expired").
- Runner:
- Requires Python 3.
- Falls back to
py/python3when the Python setting is empty or broken. - Links C with
-lm. - No longer crashes when a program leaves a process running, or when a data file is named
data.
- Smaller fixes:
- "Hide exam problems" applies at once.
- Files like
05_List_15_input.txtare no longer run as solutions. - Non-PDF statements no longer steal focus.
- Zooming a statement quickly no longer leaves the wrong zoom.
- A time limit of 0 no longer fails every test.
- The Open Statement button has an icon.
v0.3.4
Fix: problems whose tests open a data file (e.g. /data/data.txt in 07_StrFile_23 and 07_StrFile_33) crashed locally with file not found. The extension now reads the problem's data files from the grader's test case page, puts them in a temporary folder for each run, and points /data/... paths in the input at them. Works for Run Tests, Run One Test and custom input; the AI explanation sees the files too.
All test caches are fetched again once after updating.
v0.3.3
Fix: the grader no longer allows test case downloads, so every test showed as FAIL (the extension saved a web page as the test). Tests are now read from the grader's test case page, and broken cached tests are fetched again automatically.
- The grader shows only the first 2 KB of each test file. A test whose input is longer is shown as SKIP (submit to check it); a longer expected output is checked on the part that's shown. Across the course this affects 1 test of 570.
- Also on Open VSX for Cursor, Windsurf and VSCodium.
v0.3.2
Now on the VS Code Marketplace: search ICE Nattee Grader in the Extensions view.
- Renamed to ICE Nattee Grader, with an icon and store details.
- The packaged
.vsixnow carries the README, licence and icon, so the same file works for the Marketplace and for local install.
No behaviour changes since v0.3.1.
v0.3.1
Create Solution File now puts each file in a folder per chapter (e.g. 05_List/05_List_15.py), and opens an existing file for the problem instead of making a second copy. Set nattee.organizeByChapter to false to keep files flat.
Install: download nattee-grader.vsix, then code --install-extension nattee-grader.vsix and reload VS Code.