Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?
-
What I've tried so far:
- Restarting VS
- Opening the file individually instead of as part of a project/solution
- Opening the file after using "open folder" on its parent folder
- Restarting computer entirely
What I haven't tried yet:
- Repair install of Visual Studio
What's weird is that there's some kind of "ESLint" thing running in my Error List which I'm not sure I ever turned on and I'm wondering if that's somehow breaking/over-riding the built-in VS Intellisense? Just a theory. I'm stumped.
-
Also Format Document and Format Selection are not working, despite them being present in the menus and not greyed-out or anything.
-
With apologies to Douglas Adams:
"The difference between a machine that can go wrong and one that can't possibly go wrong is that when the machine that can't possibly go wrong goes wrong, it's impossible to get into or fix."
Intellisense seems to have been designed as a system that "can't possibly go wrong". I can't find any diagnostic information about it anywhere. It doesn't bring up any error messages when I pick "Format Document" (it simply does nothing). Very frustrating.
-
Other things that don't work but I'm 99% sure used to: code folding, format on typing "}", even automatically tabbing to the correct depth.
Ok fuck this I'm trying the repair install. I can't work like this.
-
Did you try clearing out the generated files? Not sure what JS might generate, but I get <projectname>.vc.db, ipch/<lots> for my C++ projects - those are now in a hidden
.vs
directory.
-
@dcon No? I did "open as folder", so there aren't any files to clean out AFAIK.
-
Did you try clearing intellisense cache?
Ctrl-Shift-R apparently does it, though since there's no feedback it's impossible to tell...
-
Updates:
@dcon said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
Did you try clearing out the generated files? Not sure what JS might generate, but I get <projectname>.vc.db, ipch/<lots> for my C++ projects - those are now in a hidden
.vs
directory.Even if you do "open folder", VS apparently creates this moronic directory which has a period indicating it should be hidden but is created on an OS where period does not make a folder hidden. Microsoft is quickly turning to shit, guyz.
Anyway, deleting the ".vs" folder makes difference.
@tsaukpaetra said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
Ctrl-Shift-R apparently does it, though since there's no feedback it's impossible to tell...
AFAICT this does nothing at all. Well I know you said there's no feedback, but afterwards it also doesn't enable intellisense again.
I'm starting to think that VS is somehow not detecting this file ending in .js is actually JavaScript... like it thinks it's a plain text file? I'm really stumped.
I got shit to do in JS and this is really pissing me off. I can use VSCode which does a reasonable job, but it has the wrong autoformat rules and I dno't know how to change them and I don't want to spend the time right now to figure it out. Infuriating.
-
@blakeyrat said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
What's weird is that there's some kind of "ESLint" thing running in my Error List which I'm not sure I ever turned on and I'm wondering if that's somehow breaking/over-riding the built-in VS Intellisense? Just a theory. I'm stumped.
Since linting is hipsterspeak for static analysis, and JavaScript is ECMA Script, I would expect that ESLint is what gives JS files their intellisense now.
-
@magus said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
Since linting is hipsterspeak for static analysis, and JavaScript is ECMA Script, I would expect that ESLint is what gives JS files their intellisense now.
I don't give a shit if JS files get their intellisense from Visual Studio, ESLint, or Jesus himself risen from the grave, I just want the fucking thing to work!
-
@blakeyrat said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
Even if you do "open folder", VS apparently creates this moronic directory which has a period indicating it should be hidden but is created on an OS where period does not make a folder hidden. Microsoft is quickly turning to shit, guyz.
On my system, it is hidden. I have to either turn on hidden files (temporarily), or in cmd do
dir /a
-
@dcon I imagine what they're doing there is an attempt to make their stuff more compatible, in case someone tries to use that directory from Linux. They mark the file as hidden correctly for Windows, and then also for Unix.
-
@dcon I might have "always show hidden folders" turned on in Explorer, but usually they appear dimmed.
ANYWAY.
Does anybody else have suggestions on how to get Visual Studio to do its fucking job again? Or at least something I can use to troubleshoot the issue?
-
@blakeyrat said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
"ESLint" thing running in my Error List
ESLint is software that yells at you when your code isn't formatted correctly. That's probably not breaking your intellisense, though it's possible the plugin is written very badly I suppose.
-
have you tried tools > import and export settings > reset all settings? you can export your current settings first and selectively re-import them to put things back you how like and you know won't break js again.
-
@blakeyrat said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
I'm starting to think that VS is somehow not detecting this file ending in .js is actually JavaScript... like it thinks it's a plain text file? I'm really stumped.
Is syntax highlighting working? If so, that would suggest it still realises it's JS
-
I finally had a free half hour to do a clean install.
Works now.
-
Sorry you had such trouble.... Guessing that you did not:
- Enroll in customer feedback when installed
- Submit Logs before re-install
Potentially more likely (but not very)
a) Did you see the memory size of devenv?
b) Was there "pinned" CPU?
c) Was there heavy Memory FaultsAlso one question... Is this RTM, Update 1 or Update 2?
-
@thecpuwizard Pay me.
-
@blakeyrat said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
@thecpuwizard Pay me.
Hmmm... NO.
Seriously I was just trying to help. Getting those pieces of information to the Product Team is the best way of really addressing the problem and improving both your experience and the product.
Pretty sure both Mark B and Nitian J. [the two PM's on JS related aspects of Visual Studio] would have been happy to have that information as it seems a slight variant [if the content of the e-mail was right, along with my interpretation] of some problems I have been work with them on.
If you do not want help, than fine...... Anyone else who is ever interested is free (and welcome) to contact me.
-
@thecpuwizard See now this is getting into old CPU Wizard territory. Name-dropping is only one small step to the braggartry we used to be inundated with.
I'll help those clowns debug their shitty code when I get compensated for it in some way. Until then, I'm just going to call them clowns and say their code is shitty.
If Microsoft has become so open source-y they're making folder named ".vs" and using something called "ESLint" in their flagship development project, it's hopeless to expect bug-free software. This is open source-y development, it's going to be shitty from here on out.
-
@blakeyrat said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
I finally had a free half hour to do a clean install.
Works now.
You can clean install in half an hour?!? I can barely get Entity Framework to refresh the model in that amount of time!
-
@tsaukpaetra Get an SSD?
-
@blakeyrat said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
@tsaukpaetra Get an SSD?
I am on an SSD...
But, I'm really surprised you didn't screech and rage at my non-comparable anecdote. Does this mean you like me? ;)
-
@tsaukpaetra said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
I am on an SSD...
Hmmm.. Have you tried a RAID Stripe [4 to 8 drives] of SSD?????
<<ducking and running>Saw a WTF recently, person was proud of an SSD with USB 2.0.... OK, you get the mechanical, but why cripple the speed???
-
@thecpuwizard said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
@tsaukpaetra said in Visual Studio 2017 - JavaScript Intellisense stopped working, how do I bring it back?:
I am on an SSD...
Hmmm.. Have you tried a RAID Stripe [4 to 8 drives] of SSD?????
<<ducking and running>Saw a WTF recently, person was proud of an SSD with USB 2.0.... OK, you get the mechanical, but why cripple the speed???
No, I'm just not blatantly telling you that the bottleneck actually isn't the SSD (the sum total of all the EF model data that it's updating is < 1 MB).