Skip to content

Commit 4fa0bc9

Browse files
authored
Merge branch 'master' into run-to-cursor-vs
2 parents baea053 + 50fe508 commit 4fa0bc9

File tree

9 files changed

+75
-20
lines changed

9 files changed

+75
-20
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ jobs:
114114
matrix:
115115
runtime:
116116
- vim
117-
- nvim
117+
# - nvim ; MacOS in GHA is so slow, this seems to cause lots of
118+
# flakiness for neovim and I have like 0 patience with trying to
119+
# understand why.
118120
steps:
119121
- uses: actions/checkout@v3
120122

.mergify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ queue_rules:
99
- status-success=Linux (vim)
1010
- status-success=Linux (nvim)
1111
- status-success=MacOS (vim)
12-
- status-success=MacOS (nvim)
12+
#- status-success=MacOS (nvim)
1313

1414
pull_request_rules:
1515
- name: Merge owner PR when all checks passed
@@ -26,7 +26,7 @@ pull_request_rules:
2626
- status-success=Linux (vim)
2727
- status-success=Linux (nvim)
2828
- status-success=MacOS (vim)
29-
- status-success=MacOS (nvim)
29+
#- status-success=MacOS (nvim)
3030
actions: &merge-actions
3131
queue:
3232
method: merge
@@ -61,7 +61,7 @@ pull_request_rules:
6161
- status-success=Linux (vim)
6262
- status-success=Linux (nvim)
6363
- status-success=MacOS (vim)
64-
- status-success=MacOS (nvim)
64+
#- status-success=MacOS (nvim)
6565
actions:
6666
<<: *merge-actions
6767
comment:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,7 @@ Rust is supported with any gdb/lldb-based debugger. So it works fine with
17921792
1. To use the ["custom" launch](https://github.com/vadimcn/vscode-lldb/blob/master/MANUAL.md#custom-launch), you can't use `"request": "custom"` - this is invalid. Instead use `"request": "launch", "custom": true`. Because [reasons](https://github.com/vadimcn/vscode-lldb/blob/master/extension/main.ts#L397-L401)
17931793
2. All the integration with `cargo` is done in the vscode javascript madness, so is not supported.
17941794
3. The stuff about [remote agents](https://github.com/vadimcn/vscode-lldb/blob/master/MANUAL.md#connecting-to-a-gdbserver-style-agent) uses `"request": custom`; see the point about "custom" launch above
1795+
4. Source Mapping (i.e., enabling `step-into` for standard library functions) can be done by adding `"sourceMap": { "from_path" : "to_path" }`. `"from_path"` can be found in disassembly window by going up in the stack trace; `"to_path"` is just your locally installed standard library path for current toolchain.
17951796

17961797
## Jai
17971798

doc/vimspector.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,6 +2117,12 @@ Rust is supported with any gdb/lldb-based debugger. So it works fine with
21172117
- The stuff about remote agents [42] uses '"request": custom'; see the point
21182118
about "custom" launch above
21192119

2120+
- Source Mapping (i.e., enabling 'step-into' for standard library functions)
2121+
can be done by adding '"sourceMap": { "from_path" : "to_path" }'.
2122+
'"from_path"' can be found in disassembly window by going up in the stack
2123+
trace; '"to_path"' is just your locally installed standard library path for
2124+
current toolchain.
2125+
21202126
-------------------------------------------------------------------------------
21212127
*vimspector-jai*
21222128
Jai ~

docs/Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,22 +205,22 @@ GEM
205205
rb-fsevent (~> 0.10, >= 0.10.3)
206206
rb-inotify (~> 0.9, >= 0.9.10)
207207
mercenary (0.3.6)
208-
mini_portile2 (2.8.2)
208+
mini_portile2 (2.8.5)
209209
minima (2.5.1)
210210
jekyll (>= 3.5, < 5.0)
211211
jekyll-feed (~> 0.9)
212212
jekyll-seo-tag (~> 2.1)
213213
minitest (5.19.0)
214-
nokogiri (1.14.3)
215-
mini_portile2 (~> 2.8.0)
214+
nokogiri (1.16.2)
215+
mini_portile2 (~> 2.8.2)
216216
racc (~> 1.4)
217217
octokit (4.25.1)
218218
faraday (>= 1, < 3)
219219
sawyer (~> 0.9)
220220
pathutil (0.16.2)
221221
forwardable-extended (~> 2.6)
222222
public_suffix (4.0.7)
223-
racc (1.6.2)
223+
racc (1.7.3)
224224
rb-fsevent (0.11.2)
225225
rb-inotify (0.10.1)
226226
ffi (~> 1.0)

python3/vimspector/debug_session.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def Start( self,
329329
self._api_prefix,
330330
False, # Don't leave open
331331
*shlex.split( response ),
332-
then = lambda: self.Start( new_launch_variables ) )
332+
then = lambda: self.Start(
333+
launch_variables = new_launch_variables ) )
333334
return
334335
elif response is None:
335336
return
@@ -371,7 +372,8 @@ def Start( self,
371372
self._api_prefix,
372373
False, # Don't leave open
373374
*shlex.split( response ),
374-
then = lambda: self.Start( new_launch_variables ) )
375+
then = lambda: self.Start(
376+
launch_variables = new_launch_variables ) )
375377
return
376378
elif response is None:
377379
return

