-
Notifications
You must be signed in to change notification settings - Fork 29
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
Incompatible with NVIDIA NSIGHT #76
Comments
Thanks for your feedback! |
all other extensions work fine (such as .comp) but just only .glsl does not recognize. It uses default C++ syntax highlighting |
I tried #32 and .fsh works but not .vsh. .glsl and .vsh must have been associated with other programs. How can I associate them back? |
Sorry! I did not understand your original message correctly! |
Microsoft Visual Studio Community 2019 |
tried .glsl -> .gls and it works fine. |
Hm the only extension that could make trouble is the spirv one, but I after installing it myself, I have no problems with |
Tried 16.8.3 but no success. |
I have this same issue, however this started happening AFTER I updated Visual Studio to 16.8.3! I also have the issue that even when syntax highlighting shows (when manually setting the file's extension to the appropriate shader type), i still have no auto-completion. I have tried reinstalling the extension and even went as far as resetting visual studio altogether, but the issues persist. Any idea on what might be going wrong? |
Found what the problem was, i recently installed the CUDA toolkit and with it came Nsight for visual studio and it was messing with glsl for some reason. |
Then removing CUDA toolkit will sort out? |
It works after uninstalling all CUDA and NSights. Thanks By the way, it is possible I can manually add |
Thanks for finding the problem! I did not make the glsl keyword definition user changeable, because I found loading external files kind of problematic with VS extensions. But including 'rayQueryInitializeEXT', 'rayQueryProceedEXT' or other new keywords is straight forward: For all glsl parsing etc. I created a separate project https://github.com/danielscherzer/GLSLhelper/tree/master/GLSLhelper |
I didnt need to remove the CUDA toolkit itself, just the Nsight visual studio extension that comes with it. The fact that it was installed broke multiple parts of glsl, for example auto-completion was nowhere to be found even with the right file extensions and syntax highlighting working. |
pulled and requested for merging glsl ray tracing (3 files) |
new version with your additions |
Thanks, it works great. |
Thanks for the info! -> new version |
is this issue resolved? |
Nsight interferes with my extension; If you set an auto detect extension that works, the shader type should be found automatically, by analysing the source code. Maybe this is already sufficient for you. |
Is this issue resolved? |
@danielscherzer no, it's still not fixed in version 0.10.125 |
When I startup Visual Studio, I see this message in status bar |
Yes! This is a message I print, when extensions, like Nsight get exclusive domain for an file extension. The only workarround I know is to use a different file extension for the shaders you want to use with my extension. This can be configured in the option menu. |
I changed extension to .shader on both options and files, but still no syntax highlighting. |
Did you do a restart after changing the extensions? |
Yes, I did.
пт, 13 авг. 2021 г., 19:59 Daniel Scherzer ***@***.***>:
… Did you do a restart after changing the extensions?
|
Installed product versions
Description
all other extensions work fine but glsl extension. It seems something is overriding to use of glsl with the default syntax highlight
Perhaps some change in the window registry to resolve this issue?
Steps to recreate
have followed the install guide
Current behavior
.glsl extension does not highlight
Expected behavior
.glsl syntax highlight
The text was updated successfully, but these errors were encountered: