Not getting any data in pair array #1063
-
Hi All, I am using below code
I am getting response. where pairs is null. Before when i was using Dolos, i used to get below response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, in version 2.1.0 we've changed how we calculate pairs in order to reduce memory usage. We no longer have a list of const dolos = require("@dodona/dolos-lib");
const instance = new dolos.Dolos();
const reportPromise = instance.analyzePaths(files);
reportPromise.then(
function(report) {
const pairs = report.allPairs();
console.log( JSON.stringify(pairs));
},
function(err) {
console.log(err);
}
); You could also set There are other small breaking changes like this because of the update, you can check them out here: #1011 |
Beta Was this translation helpful? Give feedback.
Yes, in version 2.1.0 we've changed how we calculate pairs in order to reduce memory usage. We no longer have a list of
scored
pairs in theReport
object that is the result ofanalyzePaths
. Instead, you can call theallPairs()
function. You can change your code to this:You could also set
report.scored = report.allPairs();
if you want to do minimal changes to your code.There are other smal…