4 ms·
> I've found for Nim and Crystal I have to run the compiler in the terminal, look where the errors were, and then find those lines in my editor. Definitely set
by omaranto 6y ago
> I've found for Nim and Crystal I have to run the compiler in the terminal, look where the errors were, and then find those lines in my editor.
Definitely setup your editor to run the compiler for you, and give you a list of errors that are links to the locations they occur.
In Vim, for example, you can configure the makeprg and errorformat variables and the use the :make command to run the compiler, which populates the quickfix list with the errors. From the quickfix list you can jump directly to the locations. In Emacs there is the M-x compile command with very similar functionality.