Skip to content

mcp: fix compilation error with paths and minification #251464

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 1 commit into from
Jun 14, 2025

Conversation

connor4312
Copy link
Member

Maybe?

@connor4312 connor4312 self-assigned this Jun 14, 2025
@connor4312 connor4312 marked this pull request as ready for review June 14, 2025 01:05
@connor4312 connor4312 enabled auto-merge (squash) June 14, 2025 01:05
@vs-code-engineering vs-code-engineering bot added this to the June 2025 milestone Jun 14, 2025
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have an understanding what is going on that requires this change?

@bpasero bpasero requested a review from mjbvz June 14, 2025 05:55
@bpasero
Copy link
Member

bpasero commented Jun 14, 2025

@mjbvz can you have a look please, the main CI fails with:

[core-ci                  ] [18:20:07] Error: /Users/cloudtest/vss/_work/1/s/src/vs/workbench/contrib/mcp/common/discovery/configMcpDiscovery.ts(123,12): Property '$5' does not exist on type 'IPath | typeof import("/Users/cloudtest/vss/_work/1/s/src/vs/base/common/path", { with: { "resolution-mode": "import" } })'.
[core-ci                  ] [18:20:07] Error: /Users/cloudtest/vss/_work/1/s/src/vs/workbench/contrib/mcp/common/discovery/configMcpDiscovery.ts(123,28): Property '$6' does not exist on type 'IPath | typeof import("/Users/cloudtest/vss/_work/1/s/src/vs/base/common/path", { with: { "resolution-mode": "import" } })'.
[core-ci                  ] [18:20:07] Finished compilation with 2 errors after 660200 ms
[core-ci                  ] [18:20:07] Error: /Users/cloudtest/vss/_work/1/s/src/vs/workbench/contrib/mcp/common/discovery/configMcpDiscovery.ts(123,12): Property '$5' does not exist on type 'IPath | typeof import("/Users/cloudtest/vss/_work/1/s/src/vs/base/common/path", { with: { "resolution-mode": "import" } })'.
[core-ci                  ] [18:20:07] Error: /Users/cloudtest/vss/_work/1/s/src/vs/workbench/contrib/mcp/common/discovery/configMcpDiscovery.ts(123,28): Property '$6' does not exist on type 'IPath | typeof import("/Users/cloudtest/vss/_work/1/s/src/vs/base/common/path", { with: { "resolution-mode": "import" } })'.
[core-ci                  ] [18:20:07] Finished compilation with 2 errors after 660201 ms
[core-ci                  ] [18:20:07] 'core-ci' errored after 11 min
[core-ci                  ] [18:20:07] Error: Found 2 errors
[core-ci                  ]     at Stream.<anonymous> (/Users/cloudtest/vss/_work/1/s/build/lib/reporter.js:94:29)
[core-ci                  ]     at _end (/Users/cloudtest/vss/_work/1/s/node_modules/through/index.js:65:9)
[core-ci                  ]     at stream.end (/Users/cloudtest/vss/_work/1/s/node_modules/through/index.js:74:5)
[core-ci                  ]     at Stream.onend (node:internal/streams/legacy:48:10)
[core-ci                  ]     at Stream.emit (node:events:530:35)
[core-ci                  ]     at Stream.emit (node:domain:552:15)
[core-ci                  ]     at drain (/Users/cloudtest/vss/_work/1/s/node_modules/through/index.js:34:23)
[core-ci                  ]     at stream.queue.stream.push (/Users/cloudtest/vss/_work/1/s/node_modules/through/index.js:45:5)
[core-ci                  ]     at Stream.end (/Users/cloudtest/vss/_work/1/s/node_modules/through/index.js:15:35)
[core-ci                  ]     at _end (/Users/cloudtest/vss/_work/1/s/node_modules/through/index.js:65:9)

@connor4312 connor4312 merged commit 5c8496a into main Jun 14, 2025
12 checks passed
@connor4312 connor4312 deleted the connor4312/try-fix-comp branch June 14, 2025 12:12
@connor4312
Copy link
Member Author

connor4312 commented Jun 14, 2025

Do we have an understanding what is going on that requires this change?

I had previously import * as path from 'path' and used both path.win32, path.posix, and path itself as a value. So something in that broke 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants