-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Evaluating code breaks due to long popup output #353
Comments
@bootleq Thanks for your reporting!
We are using the vim-iced/autoload/iced/nrepl/document.vim Lines 141 to 157 in 0116d29
In this case, virtual text component which uses popup component is the problem. I just cut v3.5.5 #354 |
Thank you very much! I didn't notice the catch in those Popup functions, just tried the new version and confirmed fixed. |
Currently the
iced#nrepl#eval#code
can break during its default callbackiced#nrepl#eval#out
throwing'vim-iced: too long texts to show in popup'
. Seems we have no handling for this error and lead the workflow to be halted, hooks likeevaluated
won't trigger, though the eval is in fact successful.Steps to reproduce:
(Vim 8.2.3174, vim-iced 3.5.4)
Execute
:IcedEval (apply str (repeat (* 54 200) "x"))
(Please change
54
200
to large enough values, to vim's&lines
and&columns
)Expected result: after evaluated, small popup appear and display the result,
evaluated
hook (if any) can be triggered.Actual result: no popup, no
evaluated
triggered (but the result doesecho
in vim)Possible solution
Maybe just remove the
throw
code? I have done a local try and seems it works fine.The text was updated successfully, but these errors were encountered: