Skip to content

Add a command to run bitbake <recipe> #18

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

Merged
merged 21 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4ed5bb7
Chore: move ClientNotificationManager to ui directory
deribaucourt Oct 13, 2023
1e22f64
Chore: remove unused semantic tokens provider
deribaucourt Oct 12, 2023
6cae14c
Fix: run npm compile before debugging
deribaucourt Oct 13, 2023
7db2644
Feature: Add extension client logger
deribaucourt Oct 11, 2023
a50a2ca
Refactor: move language client to separate file
deribaucourt Oct 12, 2023
f00ed32
Feature: Configure BitbakeWorkspace from settings
deribaucourt Oct 12, 2023
3c3df37
Feature: add bitbake task provider
deribaucourt Oct 13, 2023
ecb7f4a
Feature: add a command to build a recipe
deribaucourt Oct 13, 2023
07abb77
Feature: Use task provider for bitbake build command
deribaucourt Oct 13, 2023
45fc046
Chore: fix eslint issues
deribaucourt Oct 13, 2023
28a5215
Chore: add Copyright mentions
deribaucourt Oct 13, 2023
9d6e092
Fix: Fix terminal output for bitbake commands
deribaucourt Oct 16, 2023
49c8854
Fix: Properly setup BUILDDIR
deribaucourt Oct 16, 2023
925e5b6
Fix: Sanitize paths for shell commands
deribaucourt Oct 16, 2023
92cccf3
Feat: Add task groups to bitbake tasks
deribaucourt Oct 16, 2023
a80a0d0
Feat: Add problem matchers for bitbake
deribaucourt Oct 16, 2023
88aba10
Feature: Save active recipes in workspace state
deribaucourt Oct 17, 2023
83dd11e
Feature: add clean recipe command
deribaucourt Oct 17, 2023
98ef31d
Feature: add command to run a specific task for a recipe
deribaucourt Oct 17, 2023
7115551
Feature: run bitbake commands from context menu
deribaucourt Oct 17, 2023
4e38165
Feat: Add command to drop a recipe from the active workspace
deribaucourt Oct 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
{
"name": "Server/client",
"configurations": ["Launch Client", "Attach to Server"],
"stopAll": true
"stopAll": true,
"preLaunchTask": "compile"
}
]
}
167 changes: 162 additions & 5 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,185 @@
},
"bitbake.pathToEnvScript": {
"type": "string",
"default": "oe-init-build-env",
"default": "${workspaceFolder}/sources/poky/oe-init-build-env",
"description": "Set the path to the environment script to configure the BitBake project. If the file does not exist, the extension will attempt to configure the environment variables by itself."
},
"bitbake.pathToBuildFolder": {
"type": "string",
"default": "build",
"default": "${workspaceFolder}/build",
"description": "Set the build folder for the BitBake project."
},
"bitbake.pathToBitbakeFolder": {
"type": "string",
"default": "sources/poky/bitbake",
"default": "${workspaceFolder}/sources/poky/bitbake",
"description": "Set the path to the BitBake folder."
}
}
},
"taskDefinitions": [
{
"type": "bitbake",
"required": [
"recipes"
],
"properties": {
"recipes": {
"description": "Bitbake recipe(s)",
"type": "array",
"items": {
"type": "string"
}
},
"task": {
"type": "string",
"description": "Bitbake task to run (build by default)"
},
"options": {
"type": "object",
"description": "Additional options to pass to the bitbake command",
"properties": {
"continue": {
"type": "boolean",
"description": "Continue as much as possible after an error (-k)"
},
"force": {
"type": "boolean",
"description": "Force the specified targets/task to run (-f)."
}
}
}
}
}
],
"problemMatchers": [
{
"name": "bitbake-ParseError",
"source": "bitbake",
"owner": "bitbake",
"fileLocation": [
"autoDetect",
"${cwd}"
],
"pattern": {
"regexp": "^Parsing recipes...(ERROR): ParseError (at|in) (.+?):(\\d+)?:? (.+)$",
"file": 3,
"line": 4,
"severity": 1,
"message": 5
}
},
{
"name": "bitbake-Variable",
"source": "bitbake",
"owner": "bitbake",
"fileLocation": [
"autoDetect",
"${cwd}"
],
"pattern": {
"regexp": "^Parsing recipes...(ERROR): (.+?): (.*?) file: (.+) line: (\\d+) (.*)$",
"file": 2,
"line": 5,
"severity": 1,
"message": 6
}
},
{
"name": "bitbake-generic",
"source": "bitbake",
"owner": "bitbake",
"fileLocation": [
"autoDetect",
"${cwd}"
],
"pattern": {
"regexp": "^Parsing recipes...(ERROR): (.+?): (.*)$",
"file": 2,
"severity": 1,
"message": 3
}
}
],
"commands": [
{
"command": "bitbake.rescan-project",
"title": "BitBake: Rescan Project",
"description": "This command rescans the BitBake project."
"description": "This command rescans the bitbake project."
},
{
"command": "bitbake.build-recipe",
"title": "BitBake: Build recipe",
"description": "Build a recipe or an image."
},
{
"command": "bitbake.clean-recipe",
"title": "BitBake: Clean recipe",
"description": "Clean a recipe or an image (bitbake -c clean)."
},
{
"command": "bitbake.run-task",
"title": "BitBake: Run task for recipe",
"description": "Run a specific task for a bitbake recipe."
},
{
"command": "bitbake.drop-recipe",
"title": "BitBake: Drop a recipe from the active workspace",
"description": "Stop watching or suggesting a recipe in bitbake commands."
}
]
],
"menus": {
"explorer/context": [
{
"command": "bitbake.clean-recipe",
"group": "bitbake",
"when": "resourceLangId == bitbake"
},
{
"command": "bitbake.build-recipe",
"group": "bitbake",
"when": "resourceLangId == bitbake"
},
{
"command": "bitbake.run-task",
"group": "bitbake",
"when": "resourceLangId == bitbake"
}
],
"editor/context": [
{
"command": "bitbake.clean-recipe",
"group": "bitbake",
"when": "editorLangId == bitbake"
},
{
"command": "bitbake.build-recipe",
"group": "bitbake",
"when": "editorLangId == bitbake"
},
{
"command": "bitbake.run-task",
"group": "bitbake",
"when": "editorLangId == bitbake"
}
],
"editor/title/context": [
{
"command": "bitbake.clean-recipe",
"group": "bitbake",
"when": "resourceLangId == bitbake"
},
{
"command": "bitbake.build-recipe",
"group": "bitbake",
"when": "resourceLangId == bitbake"
},
{
"command": "bitbake.run-task",
"group": "bitbake",
"when": "resourceLangId == bitbake"
}
]
}
},
"scripts": {
"test": "npm run test:grammar",
Expand Down
169 changes: 0 additions & 169 deletions client/src/BitBakeDocumentSemanticTokensProvider.ts

This file was deleted.

Loading