Skip to content

Library installation fails when sketchbook is under a redirected Windows Documents folder #1475

Open
@gabest11

Description

@gabest11

Describe the problem

I use the feature of Windows to redirect the common folders, including Documents, to a network share.

When I have my "Sketchbook location" preference set to a path under the redirected folder, Installation of libraries fails spuriously:

root ERROR Request install failed with error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: rename \\nas\users$\Gabest\Documents\Arduino\libraries\package-2423352759\ESP8266Audio-1.9.7 \\nas\users$\Gabest\Documents\Arduino\libraries\ESP8266Audio: Access is denied.

To reproduce

Reproduction instructions not provided.

Expected behavior

Arduino IDE has support for using redirected folders.

Arduino IDE version

Version: 2.0.0-nightly-20220921 Date: 2022-09-21T03:58:08.953Z CLI Version: 0.27.1 [a900cfb2]

Operating system

Windows

Operating system version

19042.2006

Additional context

If I try to open a sketch from a path under the redirected folder, it just loads the default empty project (#1797).

Related

Workaround

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Change the "Sketchbook location" preference to a path that is not under the redirected folder.
  3. Click the "OK" button.
    The "Preferences" dialog will close.

Keywords

  • "network drive"

  • "UNC path"

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions