Files
Nim/compiler
Jake Leahy a25843cf80 Show proper error message if trying to run a Nim file in a directory that doesn't exist (#23017)
For example with the command `nim r foo/bar.nim`, if `foo/` doesn't
exist then it shows this message
```
oserrors.nim(92)         raiseOSError
Error: unhandled exception: No such file or directory
Additional info: foo [OSError]
```

After PR it shows
```
Error: cannot open 'foo/bar.nim'
```
Which makes it line up with the error message if `foo/` did exist but
`bar.nim` didn't. Does this by using the same logic for [handling if the
file doesn't
exist](0dc12ec24b/compiler/options.nim (L785-L788))
2023-12-02 05:29:10 +01:00
..
2023-12-02 05:28:24 +01:00
2023-11-20 21:12:13 +01:00
2023-10-29 14:47:22 +01:00
2022-09-27 10:57:47 +02:00
2017-01-07 22:35:09 +01:00
2023-12-02 05:28:24 +01:00
2023-05-06 21:27:28 +02:00
2023-11-04 17:46:59 +08:00
2021-01-12 09:36:51 +01:00
2023-12-02 05:28:24 +01:00
2022-03-23 20:34:53 +01:00
2023-07-02 22:36:05 +02:00
2023-11-06 18:33:28 +01:00
2023-12-02 05:28:24 +01:00
2023-12-02 05:28:24 +01:00
2023-10-12 23:33:38 +02:00
2023-11-20 21:12:13 +01:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.