-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
NONE of the code features work in ES6 projects for language type: Javascript #2054
Comments
It's not related but i'm just curious to know how do you capture your gifs? I capture the screen with Quicktime and then convert that to gif. Is there any better solution (direct / 1 phase) for that? |
I use LiceCap |
@moostad I can recommend ScreenToGif :) |
@jrieken let me take this one. I'll try to come up with repro steps. |
@delvarworld I've tried to reproduce it with a minimal setup and things work fine (see gif below). Since ES6 is now the default you no longer need to define it as the Since you do not even get a hover over Can you reproduce the above problems after a fresh restart? Did you get into this situation after #1991? In this case the the JS worker will have crashed. The work around is to restart Code Do you have any extensions installed (e.g. |
I checked the console, looks like vscode crashes on startup (before I type anything):
My project in question is open source and you can check it out. This file, Game.js is the only file I have open as you can see in the sidebar: |
@delvarworld having access to the source code is great. However, I wasn't yet able to reproduce your issues on OS X or Win see the gif below. @jrieken any additional insights from the stack trace? |
This the refactoring scenario from #1991 |
It tells me I'm up to date... Version 0.10.6 (0.10.6) Does visual studio code do any sort of caching of the project? I guess you could try an |
Yes 0.10.6 is the latest and the version I've used (in addition to the latest).
Code only caches the UI state (last opened file). Running npm install is a good suggestion (I was assuming node_modules are excluded in jsconfig.json), but it is a difference. I currently run into npm timeouts I'll try again later. |
npm was in better shape today and I could run After the
Here is a work around. Move the There is still a bug. I speculate that a top-level JS file refers to as JS file in a node module which results in a loop in the import graph, that makes the ImportAndExportRewriter recurse. We will replace the entire JS infrastructure with Salsa (see microsoft/TypeScript#4789) (preview Jan, default Feb). We will investigate whether it is worthwhile to fix this issue in the soon to be deprecated code base. We will add more guidance on where to put the jsconfig.json to the doc (microsoft/vscode-docs#119). On a topic unrelated to this issue. I notice, that you do not add any typings files |
It seems to recurse forever here |
The expression at that offset is so long and complex (~450.000 characters) that we shouldn't use recursion. |
I can make the @delvarworld A different workaround is to also exclude |
Thanks @jrieken and @egamma, adding Because most of my files use the ES7 spread operator, it now thinks that my entire file is in error. Unfortunately, every time I find a workaround to a show-stopping bug in vscode (of which there have been many), I hit another. I can no longer afford time contributing to this project. Good luck! |
@delvarworld thanks for joining our journey up to now. We got some really good insights from your project and we will continue to use it as a test case. Just FYI, the ES7 spread operator, it is on the Typescript roadmap for TS 2.0. Good luck to you as well. |
closing as we track JS related issues in the TypeScript land |
See GIF again:
Literally none of the editor features work.
My
jsconfig.json
:The text was updated successfully, but these errors were encountered: