Algo Vs Code FAQ


Vsevolod Karpenko
Last Updated: 1 month ago

g8vI04NA.png

 

1. Error saving file: The content of the file is newer;
2. Error when starting the program: no module found;
3. On macOS control via letter keys does not work;
4. Infinite loading of tasks on the platform via Algo VSC;
5. I can't get into the video room from the program;
6. SyntaxError: invalid syntax;
7. Popup error: “timeout”;
8. 
File can not be resolved. Please open an editor.

Failed to save ‘main.py’: The content of the file is newer. Please compare your version with the file contents.



This error indicates that PC is set to the wrong system time (the time is lagging).

Please set up automatic system time and automatic time zone.
if you have the "sync time" button, also perform this action after setting the automatic time and time zone. This will allow the system to be rebuilt according to the new settings.
After that, restart the algovsc program.

  • Error when starting the program: no module found. E.g.: No module named play

    - Make sure the code is written correctly. This is the most common reason for such errors.
    Please always check the code for errors before contacting support team.

    If the old version was not completely removed before installing the current version of algovsc, this may also be the cause of the problem. In this case, completely remove the current program from your PC and reinstall it (you need a complete removal). 

    - Make sure that you have installed Algo Vs Code from Algorithmics. If just two extensions were added to the standard VS Code program not from Algorithmics developers, it means that the necessary libraries were not installed.

    - Make sure the program has up-to-date extensions: Python from Microsoft and algopython at least 2.85 version  



    Make sure that the PC account you are using AlgoVSC with has administrator rights.
    Simply accessing the administrator password is not enough, since a normal user still often has limited functionality, including most things to do with Python.

    Make sure that you have disabled the antivirus software while you are working with the program. And also that they were disabled during installation.

    You can also add the C:\Users\user\AppData\Local\Programs\Algoritmika folder to the exceptions of your antivirus, if you are not ready to disable or remove it.

  • On macOS control via letter keys does not work. We know that macOS is having problems using letter keys in the program.
    Please, in case of such a problem, use the arrow and number keys on this OS instead.

  • Infinite loading of tasks on the platform via Algo VSC Make sure you are logged into one of the tasks marked VSC.
    Otherwise, it will not open through the program, just as, in turn, tasks marked with VSC will not work through the learning platform in the browser.



    - If you did everything correctly, but still see an endless download, check the stability of your Internet connection.

    If possible, try connecting to a different network and reopening the task.

    - Try restarting the program.

  • I can't get into the video room from the program. Please note that it is necessary to enter the online room from the browser. The vs code program runs separately, and the teacher will see it through your screen share.

  • After running the code in the terminal, the error is

SyntaxError: invalid syntax

This error always indicates an syntax error in the code.
To understand exactly where the code is written incorrectly, you need to look in the terminal at the line preceding the SyntaxError: invalid syntax line.

For example, in the screenshots below, we see that one of the lines is missing commas between the arguments.pasted_image_0__3_.png


  • Popup error: “timeout”. Terminal output:

Connection failed because the destination computer rejected the connection request

The reasons for this error may be:

- Errors in the code (pay attention to the output in the terminal - there may also be an invalid syntax error);

- Running anti-virus software. 

- Outdated Python extension.
In the extensions tab, search for “Python”. You need the first extension listed from Microsoft (see screenshot below).



If you do not have the latest version installed, you should see an "Update" button next to it. You can also completely remove the extension by clicking “Uninstall” and install it again.

  • File can not be resolved. Please open an editor.

Please note that this error indicates that you have an old version of the program installed. You must completely uninstall the current version and install the current one.

 


Was this article helpful?