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

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

Open
edutools-service opened this issue Nov 14, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@edutools-service
Copy link

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

@edutools-service edutools-service added the bug Something isn't working label Nov 14, 2023
@glpnk
Copy link

glpnk commented Nov 14, 2023

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
Copy link

glpnk commented Nov 14, 2023

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
Copy link
Contributor

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
Copy link

glpnk commented Nov 16, 2023

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?
  • "messed up code"
    The only reason for my confusion at the beginning is the incorrect placement of templates (like on screenshot above). Broken templates made Linter to throw error about 'main' is missing.

  • "read only mode"
    I think that may be related to plugin logic - allow to edit code only inside templates. Somehow it blocked Reset Content button I think.

  1. "Reset Content button just wiped file." -- do you mean the file became completely empty or reverted to the "broken" look?
  • "reset button wiped file"
    After trying to reset previously submitted task, the part of RustRover's interface related to Academy plugin got stuck. I managed to restart IDE and got empty file.
    I think that solution from github was pasted inside the template. Template got expanded to the size of file, other content of file got wiped (because replace all) and this state was saved as reference.

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
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants