UnitTesting icon indicating copy to clipboard operation
UnitTesting copied to clipboard

Question: My plugin didn't generate files as it should

Open lucifiel1618 opened this issue 2 years ago • 1 comments

This is the package that I wrote: https://github.com/lucifiel1618/SublimeScarpetSyntax

It worked fine and passed all tests in local UnitTesting runs. Things didn't go as well with github CI.

You can see it here that it is supposed to create an user package folder Packages/User/Scarpet upon plugin_loaded(): https://github.com/lucifiel1618/SublimeScarpetSyntax/blob/main/scarpet.py#L164-L172

But it didn't as you can see in this CI job log: FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/.config/sublime-text/Packages/User/Scarpet'

This has never happened in my local tests. I spent a lot of time investigating it but no luck so far... I run out of ideas for testing, so I would really appreciate any advices...

lucifiel1618 avatar Feb 02 '23 05:02 lucifiel1618

Maybe trying the capture_console setting to see if there is any error message?

randy3k avatar Feb 17 '23 16:02 randy3k

The plugin run targets python 3.3 and depends on pathlib, which is not part of py33's stdlib.

Thus the plugin fails loading upstream and works by luck downstream - maybe due to an other plugin being installed correctly referencing to pathlib dependency.

Easiest solution was to opt-in your package to python 3.8 via .python-version file.

deathaxe avatar Apr 04 '24 16:04 deathaxe