Coder Social home page Coder Social logo

Comments (11)

phmarek avatar phmarek commented on July 4, 2024

Sorry about the delay - will try to reproduce and fix, but it may take some time.

from vlime.

phmarek avatar phmarek commented on July 4, 2024

Would you please try and patch the line https://github.com/vlime/vlime/blob/master/vim/autoload/vlime/ui/sldb.vim#L505 so that the RESTARTABLE is lower-case?

That should do the trick.

from vlime.

charJe avatar charJe commented on July 4, 2024

It is still not working <CR> just opens a window with sbcl/src/code/eval.lisp line 160.

from vlime.

charJe avatar charJe commented on July 4, 2024

It still works work with :upcase. I may not have reloaded the sldb.vim correctly; I used :w | so %.

from vlime.

phmarek avatar phmarek commented on July 4, 2024

Well, quite a lot of functions get stored in a dictionary for the connection and called from there - so reloading a single file won't work.

You could try reconnecting -- but restarting the editor is the easiest way, usually.

from vlime.

charJe avatar charJe commented on July 4, 2024

Alright I think I am loading the plugin correctly (using set runtimepath^=/home/charles/vlime/vim in .vimrc). I confirm that changing the RESTARTABLE to lowercase does NOT change the behavior in any way for me.

from vlime.

phmarek avatar phmarek commented on July 4, 2024

Please try 30363fe, I could successfully compile a function and restart it.

from vlime.

charJe avatar charJe commented on July 4, 2024

I tried that. When I connect to the server or evaluate some code that would invoke the debugger I get the following errors in vim:

line 3:
E117: Unknown function: vlime#SymbolName
E116: Invalid arguments for function toupper(vlime#SymbolName(msg_type)), v:null)
E116: Invalid arguments for function get(self.server_event_handlers, toupper(vlime#SymbolName(msg_type)), v:null)
line 4:
E121: Undefined variable: Handler
E116: Invalid arguments for function type(Handler) == v:t_func

from vlime.

phmarek avatar phmarek commented on July 4, 2024

Sorry about that... I'm using the json-branch and can't test non-json any more, my FASLs conflict all the time.

What about 6e410e0? Please try that one.
Thank you for your patience!

from vlime.

charJe avatar charJe commented on July 4, 2024

Applying this patch to 6e410e0 works. I think the main thing was that the regex was only looking for restarts that were all upper case.
0001-Search-for-restarts-that-might-be-lowercase-due-to-p.txt

From 6cd927316623213e87cb64759e6c818b0829944b Mon Sep 17 00:00:00 2001
From: Charles Jackson <[email protected]>
Date: Wed, 20 Sep 2023 19:12:56 -0500
Subject: [PATCH] Search for restarts that might be lowercase due to
 *print-case*

---
 vim/autoload/vlime.vim         | 4 ++--
 vim/autoload/vlime/ui/sldb.vim | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vim/autoload/vlime.vim b/vim/autoload/vlime.vim
index abdb7d9..9f06fec 100644
--- a/vim/autoload/vlime.vim
+++ b/vim/autoload/vlime.vim
@@ -1377,7 +1377,7 @@ endfunction
 function! vlime#OnServerEvent(chan, msg) dict
     let msg_type = a:msg[0]
     " Accomodate *PRINT-CASE*
-    let Handler = get(self.server_event_handlers, toupper(msg_type), v:null)
+    let Handler = vlime#Get(self.server_event_handlers, msg_type['name'], v:null)
     if type(Handler) == v:t_func
         call Handler(self, a:msg)
     elseif get(g:, '_vlime_debug', v:false)
@@ -1849,7 +1849,7 @@ function! vlime#KeywordList2Dict(input)
     if type(a:input) == v:t_list
         let dct = {}
         for el in a:input
-            if type(el) == v:t_list && type(el[0]) == v:t_dict && el[0]["package"] == 'KEYWORD'
+            if type(el) == v:t_list && type(el[0]) == v:t_dict && (el[0]["package"] == 'KEYWORD' || el[0]["package"] == 'keyword')
                 let dct[ el[0]["name"] ] = el[1]
             endif
         endfor
diff --git a/vim/autoload/vlime/ui/sldb.vim b/vim/autoload/vlime/ui/sldb.vim
index 8d00341..b1d2465 100644
--- a/vim/autoload/vlime/ui/sldb.vim
+++ b/vim/autoload/vlime/ui/sldb.vim
@@ -340,7 +340,7 @@ endfunction
 function! s:MatchRestart()
     let line = getline('.')
     let matches = matchlist(line,
-                \ '\v^  R\s+([0-9]+)\.\s+\*?[A-Z\-]+\s+-\s.+$')
+                \ '\v^  R\s+([0-9]+)\.\s+\*?[a-zA-Z\-]+\s+-\s.+$')
     return (len(matches) > 0) ? (matches[1] + 0) : -1
 endfunction
 
-- 
2.34.1

from vlime.

phmarek avatar phmarek commented on July 4, 2024

Thanks, got it as 2d2192e.

from vlime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.