julia-snail icon indicating copy to clipboard operation
julia-snail copied to clipboard

issue with unicode input on Julia 1.11 beta

Open novemberist opened this issue 1 year ago • 4 comments

Hello,

ever since upgrading to Julia 1.11 beta, whenever I try to now enter Unicode symbols via \ in my source buffer, immediately after typing the next character a parse error is raised (if I disable company-mode, the error occurs right after hitting TAB).

Example output of the *julia* error buffer after typing "\c":

ParseError:                                                                                                                                                    
# Error @ none:1:33                                                                                                                                            
try; JuliaSnail.replcompletion("\c", Main); catch; JuliaSnail.replcompletion("\c", Main); end                                                                  
#                               └┘ ── invalid escape sequence                                                                                                  
                                                                                                                                                               
(::Main.JuliaSnail.var"#29#35"{Sockets.TCPSocket})() at JuliaSnail.jl:898

edit: julia-snail version 20240515.557 emacs version 29.3

novemberist avatar May 18 '24 18:05 novemberist

It's probably not related to 1.11. I think I broke it by trying to fix #156. I just made an attempted fix. Please try again in a couple of hours after the change hits MELPA.

gcv avatar May 20 '24 06:05 gcv

seems to be fixed now. thank you!

novemberist avatar May 20 '24 15:05 novemberist

I think your fix has caused another new issue to appear, though. Whenever I enter "*" or "+" now in my source buffer (within a string or not), the same Parse error is thrown:

ParseError:                                                                                                                                                    
# Error @ none:1:33                                                                                                                                            
try; JuliaSnail.replcompletion("\*", Main); catch; JuliaSnail.replcompletion("\*", Main); end                                                                  
#                               └┘ ── invalid escape sequence                                                                                                  
                                                                                                                                                               
(::Main.JuliaSnail.var"#29#35"{Sockets.TCPSocket})() at JuliaSnail.jl:898    

novemberist avatar May 20 '24 23:05 novemberist

Oh no. Let's try again: f7784c5. Should be available in MELPA in a couple of hours.

gcv avatar May 21 '24 00:05 gcv