-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
VSCode + Calva + nRepl - typing * causes SyntaxError in nbb #288
Comments
Hi @davidyang - I have problems reproducing this with Calva and nbb (1.1.151). Maybe I'm missing something? |
Thanks for the quick response Michiel!
It seems like it happens when I try to autocomplete, not evaluate the
expression.
So if I put cursor right after the * and press Ctrl-Space I get the error
in the console. Evaluation continues to work.
It seems to me like maybe Calva is trying to get some info from LSP and nbb
is trying to read the file and having issues?
…On Wed, Dec 14, 2022 at 10:11 AM Michiel Borkent ***@***.***> wrote:
Hi @davidyang <https://github.com/davidyang> - I have problems
reproducing this with Calva and nbb (1.1.151). Maybe I'm missing something?
[image: Screenshot 2022-12-14 at 16 06 46]
<https://user-images.githubusercontent.com/284934/207632291-19ce25d2-4c74-448e-b634-d31b443626bd.png>
—
Reply to this email directly, view it on GitHub
<#288 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACNRNYYLHURLKYRHNVSWTWNHPQ7ANCNFSM6AAAAAAS6SCMNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK, the culprit is likely here: nbb/src/nbb/impl/repl_utils.cljs Line 23 in e2b5679
which can be reproduced using:
which can be fixed like this:
(cf https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex) |
Thanks for the issue. Now publishing 1.1.152. |
Awesome - thanks for the quick response!
…On Wed, Dec 14, 2022 at 1:08 PM Michiel Borkent ***@***.***> wrote:
Thanks for the issue. Now publishing 1.1.152.
—
Reply to this email directly, view it on GitHub
<#288 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACNRMYAS5U7WKPSZCDZOTWNIELXANCNFSM6AAAAAAS6SCMNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
[ To keep development of this project going, consider sponsoring. If you are
already a sponsor, thank you! ]
version
nbb v1.1.151
platform
MacOS 13
Node 16.15.0
problem
*
I get this error in the console:
repro
This file as test.cljs works for me to reproduce the error whenever I type
*
expected behavior
No syntax error.
The text was updated successfully, but these errors were encountered: