vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

YAML build issue

Open msivasubramaniaan opened this issue 3 years ago • 12 comments

Describe the bug

Facing build issue while building YAML extension with latest YAML language server 1.9.0

Expected Behavior

There should not be any error

Current Behavior

The below error appears: image

Steps to Reproduce

  1. yarn build

Environment

  • [x] Windows

msivasubramaniaan avatar Jul 13 '22 10:07 msivasubramaniaan

what change introduced that issue?

fbricon avatar Jul 13 '22 10:07 fbricon

what change introduced that issue?

I couldn't able to compile the extension in local and got the above mentioned error. The replace() is missing in the TelemeteryOutputChannel seems

msivasubramaniaan avatar Jul 13 '22 10:07 msivasubramaniaan

something's fishy here. I can compile the main branch with node 14.20.0 and yarn build without issue

fbricon avatar Jul 13 '22 10:07 fbricon

I checked on mac and linux

fbricon avatar Jul 13 '22 10:07 fbricon

I am using windows machine. Node v16.13.0 and Yarn v1.22.17

msivasubramaniaan avatar Jul 13 '22 10:07 msivasubramaniaan

cleared the node modules and tried again, now the build got success. Hence closing this issue.

msivasubramaniaan avatar Jul 13 '22 11:07 msivasubramaniaan

so by default, yarn resolves @types/vscode to 1.61, which doesn't have the replace function, but if you force @types/vscode to 1.69, then replace() is needed. I don't know when it was introduced

fbricon avatar Jul 13 '22 11:07 fbricon

it starts breaking with @types/vscode 1.62

fbricon avatar Jul 13 '22 11:07 fbricon

Better it is good to have the replace() in telemetry. Shall I reopen the issue in that case?

msivasubramaniaan avatar Jul 13 '22 11:07 msivasubramaniaan

So the change was introduced by https://github.com/microsoft/vscode/issues/132183 I'd like to bump @types/vscode to 1.62 at least. However I'm not sure whether that would have a negative impact on Theia compatibility, which starts dramatically lagging behind vscode: https://eclipse-theia.github.io/vscode-theia-comparator/filtered-status.html

So adding the replace() function only is safe. Bumping @types/vscode version, I'm not too sure. @benoitf WDYT?

fbricon avatar Jul 13 '22 11:07 fbricon

@fbricon shall I upgrade @types/vscode to 1.62 and further?

msivasubramaniaan avatar Jul 21 '22 14:07 msivasubramaniaan

For Theia I think it's ok to bump to 1.62

And on Che/DevSpaces side, default editor will be VS Code so it's fine to bump

benoitf avatar Aug 08 '22 09:08 benoitf