Comments (6)
@michaellindon thanks for the report.
Can you please provide a sample file so I can test this? I could just re-type what I see on your screenshot but I'm not familiar with .jl ( I assume julia ) and don't know if you have any 'conceal' settings in vim set up.
from slimux.
Thank you =)
n=1000
ł=0.01
p=1
ν=p+0.5
λ=sqrt(2*ν)/ł
σ²=1.0
q=2*σ²*√π*λ^(2p+1)*gamma(p+1)/gamma(p+0.5)
d=2
F=Array(Float64,d,d)
F[1,1]=0
F[1,2]=1
F[2,1]=-λ^2
F[2,2]=-2λ
L=zeros(d,1)
L[d,1]=1
# sylvester(A, B, C) Computes the solution X to the Sylvester equation AX + XB + C = 0
M=Dict(0=>sylvester(F,F',L*q*L'))
t=Dict(zip(collect(0:n),[0;sort(rand(n))]))
Δ=Dict(zip(collect(1:n),[t[k]-t[k-1] for k=1:n]))
Q=Dict()
x=Dict(0=>zeros(d,1))
for i=1:n
A=expm(F*Δ[i])
H=expm(Δ[i]*vcat(hcat(-F,L*q*L'),hcat(zeros(d,d),F')))
A=H[d+1:end,d+1:end]'
x[i]=A*x[i-1]
end
from slimux.
Hey, I just tried the file and I could replicate the issue, I think the problem here is that the file is too long. If you select only the for...end section under visual and send that, I could get it to work.
If you break off and put a blank line before the for, and send that as a paragraph, it will work.
I had not tried to send a big chunk of text like that but now I could replicate with other languages, not only Julia.
In the meantime, please use the workaround of sending it in smaller chunks while I work on figuring this one out. And thanks again for the report.
from slimux.
As I suspected, it has to do with the length of the block that you're trying to send, apparently there's a bug in the "split and send in chunks" code, another workaround you can try for the time being is changing the 500 on Line 212 of plugin/slimux file, for a larger value. I can't say what very large values may cause, but tried with the same file with the value 1000 and it succeeded on my machine.
from slimux.
😱 Splitting and escaping is totally unnecessary (not to mention brittle). See PR #52 for solution.
from slimux.
Thanks @sunaku ! ok, one less ticket!
from slimux.
Related Issues (20)
- Allow users to filter out panes based on arbitrary strings
- Slimux not Affecting the Selected Tmux Pane HOT 13
- Don't try to send to pane that doesn't exist anymore
- Allow SendSelection to use marks and ranges HOT 2
- Error after sending visual selection to ipython with vim splits
- vim hanging when using SlimuxREPLSendLine HOT 12
- Sending selection by stripping comments HOT 1
- Slimux broken in IPython 5 HOT 8
- how to use the Slimux in tmux? HOT 1
- Slimux breaks when `g:slimux_tmux_path` is unset HOT 3
- Send text object to REPL HOT 1
- SlimuxSendKeys() bug? HOT 4
- IndentationError: unindent does not match any outer indentation level (Extra spaces produced in IPython) HOT 3
- mismatched quotes in slimux.vim
- Escaping R Code HOT 3
- Vim to Vim in Normal mode
- protocol version mismatch HOT 1
- Repl send line adds indentation
- Repository maintenance HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slimux.