-
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BREAKING] Removed
debugging_supported
field from BoardDetails
gR…
…PC call (#2438) * Removed debugging_supported field from BoardDetailsResponse * fix typo
- Loading branch information
Showing
6 changed files
with
180 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetai | |
return nil, &arduino.InvalidFQBNError{Cause: err} | ||
} | ||
|
||
boardPackage, boardPlatform, board, boardProperties, boardRefPlatform, err := pme.ResolveFQBN(fqbn) | ||
boardPackage, boardPlatform, board, boardProperties, _, err := pme.ResolveFQBN(fqbn) | ||
if err != nil { | ||
return nil, &arduino.UnknownFQBNError{Cause: err} | ||
} | ||
|
@@ -64,13 +64,6 @@ func Details(ctx context.Context, req *rpc.BoardDetailsRequest) (*rpc.BoardDetai | |
details.BuildProperties, _ = utils.ExpandBuildProperties(details.BuildProperties) | ||
} | ||
|
||
details.DebuggingSupported = boardProperties.ContainsKey("debug.executable") || | ||
boardPlatform.Properties.ContainsKey("debug.executable") || | ||
(boardRefPlatform != nil && boardRefPlatform.Properties.ContainsKey("debug.executable")) || | ||
// HOTFIX: Remove me when the `arduino:samd` core is updated | ||
boardPlatform.String() == "arduino:[email protected]" || | ||
boardPlatform.String() == "arduino:[email protected]" | ||
|
||
details.Package = &rpc.Package{ | ||
Name: boardPackage.Name, | ||
Maintainer: boardPackage.Maintainer, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,9 +304,8 @@ func TestBoardDetails(t *testing.T) { | |
_, _, err = cli.Run("core", "install", "arduino:[email protected]") | ||
require.NoError(t, err) | ||
|
||
stdout, _, err = cli.Run("board", "details", "-b", "arduino:samd:nano_33_iot", "--format", "json") | ||
_, _, err = cli.Run("board", "details", "-b", "arduino:samd:nano_33_iot", "--format", "json") | ||
require.NoError(t, err) | ||
requirejson.Contains(t, stdout, `{"debugging_supported": true}`) | ||
} | ||
|
||
func TestBoardDetailsNoFlags(t *testing.T) { | ||
|
Oops, something went wrong.