You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/12/09 10:24:26 UTC
[GitHub] [echarts] StefanoMagrassi opened a new issue #16198: [Bug] VSCode Typescript language server crashes
StefanoMagrassi opened a new issue #16198:
URL: https://github.com/apache/echarts/issues/16198
### Version
5.2.2
### Link to Minimal Reproduction
https://github.com/yanstars/vscode-bug-report
### Steps to Reproduce
1. install `echarts` v5.2.2 or above
2. upgrade vscode to v1.63.0 or use Typescript v4.5.0 (or above) as workspace ts version;
3. run vscode
### Current Behavior
The editor reports this error:
> The TypeScript language service died 5 times right after it got started. The service will not be restarted
### Expected Behavior
The TypeScript language server should not crash...
### Environment
```markdown
- OS: Ubuntu 20.04
- Browser: any
- Framework: any
```
### Any additional comments?
Related issue in VSCode repository -> microsoft/vscode#138334
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] Bearprimer commented on issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
Bearprimer commented on issue #16198:
URL: https://github.com/apache/echarts/issues/16198#issuecomment-996455994
The vscode 1.63.2 is appears to fix this bug
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16198:
URL: https://github.com/apache/echarts/issues/16198#issuecomment-989717199
This issue is not created using [issue template](https://github.com/apache/echarts/issues/new/choose) so I'm going to close it. 🙊
Sorry for this, but it helps save our maintainers' time so that more developers get helped.
Feel free to create another issue using the issue template.
If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
这个 issue 未使用 [issue 模板](https://github.com/apache/echarts/issues/new/choose) 创建,所以我将关闭此 issue。
为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
如果您愿意,请使用 issue 模板重新创建 issue。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] dmateusp commented on issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
dmateusp commented on issue #16198:
URL: https://github.com/apache/echarts/issues/16198#issuecomment-1003430336
FYI I was still hitting the same issue in VSCode `1.63.2`, so I tried to compile directly with `tsc` instead
With typescript `4.5` I hit the same issue, but with typescript `4.4` it works..
```bash
❯ tsc -v
Version 4.5.3
❯ tsc
/usr/local/lib/node_modules/typescript/lib/tsc.js:47148
if (type.flags & 524288) {
^
TypeError: Cannot read properties of undefined (reading 'flags')
at getPropertyOfObjectType (/usr/local/lib/node_modules/typescript/lib/tsc.js:47148:22)
at getPropertyOfType (/usr/local/lib/node_modules/typescript/lib/tsc.js:47710:24)
at resolveESModuleSymbol (/usr/local/lib/node_modules/typescript/lib/tsc.js:40904:54)
at getTargetOfNamespaceImport (/usr/local/lib/node_modules/typescript/lib/tsc.js:40191:28)
at getTargetOfAliasDeclaration (/usr/local/lib/node_modules/typescript/lib/tsc.js:40405:28)
at resolveAlias (/usr/local/lib/node_modules/typescript/lib/tsc.js:40446:30)
at getSymbol (/usr/local/lib/node_modules/typescript/lib/tsc.js:39225:38)
at resolveNameHelper (/usr/local/lib/node_modules/typescript/lib/tsc.js:39464:34)
at resolveName (/usr/local/lib/node_modules/typescript/lib/tsc.js:39448:20)
at resolveEntityName (/usr/local/lib/node_modules/typescript/lib/tsc.js:40573:42)
Node.js v17.0.1
```
```bash
❯ npm install --global typescript@~4.4.0
changed 1 package, and audited 2 packages in 995ms
found 0 vulnerabilities
❯ tsc -v
Version 4.4.4
❯ tsc
[EDITED: returns expected compile issues I was having in my project instead of the "flags" error]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart commented on issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16198:
URL: https://github.com/apache/echarts/issues/16198#issuecomment-996511554
Thank you all. I'm going to close it as it was fixed in the latest VS Code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] removed a comment on issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] removed a comment on issue #16198:
URL: https://github.com/apache/echarts/issues/16198#issuecomment-989717199
This issue is not created using [issue template](https://github.com/apache/echarts/issues/new/choose) so I'm going to close it. 🙊
Sorry for this, but it helps save our maintainers' time so that more developers get helped.
Feel free to create another issue using the issue template.
If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
这个 issue 未使用 [issue 模板](https://github.com/apache/echarts/issues/new/choose) 创建,所以我将关闭此 issue。
为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
如果您愿意,请使用 issue 模板重新创建 issue。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] dmateusp edited a comment on issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
dmateusp edited a comment on issue #16198:
URL: https://github.com/apache/echarts/issues/16198#issuecomment-1003430336
FYI I was still hitting the same issue in VSCode `1.63.2`, so I tried to compile directly with `tsc` instead
With typescript `4.5` I hit the same issue, but with typescript `4.4` it works..
```bash
❯ tsc -v
Version 4.5.3
❯ tsc
/usr/local/lib/node_modules/typescript/lib/tsc.js:47148
if (type.flags & 524288) {
^
TypeError: Cannot read properties of undefined (reading 'flags')
at getPropertyOfObjectType (/usr/local/lib/node_modules/typescript/lib/tsc.js:47148:22)
at getPropertyOfType (/usr/local/lib/node_modules/typescript/lib/tsc.js:47710:24)
at resolveESModuleSymbol (/usr/local/lib/node_modules/typescript/lib/tsc.js:40904:54)
at getTargetOfNamespaceImport (/usr/local/lib/node_modules/typescript/lib/tsc.js:40191:28)
at getTargetOfAliasDeclaration (/usr/local/lib/node_modules/typescript/lib/tsc.js:40405:28)
at resolveAlias (/usr/local/lib/node_modules/typescript/lib/tsc.js:40446:30)
at getSymbol (/usr/local/lib/node_modules/typescript/lib/tsc.js:39225:38)
at resolveNameHelper (/usr/local/lib/node_modules/typescript/lib/tsc.js:39464:34)
at resolveName (/usr/local/lib/node_modules/typescript/lib/tsc.js:39448:20)
at resolveEntityName (/usr/local/lib/node_modules/typescript/lib/tsc.js:40573:42)
Node.js v17.0.1
```
```bash
❯ npm install --global typescript@~4.4.0
changed 1 package, and audited 2 packages in 995ms
found 0 vulnerabilities
❯ tsc -v
Version 4.4.4
❯ tsc
[EDITED: returns expected compile issues I was having in my project instead of the "flags" error]
```
EDIT: might be worth opening a separate issue or renaming this one to specify that it isn't directly related to VSCode?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart closed issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
plainheart closed issue #16198:
URL: https://github.com/apache/echarts/issues/16198
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] closed issue #16198: [Bug] VSCode Typescript language server crashes
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #16198:
URL: https://github.com/apache/echarts/issues/16198
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org