Skip to content

[Windows] Pasting a file into user can give a PermissionError #250

@mirober

Description

@mirober

Talon version 0.1.4-159.

Was copying a file from knausj into my user folder and had this error as the file finished copying:

2021-02-20 14:01:04 DEBUG [+] C:\Users\Mike\AppData\Roaming\talon\user\help\help.py
2021-02-20 14:01:04 ERROR user.help.help (C:\Users\Mike\AppData\Roaming\talon\user\help\help.py) import failed
   15:                  threading.py:912* # cron thread
   14:                  threading.py:954* 
   13:                  threading.py:892* 
   12:                 talon\cron.py:123| 
   11:                 talon\cron.py:83 | 
   10:                   talon\fs.py:54 | 
    9:                   talon\fs.py:47 | 
    8:       talon\scripting\rctx.py:225| # 'fs' main:on_change()
    7:       app\resources\loader.py:613| 
    6:       app\resources\loader.py:563| 
    5:       app\resources\loader.py:358| # [stack splice]
    4:         importlib\__init__.py:127| 
    3:       app\resources\loader.py:237| 
    2:       app\resources\loader.py:232| 
    1: importlib._bootstrap_external:979| 
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Mike\\AppData\\Roaming\\talon\\user\\help\\help.py'
2021-02-20 14:01:35 DEBUG [-] C:\Users\Mike\AppData\Roaming\talon\user\help\help.py
2021-02-20 14:01:37 DEBUG [+] C:\Users\Mike\AppData\Roaming\talon\user\help\help.py

I deleted the file and pasted again and it was fine, so presumably just a chance timing/locking issue. Should talon try to catch this and retry?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions