Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Commit 0291db2

Browse files
committed
breaking: Remove support for nREPL's sideloader
1 parent c03a25f commit 0291db2

File tree

7 files changed

+0
-236
lines changed

7 files changed

+0
-236
lines changed

autoload/iced/nrepl.vim

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ let g:iced#nrepl#skip_evaluation_when_buffer_size_is_exceeded
4242
let g:iced#nrepl#printer = get(g:, 'iced#nrepl#printer', 'default')
4343
let g:iced#nrepl#path_translation = get(g:, 'iced#nrepl#path_translation', {})
4444
let g:iced#nrepl#init_cljs_ns = get(g:, 'iced#nrepl#init_cljs_ns', 'cljs.user')
45-
let g:iced#nrepl#enable_sideloader = get(g:, 'iced#nrepl#enable_sideloader', v:false)
4645

4746
let s:id_counter = 1
4847
function! iced#nrepl#id() abort
@@ -271,7 +270,6 @@ function! s:dispatcher(ch, resp) abort
271270
let future = iced#system#get('future')
272271

273272
let need_debug_input_response = ''
274-
let sideloader_lookup_response = ''
275273

276274
for resp in responses
277275
if type(resp) != v:t_dict
@@ -295,8 +293,6 @@ function! s:dispatcher(ch, resp) abort
295293
for status in get(resp, 'status', [''])
296294
if status ==# 'need-debug-input'
297295
let need_debug_input_response = resp
298-
elseif status ==# 'sideloader-lookup'
299-
let sideloader_lookup_response = resp
300296
endif
301297
endfor
302298
endfor
@@ -338,8 +334,6 @@ function! s:dispatcher(ch, resp) abort
338334
call iced#buffer#stdout#open()
339335
endif
340336
call iced#nrepl#debug#start(need_debug_input_response)
341-
elseif !empty(sideloader_lookup_response)
342-
call iced#nrepl#sideloader#lookup(sideloader_lookup_response)
343337
endif
344338
endfunction
345339
" }}}
@@ -419,10 +413,6 @@ function! s:warm_up() abort
419413
call iced#nrepl#ns#load_current_file({_ -> ''})
420414
endif
421415
call iced#format#set_indentexpr()
422-
423-
if g:iced#nrepl#enable_sideloader && iced#nrepl#is_supported_op('sideloader-start')
424-
call iced#nrepl#sideloader#start()
425-
endif
426416
endfunction
427417

428418
function! s:status(ch) abort

autoload/iced/nrepl/sideloader.vim

Lines changed: 0 additions & 77 deletions
This file was deleted.

doc/pages/index.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,6 @@ include::refactoring.adoc[]
147147
[small]#<<top>>#
148148
// }}}
149149

150-
include::sideloader.adoc[]
151-
// back to top {{{
152-
[.text-right]
153-
[small]#<<top>>#
154-
// }}}
155-
156150
include::static_analysis.adoc[]
157151
// back to top {{{
158152
[.text-right]

doc/pages/sideloader.adoc

Lines changed: 0 additions & 72 deletions
This file was deleted.

doc/vim-iced.txt

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ CONTENTS *vim-iced-contents*
4242
Format on writing files |vim-iced-formatting-on-writing-files|
4343
Indenting |vim-iced-indenting|
4444
Refactoring |vim-iced-refactoring|
45-
Sideloader |vim-iced-sideloader|
4645
Static analysis |vim-iced-static-analysis|
4746
clj-kondo |vim-iced-static-analysis-clj-kondo|
4847
Notification |vim-iced-notification|
@@ -62,7 +61,6 @@ CONTENTS *vim-iced-contents*
6261
Command palettes |vim-iced-customizing-palette|
6362
Hooks |vim-iced-customizing-hooks|
6463
Popup window |vim-iced-customizing-popup-window|
65-
Sideloader |vim-iced-customizing-sideloader|
6664
Notification |vim-iced-customizing-notification|
6765
Default keys |vim-iced-customizing-default-keys|
6866
Changelog |vim-iced-changelog|
@@ -726,28 +724,6 @@ REFACTORING *vim-iced-refactoring*
726724
See also:
727725
- |g:iced#refactor#insert_newline_after_require|
728726

729-
==============================================================================
730-
SIDELOADER *vim-iced-sideloader*
731-
732-
WARNING: `base64` command is required to use sideloader.
733-
734-
Sideloader is a new feature from nREPL 0.7, and enables injecting code
735-
remotely in a running server on demand.
736-
737-
vim-iced provides following commands for sideloader:
738-
- |:IcedStartSideloader|.
739-
- |:IcedStoptSideloader|.
740-
741-
When nREPL requires to look up some codes,
742-
vim-iced will search in |g:iced#source_root|.
743-
744-
It is assumed that sources under |g:iced#source_root| is managed by
745-
tools such as `ghq`.
746-
- https://github.com/x-motemen/ghq
747-
748-
vim-iced will use `find` or `fd` as a searching file program.
749-
- https://github.com/sharkdp/fd
750-
751727
==============================================================================
752728
STATIC ANALYSIS *vim-iced-static-analysis*
753729

