AlexSartori/RISC-emV

list index out of range

Closed this issue · 5 comments

When I run main_gui(), there is a index error has been happend. The refer location is “riscemv\gui\MainWindow.py", line 18, in init”,and the tip is "self.init_emulator_components(self.emulators[0]), IndexError: list index out of range". I think the emulators is empry array.

Hi @WML321, thanks for raising the issue. Did you close it because the problem is solved? Or do I need to look into the problem? I cannot seem to reproduce it on my machine.

@AlexSartori yes, I have solved the problem. The error occurs beacuse the imported package in the source file becomes a comment, resulting in the code not being executed.

What do you mean exactly? How does that happen?

Sorry for the trouble, just started using github and some of the buttons don't function very well. I'm learning this open source project and in the process of learning, there are a few important library files that I commented out, that's why when I run the project, I get the error that happened to me at the very beginning.

No worries at all! Feedback is always appreciated :)