Commit graph

504 commits

Author SHA1 Message Date
Ben Jackson
c1283a292c When creating a terminal window in neovim, use a new buffer 1271
neovim's termopen() replaces the buffer object in the current window
with a terminal, internally, this completely breaks the buffer list.

Repro:
* Create test.vim:

```
vsplit
call termopen( '/bin/bash', { 'cwd': getcwd() } )
call bufload( expand( '<sfile>' ) )
```

Then:
* `nvim -Nu NONE test.vim`
* `:source %`

Error is "Invald buffer name 'test.vim'"

Anyway, the correct thing to do is to create a _new_ buffer before
making it into a terminal (vnew, new) rather than a split of the current
one. This was only working before because the CodeView window never had
any buffer in it and was broken by the change to use the current buffer
when staring debugging.

Fixes #131
2020-03-09 20:52:34 +00:00
Ben Jackson
1b7402915c Catch adapter being None and print user-friendly message: 1270 2020-03-08 18:18:29 +00:00
Ben Jackson
cd26e81fd9 When requesting source from debugger, use the path, if supplied 2020-02-23 16:12:35 +00:00
mergify[bot]
b7dee6410a
Merge pull request #125 from puremourning/win-setup 1258
Set the code window to the current buffer
2020-02-16 23:11:25 +00:00
Ben Jackson
27e11d5265
Merge branch 'master' into win-setup 2020-02-16 23:06:49 +00:00
mergify[bot]
7da627f95e
Merge pull request #124 from puremourning/list-splat 1255
List splat
2020-02-16 23:03:50 +00:00
Ben Jackson
2c1060c49e Support *\$var in lists to splat (expand in place) shell-split user input. Useful for commandline-> args list 2020-02-16 22:59:15 +00:00
Ben Jackson
e61e7fefe6
Merge branch 'master' into win-setup 2020-02-16 22:52:46 +00:00
Ben Jackson
c4bedcee89 Set the code window to the current buffer 2020-02-16 22:49:15 +00:00
mergify[bot]
5e8d4f97c4
Merge pull request #123 from puremourning/win-setup 1245
Set some window options to their deafults
2020-02-16 22:35:40 +00:00
Ben Jackson
926029e343 Set some window options to their deafults 2020-02-16 22:30:55 +00:00
mergify[bot]
c8dcc47b1c
Merge pull request #121 from puremourning/windows 1241
Experimental Windows support
2020-02-16 21:11:26 +00:00
Ben Jackson
a74783513c Update README 2020-02-16 20:21:17 +00:00
Ben Jackson
0aba8e0179 Work around neovim bug where environ() crashes 2020-02-16 20:15:41 +00:00
Ben Jackson
3366e1c784 Use the python used to run the installer to run debugpy 2020-02-16 20:15:41 +00:00
Ben Jackson
4a7e3b9229 Fix opening paths on Windows 2020-02-16 20:15:41 +00:00
Ben Jackson
37fefafe35 Fix tracebacks when the debug adapter dies very quickly 2020-02-16 20:15:41 +00:00
mergify[bot]
866e6fe9b1
Merge pull request #116 from puremourning/filetype-configs 1236
Support per-filetype global launch configurations, and support trivial custom gadget installation
2020-02-16 20:05:48 +00:00
Ben Jackson
68a45b5771 Fix workspace root when no vimspector conf - use dir of current file 2020-02-16 20:01:00 +00:00
Ben Jackson
267f202dad Fix LGTM error: python default arguments are mutable\! 2020-02-16 19:45:58 +00:00
Ben Jackson
e37ef18c28 Move installation routines into proper library 2020-02-16 17:31:00 +00:00
Ben Jackson
be32a0a1a8 Add --enable-custom to load custom gadget meta 2020-02-16 17:23:49 +00:00
Ben Jackson
583fb95ea0 Read configurations from a per-filetype directory or a default location as well as local config file 2020-02-16 17:22:53 +00:00
mergify[bot]
86afe89d63
Merge pull request #119 from puremourning/drop-py2 1212
Drop python 2 support in installer
2020-02-15 11:58:12 +00:00
Ben Jackson
6b735ce4d0 Drop python 2 support in installer 2020-02-15 11:30:42 +00:00
mergify[bot]
79df51e83c Merge pull request #115 from puremourning/debugpy 1140
Switch to debugpy rather than vscode-python
2020-02-08 21:23:01 +00:00
Ben Jackson
dcabc52937 Update readme 2020-02-08 21:15:27 +00:00
Ben Jackson
8052484cc7 Use YCM python style 2020-02-08 21:15:27 +00:00
Ben Jackson
a56bee7b0a Switch to debugpy over vscode-python
This is just better in every way, and the vscode-python typescript
adapter is being phased out.
2020-02-08 21:15:27 +00:00
Ben Jackson
933f946801 Fix CI - use latest lldb-mi 2020-02-08 21:15:27 +00:00
mergify[bot]
6fd8d16487
Merge pull request #114 from noscript/readme_typo 1122
README referenced link typo
2020-02-05 15:13:15 +00:00
Sergey Vlasov
a90a529ced
README referenced link typo 2020-02-05 16:55:20 +02:00
mergify[bot]
ac56e3adef
Merge pull request #112 from puremourning/syntax-stack 1120
Set syntax in stack trace too
2020-02-04 20:19:13 +00:00
Ben Jackson
19cc58f09e Set syntax in stack trace too 2020-02-04 13:04:09 +00:00
Ben Jackson
db95fe0c1d Update github pages to fix website, maybe 1115 2020-02-02 18:27:01 +00:00
mergify[bot]
8c01ea7bfd
Merge pull request #110 from puremourning/neovim-env 1114
Support setting environment in neovim
2020-02-02 17:44:00 +00:00
Ben Jackson
6878c80cfb Update readme for environment hackaround 2020-02-02 17:37:53 +00:00
Ben Jackson
896b20f490 Hackaround for missing 'env' in termopen and jobstart in neovim 2020-02-02 17:37:53 +00:00
mergify[bot]
fb4411676c
Merge pull request #108 from puremourning/debugpy 1109
Document how to use debugpy directly instead of vscode-python
2020-02-01 00:28:47 +00:00
Ben Jackson
3f3ede48ba Update TOC 2020-02-01 00:09:02 +00:00
Ben Jackson
44efc0a1b3 Neovim 0.4 doesn't work for debugpy because it is missing features 2020-02-01 00:09:02 +00:00
Ben Jackson
6bcc58a39b Document how to use debugpy directly instead of vscode-python 2020-02-01 00:09:02 +00:00
mergify[bot]
9485a9f46c
Merge pull request #103 from axrt/no_ssl 1100
Add a --no-ssl flag that switches off certificate verification
2020-01-31 23:26:22 +00:00
Ben Jackson
5eb042be14
Merge branch 'master' into no_ssl 2020-01-31 23:20:28 +00:00
Alexander Tuzhikov
7f3d7a46e4 Address cl requests in pr-103; 2020-01-31 08:50:06 -08:00
mergify[bot]
9c18f3e802
Merge pull request #107 from puremourning/fixups
Improve workflow for launching vimspector from scripts
2020-01-31 16:19:06 +00:00
Ben Jackson
018ae05de8 Add 'example' allowing simple command-line attachment 2020-01-31 16:11:36 +00:00
Ben Jackson
74eb94fe53 Allow PID to be set by variables, e.g. shell 2020-01-31 16:07:26 +00:00
Ben Jackson
8d4ec3f53a Supress errors in more appropriate places 2020-01-31 16:07:26 +00:00
Ben Jackson
309c292413 Store variables supplied _before_ parsing adapter/config varibales 2020-01-31 16:07:26 +00:00