Skip to content

please support file: protocol for index files and platform/tools components #664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PeterSommerlad opened this issue Apr 19, 2020 · 2 comments
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@PeterSommerlad
Copy link

Bug Report

Current behavior

$ arduino-cli core list

Error updating index: downloading index file://localhost//Users/sop/Arduino/Arduino-Cpp17/package_Cpp17AVR_index.json: Get "file://localhost//Users/sop/Arduino/Arduino-Cpp17/package_Cpp17AVR_index.json": unsupported protocol scheme "file"

Expected behavior

Like the Arduino IDE arduino-cli should support the file: for developing cores and platforms locally. Always having to upload/download or run a local web server is time consuming.

Environment

  • CLI version (output of arduino-cli version):
    arduino-cli Version: 0.10.0 Commit: ec5c3ed

  • OS and platform:
    Darwin Kernel Version 18.7.0: Mon Feb 10 21:08:45 PST 2020; root:xnu-4903.278.28~1/RELEASE_X86_64 x86_64 i386
    (Macos Mojave)

Additional context

I am working on a new AVR and ARM core with more modern C++17 internals. So far on ARM things look promising wrt code size and improved type safety.

@silvanocerza
Copy link
Contributor

This is solved by #1098, closing.

@per1234 per1234 added conclusion: resolved Issue was resolved topic: code Related to content of the project itself labels Jun 15, 2022
@cjhdev
Copy link

cjhdev commented Nov 15, 2022

This issue was not completely resolved in #1098

The index file contains package definitions, and each definition has a URL field.
The fix was applied to the index file URL, but not to the package URLs within the index file.

I have confirmed that the legacy IDE supports file URLs in the package definitions.

Should this issue be reopened?

@cmaglie cmaglie reopened this Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

6 participants