Git Product home page Git Product logo

Comments (6)

slashfoo avatar slashfoo commented on August 18, 2024

@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.

michaellindon avatar michaellindon commented on August 18, 2024

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.

slashfoo avatar slashfoo commented on August 18, 2024

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.

slashfoo avatar slashfoo commented on August 18, 2024

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.

sunaku avatar sunaku commented on August 18, 2024

😱 Splitting and escaping is totally unnecessary (not to mention brittle). See PR #52 for solution. :neckbeard:

from slimux.

slashfoo avatar slashfoo commented on August 18, 2024

Thanks @sunaku ! ok, one less ticket!

from slimux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.