Incorrect version of USBCore.cpp in package registry?
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- arduino, cpp
調査の方向性
インストールされている framework-arduino-sam 1.6.12 パッケージの cores/arduino/USB/USBCore.cpp と、Issue にリンクされている ArduinoCore-sam のコミットを比較します。platform-atmelsam の platform.json の 46 行目と対応するレジストリアーカイブを確認し、どのソースがパッケージ化されているかを特定します。パッケージのソースとリポジトリのバージョンが照合され、misleading-indentation 警告が修正されるか、そのパッケージ化の原因が文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I recently installed PlatformIO for development on an Arduino Due. When going through the basic environmental setups, I built and deployed the Blink sketch. During compile, I got the following warnings:
Compiling .pio/build/due/FrameworkArduino/cortex_handlers.c.o
Compiling .pio/build/due/FrameworkArduino/hooks.c.o
Indexing .pio/build/due/libFrameworkArduinoVariant.a
Compiling .pio/build/due/FrameworkArduino/iar_calls_sam3.c.o
/Users/ajay/.platformio/packages/framework-arduino-sam/cores/arduino/USB/USBCore.cpp: In function 'void USB_ISR()':
/Users/ajay/.platformio/packages/framework-arduino-sam/cores/arduino/USB/USBCore.cpp:688:21: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
/Users/ajay/.platformio/packages/framework-arduino-sam/cores/arduino/USB/USBCore.cpp:690:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
UDD_Send8(EP0, 0);
^~~~~~~~~
Compiling .pio/build/due/FrameworkArduino/itoa.c.o
Compiling .pio/build/due/FrameworkArduino/main.cpp.o
Compiling .pio/build/due/FrameworkArduino/new.cpp.o
Compiling .pio/build/due/FrameworkArduino/syscalls_sam3.c.o
Compiling .pio/build/due/FrameworkArduino/watchdog.cpp.o
On inspection of USBCore.cpp, I see the following:
however, the latest code in the ArduinoCore-sam repo has the following commits, which seem to be more recent than my screenshot, and also resolves the warning above https://github.com/arduino/ArduinoCore-sam/commit/790ff2c852bf159787a9966bddee4d9f55352d15.
I'm new to PlatformIO and don't quite know my way around, so apologies if I am looking in the wrong place, but it seems to be that this is where the package is installed from https://github.com/platformio/platform-atmelsam/blob/1c15f3aa8595fa707f510221611ee051ab928efa/platform.json#L46, which does appear to be the latest version the repository. Also, here is what I get when list my packages:
[9:33] ajay@AJAYs-MBP ~/Documents/PlatformIO/Projects/tugboat01 $ pio pkg list
Resolving due dependencies...
Platform atmelsam @ 8.3.0 (required: atmelsam)
├── framework-arduino-sam @ 1.6.12 (required: platformio/framework-arduino-sam @ ~1.6.12)
├── framework-cmsis @ 1.40500.0 (required: platformio/framework-cmsis @ ~1.40500.0)
├── framework-cmsis-atmel @ 1.2.2 (required: platformio/framework-cmsis-atmel @ ~1.2.2)
├── tool-bossac @ 1.10700.190624 (required: platformio/tool-bossac @ ~1.10700.0)
└── toolchain-gccarmnoneeabi @ 1.70201.0 (required: platformio/toolchain-gccarmnoneeabi @ ~1.70201.0)
My guess is the package registry has older version of the code in it, but I'm not entirely sure how to download the actual package/file/tar.gz described here: https://registry.platformio.org/tools/platformio/framework-arduino-sam/versions
- 主要言語
- HTML
- スター
- 91
- フォーク
- 111
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
arduino/ArduinoCore-sam のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
arduino/ArduinoCore-sam#129 ·
-
Type: Bug
難易度 3/5 半日 初心者へのやさしさ 62/100
arduino/ArduinoCore-sam#154 ·
-
Type: Bug USB: CDC serial
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
arduino/ArduinoCore-sam#153 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
arduino/ArduinoCore-sam#151 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
arduino/ArduinoCore-sam#146 ·
arduino/ArduinoCore-sam の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/context-ontology-accelerator#325 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
objectionary/jeo-maven-plugin#1926 ·
メンテナーはふだん 2 日以内に返信
-
orchestration.migration.data.tasks.retry values are ignored by the 8.8 data migration job対応中かも @irisfield が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
camunda/camunda-platform-helm#7773 ·
メンテナーはふだん 1 日以内に返信
-
0.kind: enhancement 6.topic: reproducible builds
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
NixOS/nixpkgs#580765 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
win_build: parallel PostBuildEvent race in example_app_atiopencl and example_app_nvopencl copying openclapp_kernels.cl対応中かも @qixuancao が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信