-
Notifications
You must be signed in to change notification settings - Fork 38
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
NShader not working initially in VS2017 #13
Comments
Hello, I am also suffering this issue and am unable to get NShader to work on VS2017. It worked well for a while, then it suddenly stopped working. I tried the workaround Xirema suggested and it still doesn't work. I've followed these instructions to get the activity log, and I found this relevant part of it: <entry>
<record>402</record>
<time>2017/04/02 04:14:53.577</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Unexpected system error mode before loading package [NShader]</description>
<guid>{DD9B8CDE-96A0-4442-BF6F-083A7F43D453}</guid>
</entry>
<entry>
<record>403</record>
<time>2017/04/02 04:14:53.577</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [NShader]</description>
<guid>{DD9B8CDE-96A0-4442-BF6F-083A7F43D453}</guid>
</entry>
<entry>
<record>404</record>
<time>2017/04/02 04:14:53.593</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [NShader]</description>
<guid>{DD9B8CDE-96A0-4442-BF6F-083A7F43D453}</guid>
</entry> (this is the only part of the ActivityLog.xml file that contains any reference to NShader) I am using the latest version of Visual Studio 2017 (26228.10) on Windows 10 x64. I tried reinstalling a few times and it still doesn't work. |
Thanks for the log! So you installed it, it was working, and then suddenly stopped? Did you have any older versions of NShader installed?
I'll try to find some time to look into it this week!
… On 2 Apr 2017, at 2:18 pm, Gabriel M ***@***.***> wrote:
Hello, I am also suffering this issue and am unable to get NShader to work on VS2017. It worked well for a while, then it suddenly stopped working. I tried the workaround Xirema suggested and it still doesn't work.
I've followed these instructions to get the activity log, and I found this relevant part of it:
<entry>
<record>402</record>
<time>2017/04/02 04:14:53.577</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Unexpected system error mode before loading package [NShader]</description>
<guid>{DD9B8CDE-96A0-4442-BF6F-083A7F43D453}</guid>
</entry>
<entry>
<record>403</record>
<time>2017/04/02 04:14:53.577</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [NShader]</description>
<guid>{DD9B8CDE-96A0-4442-BF6F-083A7F43D453}</guid>
</entry>
<entry>
<record>404</record>
<time>2017/04/02 04:14:53.593</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [NShader]</description>
<guid>{DD9B8CDE-96A0-4442-BF6F-083A7F43D453}</guid>
</entry>
(this is the only part of the ActivityLog.xml file that contains any reference to NShader)
I am using the latest version of Visual Studio 2017 (26228.10) on Windows 10 x64. I tried reinstalling a few times and it still doesn't work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, I installed it, used it for a run or two, and then I opened a GLSL shader and noticed it wasn't working. I didn't have any previous versions installed. |
I've installed the new release and it's fixed. Thanks! |
Oh thanks! I hadn't yet looked at this bug and wasn't sure if this would be fixed with the release. I'll do some more testing before I close this though. |
It works for me too after installing the new release of VS2017 |
Great thanks! |
After installing only the newest version of NShader (v2.4), I also had this issue. I tested NShader while my previous shader extension (HLSL Tools) was disabled. To get NShader working for me, I had to fully uninstall HLSL. |
Thanks for the bug report!
Were you previously running both NShader and HLSL Tools together successfully?
… On 21 Apr 2017, at 4:50 am, naqaden ***@***.***> wrote:
After installing only the newest version of NShader (v2.4), I also had this issue. I tested NShader while my previous shader extension (HLSL Tools) was disabled. To get NShader working for me, I had to fully uninstall HLSL.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
No problem. I started with only HLSL Tools, then disabled it before installing NShader. I never tried both enabled together. |
Same issue, installed fresh, syntax highlighting does not work. |
Did you get any error messages? Does it show up in Help->About? What was the extension of the file you opened? How did you open it - via File->Open, or solution explorer, or drag/drop into VS, or some other means? |
No error messages. It does show up as ver 2.4 in Help-About. Extension is .vert (shader.vert), opened via solution explorer and was added by first creating a text file, then naming it shader.vert. |
+1 here, vs2017. .vert and .frag not highlightning |
+1 Hopefully there's no personal data in here. |
Thanks for the info. In the mean time why don't you try Hlsl Tools. It has a lot more features than NShader. Honestly I'm not sure I'm even interested in continuing to support NShader now that Hlsl Tools exists. |
Unfortunately I'm working with GLSL, so I chose to edit my shader files in VS Code with this extension: https://marketplace.visualstudio.com/items?itemName=slevesque.shader |
Also GLSL user here |
You should be able to use Hlsl Tools with GLSL files. You can add extra file extensions for it to parse via Tools->Options->Text Editor->File Extension. Although it will complain about various GLSL types that it doesn't know about. |
I got it to work after disabling the SPIRV-VSExtension by Sascha Willems. Seems like they were conflicting. |
Had the same problem. Anyway, thanks to Samizzo for keeping NShader alive, and Tim Jones for HLSL Tools. |
Thanks for letting us know about that! The NShader code base is quite old and dates back to VS 2008, and the Visual Studio extension SDK has changed over the years, so I guess that's why we've been having problems. I'll continue to tinker when I have time (working hard to release our game at the moment though!). |
@ssteinberg what about creating a seperate repo so we can maintain this 😃? |
Unlinked from HlslTools and renamed. |
Thanks @ssteinberg. Yeah definitely needs maintenance |
Can you enable that issues can be opened? |
Done |
That's great, thanks for doing that! |
Hey guys, I had this problem with the latest release, vanilla install. No biggie though. |
Would like to reiterate what @Swyter said, SPIRV-VSExtension seems to be conflicting/blocking NShader from kicking in. |
@Markyparky56 I don't have that extension and still had the problem described here though. |
I've got a conflict with the "Visual Studio 2017 Tools for Unity" Version: 3.1.0.0. Deactivated it and NShader work again. (Can't say if Unity Extension is a part of vanilla VS) |
Split off from issue #12:
"I just installed NShader in 2017 and had the same problem as Xirema. I got it to work by disabling NShader, restarting Visual Studio, re-enabling Visual Studio and then restarting again."
The text was updated successfully, but these errors were encountered: