-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Code completion for import suggestion stopped working #27640
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
Comments
@zfeher Can you please provide example code or a small example project that shows this issue. Also, try upgrading your workspace to use |
Also hitting this issue.
|
@mjbvz I checked with typescript@next and it showed the suggestions but still printing a similar console error. It prints the error on every key type and when I am trying to accept the suggestion (which fails). Tried to quickly setup a minimal 2 file scenario ( So it is interesting. I will try to create a small version of our project (javascript with jsconfig.json) where the problem can be reproducable tomorrow. The error via using typescript@next
|
@RyanCavanaugh This is another 3.1.5 candidate |
@mjbvz after playing with the issue ~2,5 hours I managed to isolate the problem which you can use to reproduce the issue. As it seems the |
@Andy-MS can you look into this and make sure the change makes its way into |
@Andy-MS I checked it again with a freshly installed typescript@next which solved the initial problem, no more exception on the console and the suggestions were listed. The accepted "weird" import format problem remained though. Then I checked the typescript version which was 3.2.0-dev.20181010. Waited a little then tried another typescript@next install which installed the 3.2.0-dev.20181011 version and that solved the import format problem as well. So it seems the problems are solved \o/ |
@Andy-MS Hmmm as it seems the problem still occurs. Earlier I checked my small example project only which was extracted from our full project. There everything worked and works still just fine. But now in our full project I noticed that accepting the import suggestion still doesn't work :( The import suggestions are listed in code completion but when I try to accept them they fail with the error. Also noticed that the listed suggestions has no Tomorrow I will try to create another small example project again to see what might be causing the error. Similar error printed like before:
|
@zfeher can you open up a separate issue for that so it's easier to track your issue? |
@DanielRosenwasser Yes I can create another issue but I don't understand how and why would it be any different than this one (which is also created by me)? The same problem still exists though some part of it is fixed, Anyway I will try to find out which npm package (if the |
@DanielRosenwasser as per your request I created another issue (#27857) with an updated example project. I found another 3 dependencies which cause the crashing of the code completion feature. |
Hello, maybe I found similar problem when Typescript imports some JavaScript - bug #28014. Example with the particular problematic JavaScript is included. Problem is also with 2.9.x. I also don't know how to exclude these JavaScript from Typescript compilation via exclude - see my issue. Thanks. |
From @zfeher on October 9, 2018 9:44
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The following error occurs in TypeScript output
Copied from original issue: microsoft/vscode#60273
The text was updated successfully, but these errors were encountered: