question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random notifications with "documentColumnIndex cannot be greater than the line's maximum index"

See original GitHub issue

Repro steps: Really hard to tell what causes this specific issue as it seems fairly random.

I think it might happen when autocomplete suggestions are triggered. I use a smaller vscode window where it only takes half of my screen. My only guess is that perhaps there are some situations where the autocompletion menu might not have enough space to render?!

Although this notification happens fairly often, I have not been able to determine the exact steps that will reproduce it 100% of the time.

Action: provideCompletionItems Error type: ERR_ASSERTION Error Message: documentColumnIndex (27) cannot be greater than the line’s maximum index (26)

Version: 0.5.0 OS: Arch linux VS Code Version: 1.32.2

Call Stack
Function.fromDocumentLineAndColumnIndexes (dist/extension.bundle.js:127:96193)
DeploymentTemplate.getContextFromDocumentLineAndColumnIndexes (dist/extension.bundle.js:127:92640)
Object.<anonymous> (dist/extension.bundle.js:127:125835)
Generator.next (<anonymous>)
module.exports.n (dist/extension.bundle.js:127:117380)
new Promise (<anonymous>)
module.exports.n (dist/extension.bundle.js:127:117157)
Object.<anonymous> (dist/extension.bundle.js:127:125744)
Object.<anonymous> (dist/extension.bundle.js:1:182883)
Generator.next (<anonymous>)
module.exports.n (dist/extension.bundle.js:1:181258)
new Promise (<anonymous>)
module.exports.n (dist/extension.bundle.js:1:181035)
Object.module.exports.t.callWithTelemetryAndErrorHandling (dist/extension.bundle.js:1:182800)
AzureRMTools.<anonymous> (dist/extension.bundle.js:127:125667)
Generator.next (<anonymous>)
module.exports.n (dist/extension.bundle.js:127:117380)
new Promise (<anonymous>)
module.exports.n (dist/extension.bundle.js:127:117157)
AzureRMTools.onProvideCompletionItems (dist/extension.bundle.js:127:125562)
Object.provideCompletionItems (dist/extension.bundle.js:127:121876)
define.provideCompletionItems.a.asPromise (extensionHostProcess.js:569:293)
t.asPromise.Promise (extensionHostProcess.js:48:58)
new Promise (<anonymous>)
Object.t.asPromise (extensionHostProcess.js:48:32)
O.provideCompletionItems (extensionHostProcess.js:569:264)
define.$provideCompletionItems._withAdapter.e (extensionHostProcess.js:582:811)
$._withAdapter (extensionHostProcess.js:575:502)
$provideCompletionItems (extensionHostProcess.js:582:789)
h._doInvokeHandler (extensionHostProcess.js:593:118)
h._invokeHandler (extensionHostProcess.js:592:777)
h._receiveRequest (extensionHostProcess.js:591:383)
h._receiveOneMessage (extensionHostProcess.js:590:279)
define.constructor._protocol.onMessage.e (extensionHostProcess.js:588:565)
u.fire (extensionHostProcess.js:43:254)
e (extensionHostProcess.js:39:64)
u.fire (extensionHostProcess.js:43:254)
s (extensionHostProcess.js:168:754)
Socket.define.constructor._socketDataListener.e (extensionHostProcess.js:168:960)
Socket.emit (events.js:182:13)
addChunk (_stream_readable.js:279:12)
readableAddChunk (_stream_readable.js:264:11)
Socket.Readable.push (_stream_readable.js:219:10)
Pipe.onread (net.js:636:20)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
StephenWeatherfordcommented, Apr 30, 2019

FYI, this was fixed in the 0.6.0 release on Thursday. Thanks again for reporting.

0reactions
StephenWeatherfordcommented, Apr 23, 2019

Caused by #221 which can happen while typing, which causes the parsed template to be out of sync with the sources, which causes this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add an index to a list or library column - Microsoft Support
Learn how to add indexes to SharePoint list and library columns to make sorts, searches, and filtering more efficient and perform better.
Read more >
Index was out of range. Must be non-negative and less than ...
The error says "The index is out of range". That means you were trying to index an object with a value that was...
Read more >
Troubleshooting Row Size Too Large Errors with InnoDB
The original table schema shown earlier on this page causes the Row size too large error, because all of the table's VARCHAR columns...
Read more >
Troubleshooting index lifecycle management errors - Elastic
When ILM executes a lifecycle policy, it's possible for errors to occur while performing the necessary index operations for a step. When this...
Read more >
CREATE INDEX | Couchbase Docs
The CREATE INDEX statement allows you to create a secondary index. Secondary indexes contain a filtered or a full set of keys in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found