I fixed by disable “auto-fix Lints” feature
NO It didn’t fixed
when i debug the agent function
function Dko(i, e, t, n) {
kL(e !== void 0);
const s = i.repeated;
switch (i.kind) {
case "scalar":
case "enum":
let r = i.kind == "enum" ? Sl.INT32 : i.T;
if (s)
if (kL(Array.isArray(e)),
i.packed)
cqc(t, r, i.no, e);
else
for (const o of e)
Y1t(t, r, i.no, o);
else
Y1t(t, r, i.no, e);
break;
case "message":
if (s) {
kL(Array.isArray(e));
for (const o of e)
Rko(t, n, i, o)
} else
Rko(t, n, i, e);
break;
case "map":
kL(typeof e == "object" && e != null);
for (const [o,a] of Object.entries(e))
lqc(t, n, i, o, a);
break
}
}
e: 2147483648
i : {
"no": 2,
"name": "column",
"kind": "scalar",
"T": 5,
"localName": "column",
"jsonName": "column",
"repeated": false,
"L": 0,
"delimited": false,
"req": false,
"opt": false,
"packed": true
}
s: <value unavailavle>
t: {
"stack": [],
"textEncoder": {},
"chunks": [],
"buf": [
8,
160,
1,
16
]
}
and then they bring this data to fuction rqc().writeMessage
writeMessage(i, e, t) {
const n = i.getType();
for (const s of n.fields.byNumber()) {
if (!wko(s, i)) {
if (s.req)
throw new Error(`cannot encode field ${n.typeName}.${s.name} to binary: required field not set`);
continue
}
const r = s.oneof ? i[s.oneof.localName].value : i[s.localName];
Dko(s, r, e, t)
}
return t.writeUnknownFields && this.writeUnknownFields(i, e),
e
},
Dko(s:{
"no": 2,
"name": "range",
"kind": "message",
"localName": "range",
"jsonName": "range",
"repeated": false,
"delimited": false,
"req": false,
"opt": false,
"packed": false
}
r: {
"startPosition": {
"line": 160,
"column": 1
},
"endPosition": {
"line": 160,
"column": 2147483648
}
}
e: {
"stack": [],
"textEncoder": {},
"chunks": [
{
"0": 10,
"1": 28
},
{
"0": 84,
"1": 111,
"2": 111,
"3": 32,
"4": 109,
"5": 97,
"6": 110,
"7": 121,
"8": 32,
"9": 98,
"10": 108,
"11": 97,
"12": 110,
"13": 107,
"14": 32,
"15": 108,
"16": 105,
"17": 110,
"18": 101,
"19": 115,
"20": 32,
"21": 40,
"22": 50,
"23": 32,
"24": 62,
"25": 32,
"26": 48,
"27": 41
}
],
"buf": [
18
]
}
t: {
"writeUnknownFields": true
})
--------
i: {
"message": "Too many blank lines (2 > 0)",
"range": {
"startPosition": {
"line": 160,
"column": 1
},
"endPosition": {
"line": 160,
"column": 2147483648
}
},
"relatedInformation": [],
"severity": "DIAGNOSTIC_SEVERITY_ERROR"
}
e: {
"stack": [],
"textEncoder": {},
"chunks": [
{
"0": 10,
"1": 28
},
{
"0": 84,
"1": 111,
"2": 111,
"3": 32,
"4": 109,
"5": 97,
"6": 110,
"7": 121,
"8": 32,
"9": 98,
"10": 108,
"11": 97,
"12": 110,
"13": 107,
"14": 32,
"15": 108,
"16": 105,
"17": 110,
"18": 101,
"19": 115,
"20": 32,
"21": 40,
"22": 50,
"23": 32,
"24": 62,
"25": 32,
"26": 48,
"27": 41
}
],
"buf": [
18
]
}
Too many blank lines (2 > 0)
this message is from “ansbile-lint”. i hope this help you debug this bug