jetbrains-academy / rustlings-course

Small exercises to get you used to reading and writing Rust code!
https://github.com/rust-lang/rustlings/releases/tag/1.2.2
MIT License
149 stars 33 forks source link

main function missing, RustRover broken, task wiped Structs Methods Enums and Pattern Matching / Structs with Methods / Sending Packages #290

Open edutools-service opened 1 year ago

edutools-service commented 1 year ago

After begining this task RustRover show no main function error, then TODO hint is missplaced, some content was improperly formatted. After restarting IDE task file is empty, Reset Content button throws exception. Stack trace https://ea.jetbrains.com/browser/ea_reports/19018161 https://ea.jetbrains.com/browser/ea_reports/19018161

glpnk commented 1 year ago

After first iteration task file was in RO mode.

I'm copy pasted solution from source, error about missing main is gone, task is passed. But this file contain already solved task.

Reset Content button just wiped file.

After another restoring file content from Github, setting file to read only mode, Academy plugin shows Solution can't be loaded with Reset Content button, which again throw exception ReadOnlyModificationException.

After setting file to RW mode and pressing Reset Content button content is wiped again

glpnk commented 1 year ago

I think placeholders for this task need to be adjusted.

Also how to reset progress? I'm reinstalled the course, but progress for part Structs Methods Enums and Pattern Matching is not resetted

image

kochaika commented 1 year ago

Hi! Thanks for the feedback! A couple of clarifying questions:

  1. Does the "messed up code" error and/or "read only mode" error reproduce after reinstalling the course? I.e. can you get this error again?
  2. "Reset Content button just wiped file." -- do you mean the file became completely empty or reverted to the "broken" look?

Progress and submission history are stored in your JetBrains account. Try to log out from your account so your progress doesn't count. You can do it this way: Help -> Register... -> <your user in the left bottom coner> -> Log Out...

Or you can reset progress for all your courses this way: Help -> Find Action... -> Delete All Marketplace Submissions

glpnk commented 1 year ago

Hi!

Progress and submission history are stored in your JetBrains account

Thanks. I reinstalled Academy plugin multiple times and reinstalled Rust course, all progress was gone, except the last chapter I studied. But I tried to reset only last task.

Could this be related to the fact that I started course downloaded by plugin and continued with version from JB site? Where I can see progress or it internal API only?

After reinstalling the plugin I can't download deleted course again, download button just don't work, so I manually imported course from file.

  1. Does the "messed up code" error and/or "read only mode" error reproduce after reinstalling the course? I.e. can you get this error again?
  1. "Reset Content button just wiped file." -- do you mean the file became completely empty or reverted to the "broken" look?

This need to be tested, I do it later.

Other bug:

Peek solution button previously throw error with stack trace, but now fixed

UPD:

Technically is possible to save answer to single template and made other empty, but after "Reset Content" templates and content is restored. So it may be some corruption during plugin installation

If file got locked by user - Academy plugin throws error EA link.

I don't know how file become RO but it only one "bug" for now.

May be wiped file is related with broken peek solution because both use some version control, but this is all for now.

kochaika commented 1 year ago

Where I can see progress or it internal API only?

For now, you can see your progress only in IDE course. In the future, the ability to reset progress for one selected course from IDE will be available

Unfortunately, I can't reproduce the "messed up code" error or "read only mode" error. I suggest leaving this issue for now, in case more information appears about this error.

ahollmann commented 11 months ago

I encountered the same issue after installing/uninstalling different versions of Jetbrains Academy due to some incompatibility of RustRover and broken Jetbrains Academy versions.

kochaika commented 11 months ago

I encountered the same issue after installing/uninstalling different versions of Jetbrains Academy due to some incompatibility of RustRover and broken Jetbrains Academy versions.

Hi, @ahollmann Thank you for your reply. Can you describe the steps to reproduce this?