Skip to content
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

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

Closed
DanTup opened this issue Feb 19, 2019 · 1 comment
Closed

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

DanTup opened this issue Feb 19, 2019 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues verified Verification succeeded
Milestone

Comments

@DanTup
Copy link
Contributor

DanTup commented Feb 19, 2019

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.

@jtsom
Copy link

jtsom commented Feb 21, 2019

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))

@jrieken jrieken assigned roblourens and alexdima and unassigned jrieken Feb 24, 2019
@roblourens roblourens added bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues labels Feb 24, 2019
@roblourens roblourens added this to the February 2019 milestone Feb 24, 2019
@octref octref added the verified Verification succeeded label Feb 26, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug search Search widget and operation issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

6 participants