Comments (9)
I have just tested with a web beta sarif validator. The outcome is exactly the same as this extension. I do not know from this result, whether the root cause is within the extension, Visual Studio, or the JSON based schema.
from sarif-visualstudio-extension.
@simmse Can you share a SARIF file that gives you this error? It would be ideal if you had a sanitized (not containing any sensitive or confidential information) and minimal SARIF file that demonstrates the problem.
It would also help if I knew the exact compiler command line that produced the file.
Thanks!
P.S. The error message is from a runtime exception in the code. It's not referring to the name of a SARIF property; it's just a parameter name, from code like this:
public void DoSomethingToFile(string path)
{
if (path == null) throw new ArgumentNullException(nameof(path));
...
}
It has nothing to do with the SARIF standard.
from sarif-visualstudio-extension.
@lgolding Perhaps something has been modified in the more recent 2019 Visual Studio (e.g. 16.1.4). When I open with File | Open, the editor area displays the file. I am not sure what is supposed to happen now. I can see the sarif (attached). Beyond that it is not clear what else is supposed to occur. The preview 2019 version I have is 16.1.0 Preview 2.0. Please remove the .txt ending to observe .sarif behavior. Remember that this originates from the demo sample by Microsoft.
annotations.nativecodeanalysis.sarif.txt
from sarif-visualstudio-extension.
Ok, thank you for the repro file. I can reproduce your observation:
-
I am running VS 2019 v16.1.4.
-
I have installed the Microsoft SARIF Viewer extension, v2.1.3 (the latest).
-
I removed the ".txt" extension from the file annotations.nativecodeanalysis.sarif.txt.
-
In VS, I do File, Open and select annotations.nativecodeanalysis.sarif.
-
The viewer notices that the sample file does not conform to the final, official version of SARIF (which is 2.1.0), and so it automatically translates the file to the latest version, and offers to save the transformed file. I said "No", but you can say "Yes" if you like:
- ... and it crashes:
I will debug this and provide a fix. Thanks!
from sarif-visualstudio-extension.
@simmse Ok, I know what the trouble is. In the course of converting from the old to the new version, we aren't handling the empty helpUri
values in the input file. (Strictly speaking, that makes the input file invalid, but no matter.)
@michaelcfanning FYI. Diagnosing this I found a couple of unrelated bugs in the PrereleaseCompatibilityTransformer
(@simmse, that's the component in the SARIF SDK that translates old version to the most current.) I will fix all of this, publish a new SDK NuGet, then update the viewer to use the latest NuGet.
I'll take care of this tomorrow.
from sarif-visualstudio-extension.
Well, the root cause wasn't what I thought it was. Still looking. The good news is, I got some nice unit tests out of it ;-)
from sarif-visualstudio-extension.
No, that is the root cause! My test had a bug. Now the test correctly shows the problem. I'll stop the stream of consciousness now...
from sarif-visualstudio-extension.
@simmse, This is fixed. I'll publish a new VSIX to the marketplace as soon as our build pipeline finishes producing a signed binary.
from sarif-visualstudio-extension.
@simmse, version 2.1.4 of the SARIF Viewer extension for Visual Studio is now available on the marketplace. Please let me know if this solves your problem.
from sarif-visualstudio-extension.
Related Issues (20)
- Fix background color for extension settings HOT 2
- Unhandled exception after opening a folder HOT 1
- Viewer cannot open embedded file content in VS HOT 1
- Compatibility issue referencing Interop DLL HOT 5
- Move common functionalities into a shared place HOT 1
- This repo is missing important files HOT 1
- Visual Studio extension does not have output pane tab for detailed activity and debugging logs HOT 1
- Installer silently fails when attempting to apply to two products, but succeeded when attempted individually. HOT 3
- Investigate clarity of user experience when opening log file HOT 1
- doesn't work on VS 2022 HOT 4
- Per-repo user setting for GHAS integration saved in .vscode/settings.json
- Please remove dependency on C# and VB in the SARIF extension for VS 2022
- Extension output navigation is not intuitive
- Error loading several SARIF logs HOT 1
- Double clicking an error list item when the start of message is the same causes order to scramble
- Double clicking an error list item can cause the corresponding popup to disappear HOT 1
- Opening a folder will not populate sarif error list after the initial open
- Sarif viewer causes crash of VS2022 v17.5.4
- Addin Errors in VS2022 parsing codeql sarif HOT 2
- SARIF viewer code finder issue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sarif-visualstudio-extension.