Type assistance tool for Julia

I was wondering if anyone know of a tool that can assist the interaction with the type system? I am fairly new to Julia although I have a lot of experience with other languages. Something that really prevents me from being as productive as I would like is that the type system and I really don’t get along that well right now.

Don’t get me wrong, I love the idea of Julia’s type system and I believe that when I get more familiar with it, it will be of great assistance. As for now, however, this is really slowing me down and I think that a reason for that is that you don’t get the errors until you run your program. What I’m looking for is something like a Juno feature that, whenever I write the code, would give me errors right away in the editor. Maybe it could also be so smart as to give me some helpful suggestions to how to fix the error before it even occurs.

Does anyone know of such a tool?

1 Like

In VIM, you can use syntastic:

https://github.com/vim-syntastic/syntastic

Open VIM, and type :help syntastic-checkers-julia. It will give you the additional installation steps for Julia after synstastic is installed. Basically, you only need to install Lint.jl in Julia to get it working.

1 Like

I think what you want is a linter. I’ve being using VSCode with julia extension that provides that. I think it is really good.

Thank you for your answer! Could you please provide me with a link to said extension as I seem to be unable to find it?

https://github.com/JuliaEditorSupport/julia-vscode

I think the latest version has some problems though, unfortunately (https://github.com/JuliaEditorSupport/julia-vscode/issues/255)

Yes, but this workaround seems to work for me now.

You can use the linter directly in Juno using the https://github.com/TeroFrondelius/linter-julia package.