JuliaEditorSupport / julia-vim

Vim support for Julia.
http://julialang.org/
Other
754 stars 94 forks source link

Colon bug? #122

Open esraiak opened 7 years ago

esraiak commented 7 years ago

The following code,

for i in 1:2
  a = b[i,:]
end

makes the syntax mark "end" in red. Is this a bug?

carlobaldassi commented 7 years ago

I can't reproduce this, for me it works fine. Are you sure you have the latest version of the plugin? Is there any other code above this which may explain the error? E.g., an open bracket would make the following for be part of a comprehension, which does not require an end, like this:

[something
for i in 1:2
    a = b[i,:]
end              # now this is an error
esraiak commented 7 years ago

Oops, I did not think about the fact that I'm doing this over SSH, which is necessary for me to reproduce the bug. I'm not sure whether this is particular to julia-vim (other than colons, the highlighting works fine).

So I have my laptop A and a server B.

Seems like it is an issue with the setup on B. The julia-vim installation on A and B are the same, cloned from github a week ago.

carlobaldassi commented 7 years ago

Yes, this must be an issue with the setup on B, although I can't imagine what the problem could be. I don't think ssh should have much to do with it. It's rather hard to debug this however. My suggestion is: can you obtain a list of differences between the configuration in the two machines? Mostly vimrc and plugins installed. Ideally, if you could try to clone A's configuration on B (even just temporarily) and see whether it works, this could help a lot.