Skip to content

"workspaceContains:**" throws errors (only in insiders) #68969

Closed

Description

@DanTup

In the current Insiders build I see this when running my tests:

Error: command failed with error code 2: error parsing glob '**/pubspec.yaml, **/*.dart': invalid use of **; must be one path component
extensionHostProcess.js:685
    at Object.t.deserializeSearchError (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3815:49)
    at Promise.all.then.t (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4472:372)
    at process._tickCallback (internal/process/next_tick.js:68:7)

This doesn't happen in stable. The only place I have those globs is in packages.json in activationEvents/workspaceContains:

"activationEvents": [
	"onLanguage:dart",
	"onView:dartPackages",
	"workspaceContains:**/pubspec.yaml",
	"workspaceContains:**/*.dart",
	"onCommand:flutter.createProject",
	"onCommand:dart.createProject",
	"onCommand:_dart.flutter.createSampleProject",
	"onCommand:flutter.doctor",
	"onCommand:flutter.upgrade",
	"onUri"
],

In the docs, there's an example that uses "workspaceContains:**/.editorconfig". It's not clear from the message (invalid use of **; must be one path component) what's wrong.

Activity

  1. jtsom commented on Feb 21, 2019

    @jtsom

    Am seeing the same error, however I do not know what is causing it:

    console.ts:134 [IPC Library: Search] command failed with error code 2: error parsing glob '/*.csproj, *.sln, *.csx, *.cake, **/*.csproj, **/*.sln, **/*.csx, **/*.cake': invalid use of **; must be one path component
    console.ts:134 [Extension Host] Error: command failed with error code 2: error parsing glob '/*.csproj, *.sln, *.csx, *.cake, **/*.csproj, **/*.sln, **/*.csx, **/*.cake': invalid use of **; must be one path component
    
        at Object.t.deserializeSearchError (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3819:70)
        at Promise.all.then.t (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4476:372)
        at process._tickCallback (internal/process/next_tick.js:68:7) (at S.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:687:920))
    
  2. added
    bug
    search
    on Feb 24, 2019
  3. added this to the February 2019 milestone on Feb 24, 2019
  4. added
    verified
    on Feb 26, 2019
  5. locked and limited conversation to collaborators on Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsearchverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions