Closed droidchef closed 4 weeks ago
@msridhar I was going through some other issues and it looks this issue might be related to an issue you have created https://github.com/ucr-riple/NullAwayAnnotator/issues/237
Why do I think so? Because compilation of the target module/project does fail in this case due to the NullAway complaining about some objects. 🤔 Wondering if there is a workaround you already know about this, just yet?
@droidchef thanks for all the feedback! I'm at a conference this week along with @nimakarimipour. We should have more time to look in a few days.
Thanks @msridhar! Looking forward to getting these issues resolved with your and @nimakarimipour's help.
Hi @droidchef,
We're still busy with the conference, but I took a quick look. Based on the configuration in the issue description, it looks like the immediate problem is with the paths in config.json
for NULLAWAY
and SCANNER
. They should be absolute paths instead of relative paths.
For example, this:
"CONFIG_PATHS": [
{
"NULLAWAY": "config.xml",
"SCANNER": "scanner.xml"
}
]
should be:
"CONFIG_PATHS": [
{
"NULLAWAY": "/Users/bytedance/workspace/trial/NullAway/config.xml",
"SCANNER": "/Users/bytedance/workspace/trial/NullAway/scanner.xml"
}
]
Let me know if this helps! Sorry for the inconveniences, we will update our docs to clarify these and work on #255.
Also we are planning to remove -p
option where you can set configuration inside a json file and instead only work with command lines options.
Thank you @nimakarimipour This recommendation worked! I was able to get annotator to run on my target.
@droidchef Glad it worked 🙂. Closing this issue.
Describe the bug I have NullAway configured on my module and getting some errors reported when I build it. Now I am trying to configure the annotator to annotate the objects in that module. When the I run the annotator jar, I get an exception stating "class_info.tsv" file is not found.
To Reproduce Apply NullAway and NullAwayAnnotator to the gradle module and run the annotator jar. Here is how my target gradle module is configured:
Here is my
config.json
Here is my config.xml
Here is my scanner.xml
Expected behavior Expecting the Annotator to provide some annotations either as a diff or in place. I am not sure based on the documentation what is supposed to yield so unable to provide exact response for this section since this is my first time trying out this project.
Stack trace
OS (please complete the following information):
Would be happy to answer any followup questions and provide more info if that helps you figure out the issue.
I appreciate this project very much and would be grateful for any support I can get to move past this error. 🙏