solargraph: Renaming fails in vscode
I’m really enjoying this extension so far, but I have noticed an issue. My attempts to rename a symbol, method, class/module, etc… almost always fail in vscode. The only time I have had success is right after opening a new folder.
This error message is displayed: Overlapping ranges are not allowed!
The console log shows:
ERR Error: Overlapping ranges are not allowed!
at e.applyEdits (pieceTreeTextBuffer.ts:216)
at o._applyEdits (textModel.ts:1314)
at o.applyEdits (textModel.ts:1271)
at e.pushEditOperation (editStack.ts:168)
at o._pushEditOperations (textModel.ts:1264)
at o.pushEditOperations (textModel.ts:1173)
at t.executeEdits (codeEditorWidget.ts:989)
at t.apply (bulkEditService.ts:120)
at e.apply (bulkEditService.ts:213)
at e.<anonymous> (bulkEditService.ts:355)
at errors.ts:237
at Object.s.__generator.a.label [as next] (errors.ts:237)
at s (errors.ts:237)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188)
vscode:
Version: 1.30.2
Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
Date: 2019-01-07T22:49:48.319Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.15.0-43-generic
vscode ruby extensions:
Ruby 0.21.0
Ruby Solargraph 0.19.1
vscode settings.json:
{
...
"ruby.lint": {
"rubocop": true,
"ruby": true
},
"solargraph.formatting": true,
...
}
solargraph:
$ solargraph --version
0.30.2
$ solargraph list-cores
2.5.3
2.2.2
$ solargraph reporters
rubocop
require_not_found
type_not_defined
update_errors
ruby:
$ ruby --version
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (5 by maintainers)
Seeing this too in 0.44.0
@castwide I’m seeing this one again in 0.40.4.
Cool, thank you for fixing this so fast 🙂