Skip to content

Extremely slow builds when directories.user is on iCloud-synced path #3091

@ricardobeat

Description

@ricardobeat

Describe the problem

The build command becomes extremely slow. Using the --log option, it hangs at

INFO[0000] Adding libraries dir                          dir=/Users/rtomasi/Documents/Arduino/libraries isSingleLibrary=false location=user

The ~/Documents folder is commonly iCloud-synced. At some point file reads in ~/Documents become a network operation and the bird process starts taking >100% CPU.

Moving the library in the config (Library/Arduino15/arduino-cli.yaml) somewhere else solves the issue:

directories:
    user: /Users/rtomasi/Arduino

To reproduce

Install libraries on MacOS with default config, and iCloud sync enabled.

Expected behavior

The default location on Mac should not be under Documents.

Arduino CLI version

1.4.1

Operating system

macOS

Operating system version

26

Additional context

No response

Issue checklist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: 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