Skip to content

checkio sync error #4253

@garysteele777

Description

@garysteele777

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Using Pycharm and updating mission files and got this error
It downloaded only part of the missions

PS C:\Users\Owner\PycharmProjects\CheckIO> checkio sync
Using folder "/users/owner/pycharmprojects/checkio"
Requesting...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Owner\AppData\Local\Programs\Python\Python312\Scripts\checkio.exe\__main__.py", line 7, in <module>
  File "C:\Users\Owner\AppData\Local\Programs\Python\Python312\Lib\site-packages\checkio_client\runner.py", line 229, in main
    getattr(module, func_name)(args)
  File "C:\Users\Owner\AppData\Local\Programs\Python\Python312\Lib\site-packages\checkio_client\actions\sync.py", line 87, in main
    filename = gen_filename(mission, item['stationName'], folder)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Owner\AppData\Local\Programs\Python\Python312\Lib\site-packages\checkio_client\utils\code.py", line 63, in gen_filename
    return os.path.join(folder, station, slug.replace('-', '_') + '.' + domain_data['extension'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen ntpath>", line 149, in join



Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Screenshot

no screenshot

Environment data

PS Version: 5.1.19041.5007
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 177
BufferHeight: 19

Steps to reproduce

Using missions from custom class that I created. Missions don't seem to appear in the right folders and did not sync all of the files with 'checkio sync' command.
Gary Steele

Expected behavior

sync all files

Actual behavior

only partial sync of files and put in wrong folders

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions