Skip to content
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

No color settings in VS 2015 #15

Open
Lex-DRL opened this issue May 17, 2017 · 12 comments
Open

No color settings in VS 2015 #15

Lex-DRL opened this issue May 17, 2017 · 12 comments

Comments

@Lex-DRL
Copy link

Lex-DRL commented May 17, 2017

The title is self-explanatory.
Just installed the latest release (2.4) of this ext to the VS 2015 - and there's no syntax highlighting at all. More importantly, no way to specify it manually because there are no "NShader – Type" settings under Tools > Options > Environment > Fonts and Colors.

Tried uninstalling and re-instaloing the ext, also tried version prior to VS 2017 support (2.1) - the same thing.

@samizzo
Copy link
Owner

samizzo commented May 17, 2017 via email

@Lex-DRL
Copy link
Author

Lex-DRL commented May 18, 2017

I didn't have NShader installed in the current version of VS (2015 update 3).
But I may have tried it some time ago, when I was using VS 2013.
Anyway, prior to the installation of my currently used VS, I have manually cleaned up whatever I was able to find (any tracks of VS in Program Files, AppData and ProgramData, including Common* folders).

However, I tried the following extension (installed and uninstalled it) before installing your version of NShader:
https://marketplace.visualstudio.com/items?itemName=MarcinODev.ShaderUnitySupport

@Lex-DRL
Copy link
Author

Lex-DRL commented May 18, 2017

I can try installing your extension on the "pure" VS, if you tell me how I can do that. What files/folders on my system disk I need to remove to clean up VS for this ext?

@samizzo
Copy link
Owner

samizzo commented May 20, 2017

I'm not totally sure what to do aside from just uninstalling the extension from within VS. You could try extrapolating the instructions here to NShader.

@Lex-DRL
Copy link
Author

Lex-DRL commented May 20, 2017

That topic is about another issue: uninstallig ah extension when it can't do it properly from GUI in VS. I don't have this issue. I have successfully uninstalled that extention before installing yours.

It may have left some of it's settings somewhere in the OS, but I don't know where (if it did).

@Lex-DRL
Copy link
Author

Lex-DRL commented May 21, 2017

I've spent entire day uninstalling VS, .NET framework and VC++ redistributables and then cleaning my system from any garbage left after it. I've removed everything I could find (both on the system disk and in the registry). I searched for any mentions of VS, NSHADER, just "shader" and Resharper.

After it, I've installed from scratch latest .NET framework + VS 2017 (Community).
And now, on the perfectly clean VS, I'm installing your version of NSHADER.

But still, there are no color settings.
I do have "Shader Language" options block under "Text Editor" group. But there's not even a single option labled "NSHADER - ..." under "Environment" group.

I'm desparate.
Are you sure it works in VS 2015/2017?
001
002

@samizzo
Copy link
Owner

samizzo commented May 22, 2017

I'm sorry to hear that. I've been using it in VS2015 and 2017 on my home machine, and other people have reported that it works as well. However, I have just installed VS2017 on my work machine and now I see that it's not working, so at least I have a repro case now! I haven't yet figured out what's going on; the extension is correctly tokenising the file and returning colours for tokens, but VS doesn't seem to be using those colours when rendering the text.

@samizzo
Copy link
Owner

samizzo commented May 22, 2017

In the meantime, why don't you give HLSL Tools a try?

@Lex-DRL
Copy link
Author

Lex-DRL commented May 22, 2017

Oh, I just didn't know about that ext.
But it seems great. Thanks a lot!

@samizzo
Copy link
Owner

samizzo commented May 22, 2017

Yeah I think it's better than NShader actually. It has a lot of extra features like navigation and statement completion. I think the syntax colouring might not be quite as extensive as NShader but it works!

@blair0011
Copy link

I have a fix for this. It seems that the visxmanifest only allows MPF versions 12 & 13. I am on 16 (aka. Visual Studio 2017). If you open up the range to be [12.0,) and recompile everything works. I had to figure out this fix because HLSL Tools doesn't do glsl compute shaders well, and I really need something to work for those.

@samizzo
Copy link
Owner

samizzo commented Jul 20, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants