Skip to content

Commit

Permalink
Chore: Add non-existent-uri problem matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Feb 13, 2024
1 parent dc3ae6b commit be818ef
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
15 changes: 15 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,21 @@
"message": 6
}
},
{
"name": "bitbake-non-existent-uri",
"source": "bitbake",
"owner": "bitbake",
"fileLocation": [
"autoDetect",
"${cwd}"
],
"pattern": {
"regexp": "(ERROR): (.+?): (.*non-existent-uri: file could not be found)$",
"file": 2,
"severity": 1,
"message": 3
}
},
{
"name": "bitbake-compilation-python-function",
"source": "bitbake",
Expand Down
2 changes: 1 addition & 1 deletion client/src/ui/BitbakeTaskProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class BitbakeTaskProvider implements vscode.TaskProvider {

if (canResolveTask) {
const bitbakeCommand = this.bitbakeDriver.composeBitbakeCommand(bitbakeTaskDefinition)
const problemMatchers = ['$bitbake-ParseError', '$bitbake-Variable', '$bitbake-generic', '$bitbake-task-error', '$bitbake-UnableToParse']
const problemMatchers = ['$bitbake-ParseError', '$bitbake-Variable', '$bitbake-generic', '$bitbake-task-error', '$bitbake-UnableToParse', '$bitbake-non-existent-uri']

const resolvedTask = new vscode.Task(
task.definition,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ERROR: [file-path]: Unable to get checksum for [recipe] SRC_URI entry non-existent-uri: file could not be found
# The following paths were searched:
# [...stack of file paths]


SRC_URI = "file://non-existent-uri"
3 changes: 2 additions & 1 deletion integration-tests/src/tests/bitbake-parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ suite('Bitbake Parsing Test Suite', () => {
'recipes-error/error/unable-to-parse.bb',
'recipes-error/error/unparsed-line.bb',
'recipes-error/error/task-error.bb',
'recipes-error/error/variable-error.bb'
'recipes-error/error/variable-error.bb',
'recipes-error/error/non-existent-uri.bb'
]

const workspacePath: string = workspaceURI.fsPath
Expand Down

0 comments on commit be818ef

Please sign in to comment.