python3/vimspector/variables.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ def SetCurrentFrame( self, connection, frame ):
176176
elif self.connection != connection:
177177
return
178178

179+
if frame is None:
180+
# Evaluation in a context where there is no current frame.
181+
return
182+
179183
self.expression[ 'frameId' ] = frame[ 'id' ]
180184

181185
@staticmethod
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Django==4.2.7
1+
Django==4.2.10

tests/variables.test.vim

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ function! ConsoleBufferName()
1919
endfunction
2020

2121
function! s:StartDebugging( ... )
22-
if a:0 == 0
23-
let config = #{
24-
\ fn: s:fn,
25-
\ line: 23,
26-
\ col: 1,
27-
\ launch: #{ configuration: 'run' }
28-
\ }
29-
else
30-
let config = a:1
22+
let config = #{
23+
\ fn: s:fn,
24+
\ line: 23,
25+
\ col: 1,
26+
\ launch: #{ configuration: 'run' }
27+
\ }
28+
29+
if a:0 > 0
30+
call extend( config, a:1 )
3131
endif
3232

3333
execute 'edit' config.fn
@@ -1265,3 +1265,43 @@ EOF
12651265
call vimspector#test#setup#Reset()
12661266
%bwipe!
12671267
endfunction
1268+
1269+
function! Test_WatchAfterExit()
1270+
call s:StartDebugging( #{
1271+
\ col: v:null,
1272+
\ line: 3,
1273+
\ fn: 'testdata/cpp/simple/tiny.c',
1274+
\ launch: #{ configuration: 'CodeLLDB' }
1275+
\ } )
1276+
1277+
call vimspector#Continue()
1278+
call WaitForAssert( {->
1279+
\ AssertMatchList(
1280+
\ [
1281+
\ '+ Thread [0-9]\+: .* (terminated)',
1282+
\ ],
1283+
\ GetBufLine( winbufnr( g:vimspector_session_windows.stack_trace ),
1284+
\ 1,
1285+
\ '$' )
1286+
\ )
1287+
\ } )
1288+
1289+
" Add a wtch
1290+
call vimspector#AddWatch( 'res' )
1291+
1292+
call WaitForAssert( {->
1293+
\ AssertMatchList(
1294+
\ [
1295+
\ 'Watches: ----',
1296+
\ 'Expression: res',
1297+
\ ' \*- Result: .*',
1298+
\ ],
1299+
\ getbufline( winbufnr( g:vimspector_session_windows.watches ),
1300+
\ 1,
1301+
\ '$' )
1302+
\ )
1303+
\ } )
1304+
1305+
call vimspector#test#setup#Reset()
1306+
%bwipe!
1307+
endfunction

0 commit comments

Comments
 (0)