nshader icon indicating copy to clipboard operation
nshader copied to clipboard

No highlighting on fresh VS2017 installation

Open dandy-step opened this issue 8 years ago • 21 comments

I've been reading the previous issues and trying every solution, including disabling all the other extensions and reinstalling VS2017 Community (15.3.5). The issue is that no highlighting ever appears on my shader files, and there is no nShader section under Options although "Shader Language" does appear under the Text Editor section. Enabling, disabling, and reinstalling the extension doesn't seem to do anything either, except that with the extension enabled I get no highlighting at all and with it disabled I get the basic highlighting. Opening the file through a solution, manually, or creating a new shader file results in the same thing.

The extension appears in About section, and there are no errors. Going through the activity log and searching for "nShader" yields zero results. Don't really know where to go from there.

screenshot 686

dandy-step avatar Sep 24 '17 17:09 dandy-step

Same issue here, VS2017 Enterprise 15.4, got the "Shader Language" title under 'Options->Text Editor', but no highlight in editor view, no 'Nshader- ...' titles under 'Options->Environment->Fonts and Colors'.

ghost avatar Oct 10 '17 15:10 ghost

Same here with VS2017 Enterprise 15.3.4

themike10452 avatar Nov 01 '17 22:11 themike10452

Same issue on Community 15.4.2. Hoping this gets fixed soon.

ok4pi avatar Nov 06 '17 00:11 ok4pi

can used for vs2017?

marshal-it avatar Nov 15 '17 16:11 marshal-it

Same here, VS 15.4.4 NShader 2.4

felixkraas avatar Nov 16 '17 22:11 felixkraas

Fixed mine by manually adding the file extensions under Options->Text Editor->File Extension. This is on VS community 2017 5.4.4/NShader 2.4

pxpm3eswt96jxjkpf58uow

MStachowicz avatar Nov 26 '17 12:11 MStachowicz

MStachowicz Could you tell us what version of VS you are using? I have tried that, but it didn't fix the problem for me.

bakeunbin avatar Nov 26 '17 20:11 bakeunbin

@Schmerzmittel Hey VS is community 2017 15.4.4 using NShader 2.4

MStachowicz avatar Nov 26 '17 21:11 MStachowicz

Okay, guys. I think I figured out something. My VS was in different language. When I changed it to English, the shader started to work again. I don't know how many of you are using VS in different language, but if you are using VS in different language, maybe you can change it to English.

bakeunbin avatar Nov 26 '17 21:11 bakeunbin

Same issue here. Visual Studio is using English.

Mapping the extensions to NShader did not work.

DianaNites avatar Dec 03 '17 00:12 DianaNites

Same here, the .fs file extension had a bit of highlighting before using NShader, after adding .fs to the list it became just plain white text in the editor.

rienik avatar Dec 03 '17 16:12 rienik

I checked the install log and it said: Skipping 'C:\Users\<username>\AppData\Local\Microsoft SDKs' as if it doesn't exist The extension with ID 'NShader.51a01e9d-eb56-4ee2-a9fd-8212bf6bf2b1' is not installed to Visual Studio Community 2017. So I added the folder 'Microsoft SDKs' to '\AppData\Local\', reinstalled it, and it worked! Although the install log still said: The extension with ID 'NShader.51a01e9d-eb56-4ee2-a9fd-8212bf6bf2b1' is not installed to Visual Studio Community 2017.

rienik avatar Dec 03 '17 17:12 rienik

@rienik Thanks, i can confirm that fixed the issue for me as well.

DianaNites avatar Dec 03 '17 21:12 DianaNites

@rienik Dang, that works indeed! Maybe some additional info: Highlighting used to work until I updated Visual Studio 2017 some days ago. Also installed the latest Windows SDK in addition to previously installed Windows SDKs. Afterwards highlighting was not working anymore.

johannesugb avatar Dec 05 '17 14:12 johannesugb

@rienik your solution works for me as well. Thanks.

themike10452 avatar Dec 09 '17 20:12 themike10452

The issue seems to have reappeared for me. Highlighting has disappeared

DianaNites avatar Dec 29 '17 15:12 DianaNites

Same here: the issue has reappeared even though Microsoft SDKs folder is still there and I could not see any errors in the install log.

Currently, it is working again (by accident?). I have uninstalled and installed it three times in a row. I have no idea, why it behaves that way. Does Visual Studio write to a logfile about problems with extensions?

johannesugb avatar Jan 09 '18 17:01 johannesugb

Happened again after Windows update KB4074588. Microsoft SDKs folder was gone => re-created it, re-installed NShader => worked again.

johannesugb avatar Feb 16 '18 17:02 johannesugb

I am rather certain this is extension is simply broken on VS2017.

  • Brand new update to VS2017 Enterprise 15.7.3
  • Created "Microsoft SDKs" folder in my "AppData/Local" directory
  • Installed latest NShader VSIX (2.4)
  • Added "frag" and "vert" to open with Nshader in "Tools->Options->Text Editor->File Extension"
  • Open ".frag" and ".vert" file in VS after restarting and.... NOTHING! No highlighting, no nothing. Might as well just be a regular text document.

ForeverZer0 avatar Jun 05 '18 20:06 ForeverZer0

Sorry I just haven’t had time to maintain this lately. I would suggest you give HLSL Tools a try https://github.com/tgjones/HlslTools

I’m also happy to take pull requests that fix bugs. I won’t have time to look at these bugs for another couple of months at the earliest.

On 6 Jun 2018, at 6:13 am, ForeverZer0 [email protected] wrote:

I am rather certain this is extension is simply broken on VS2017.

Brand new update to VS2017 Enterprise 15.7.3 Created "Microsoft SDKs" folder in my "AppData/Local" directory Installed latest NShader VSIX (2.4) Added "frag" and "vert" to open with Nshader in "Tools->Options->Text Editor->File Extension" Open ".frag" and ".vert" file in VS after restarting and.... NOTHING! No highlighting, no nothing. Might as well just be a regular text document. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

samizzo avatar Jun 05 '18 22:06 samizzo

Thanks for you work and you comments, @samizzo ! HlslTools do not provide GLSL highlighting, do they?

johannesugb avatar Jul 12 '18 08:07 johannesugb