@@ -1461,22 +1437,6 @@ COMMANDS *vim-iced-commands*
14611437
If `let` form is not found in current top list, cursor is not moved.
14621438
Key is mapped to |<Plug>(iced_jump_to_let)|.
14631439

1464-
*:IcedStartSideloader*
1465-
:IcedStartSideloader
1466-
Start side-loading.
1467-
Key is mapped to |<Plug>(iced_start_sideloader)|.
1468-
See also |vim-iced-sideloader|.
1469-
1470-
*:IcedStopSideloader*
1471-
:IcedStopSideloader
1472-
Stop side-loading.
1473-
NOTE: nREPL does not provide the way to stop sideloader officially.
1474-
But sideloader is a session specific mode, so we can stop
1475-
sideloading by stopping to use current session.
1476-
1477-
Key is mapped to |<Plug>(iced_start_sideloader)|.
1478-
See also |vim-iced-sideloader|.
1479-
14801440
*:IcedYankNsName*
14811441
:IcedYankNsName
14821442
Yank the current namespace name into `"` register.
@@ -1947,14 +1907,6 @@ KEY MAPPINGS *vim-iced-key-mappings*
19471907
<Plug>(iced_jump_to_let)
19481908
Same as |:IcedJumpToLet|.
19491909

1950-
*<Plug>(iced_start_sideloader)*
1951-
<Plug>(iced_start_sideloader)
1952-
Same as |:IcedStartSideloader|.
1953-
1954-
*<Plug>(iced_stop_sideloader)*
1955-
<Plug>(iced_stop_sideloader)
1956-
Same as |:IcedStopSideloader|.
1957-
19581910
*<Plug>(iced_yank_ns_name)*
19591911
<Plug>(iced_yank_ns_name)
19601912
Same as |:IcedYankNsName|.
@@ -2733,20 +2685,6 @@ g:iced#popup#neovim#style
27332685
- https://neovim.io/doc/user/api.html#nvim_open_win()
27342686
Default value is `'minimal'`.
27352687

2736-
------------------------------------------------------------------------------
2737-
SIDELOADER *vim-iced-customizing-sideloader*
2738-
2739-
2740-
*g:iced#nrepl#enable_sideloader*
2741-
g:iced#nrepl#enable_sideloader
2742-
If `v:true`, vim-iced starts sideloader on startup automatically.
2743-
Default value is `v:false`.
2744-
2745-
*g:iced#source_root*
2746-
g:iced#source_root
2747-
If you have `ghq`, `git config ghq.root` will be the value automatically.
2748-
- https://github.com/x-motemen/ghq
2749-
27502688
------------------------------------------------------------------------------
27512689
NOTIFICATION *vim-iced-customizing-notification*
27522690

ftplugin/clojure.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ command! IcedJumpToNextError call iced#system#get('sign').jump_to
197197
command! IcedJumpToPrevError call iced#system#get('sign').jump_to_next({'name': iced#nrepl#test#sign_name()})
198198
command! IcedJumpToLet call iced#let#jump_to_let()
199199

200-
command! IcedStartSideloader call iced#nrepl#sideloader#start()
201-
command! IcedStopSideloader call iced#nrepl#sideloader#stop()
202-
203200
command! -nargs=? -complete=custom,iced#component#installer#complete
204201
\ IcedUpdateTool call iced#system#get('installer').reinstall(<q-args>)
205202

@@ -322,9 +319,6 @@ nnoremap <silent> <Plug>(iced_jump_to_next_sign) :<C-u>IcedJumpToNextSign
322319
nnoremap <silent> <Plug>(iced_jump_to_prev_sign) :<C-u>IcedJumpToPrevSign<CR>
323320
nnoremap <silent> <Plug>(iced_jump_to_let) :<C-u>IcedJumpToLet<CR>
324321
325-
nnoremap <silent> <Plug>(iced_start_sideloader) :<C-u>IcedStartSideloader<CR>
326-
nnoremap <silent> <Plug>(iced_stop_sideloader) :<C-u>IcedStopSideloader<CR>
327-
328322
nnoremap <silent> <Plug>(iced_update_tool) :<C-u>IcedUpdateTool<CR>
329323
330324
"" }}}

message/iced/en.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
'ns_not_found': '(ns ..) form is not found.',
8181
'ns_vars_error': 'Failed to fetch ns vars.',
8282
'popup_error': 'Failed to open popup: %s.',
83-
'provided_sideloader': 'Provided %s as %s to sideloader.',
8483
'quitted_cljs_repl': 'CLJS repl has quit.',
8584
'reading': 'Still reading..',
8685
'required': 'Required.',
@@ -98,9 +97,7 @@
9897
'start_to_refresh': 'Start to refresh %s...',
9998
'start_to_trace': 'Start to trace: %s.',
10099
'started_cljs_repl': 'CLJS repl has started.',
101-
'started_sideloader': 'Sideloader has started.',
102100
'stop_to_trace': 'Stop to trace: %s.',
103-
'stopped_sideloader': 'Sideloader has stopped.',
104101
'test_summary': '%s: Ran %d assertions, in %d test functions. %d failures, %d errors.',
105102
'testing': 'Testing...',
106103
'testing_var': 'Testing: %s',

0 commit comments

Comments
 (0)