Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with unicode input on Julia 1.11 beta #157

Open
novemberist opened this issue May 18, 2024 · 4 comments
Open

issue with unicode input on Julia 1.11 beta #157

novemberist opened this issue May 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@novemberist
Copy link

novemberist commented May 18, 2024

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

gcv added a commit that referenced this issue May 20, 2024
It looks like there's quite a lot of subtelty going on with quoting strings for
completion purposes. This change removes support for completing paths in strings
but simplifies the code.
@gcv gcv mentioned this issue May 20, 2024
@gcv
Copy link
Owner

gcv commented May 20, 2024

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 gcv added the bug Something isn't working label May 20, 2024
@novemberist
Copy link
Author

novemberist commented May 20, 2024

seems to be fixed now. thank you!

@novemberist
Copy link
Author

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    

gcv added a commit that referenced this issue May 21, 2024
@gcv
Copy link
Owner

gcv commented May 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants