Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # An error is happening in the Nim compiler as I try to recompile a file.
- # I noticed that the error only happens when I use some nimble package.
- # Nim is installed on: D:\Nim
- # I am using Windows 10 and Nim 1.0.0
- # Below is the code to reproduce the error. mytestpack.nim and test.nim
- # nim.cfg -> my configs
- @if windows:
- @if not release or not danger:
- nimcache = r"./nimcache/d/$projectName"
- @else:
- nimcache = r"./nimcache/r/$projectName"
- @end
- @end
- @if windows:
- @if i386:
- gcc.path = r"D:\mingw32\bin"
- tcc.path = r"D:\tcc32"
- clang.path = r"D:\LLVM32\bin"
- @elif amd64:
- gcc.path = r"D:\mingw64\bin"
- tcc.path = r"D:\tcc64"
- clang.path = r"D:\LLVM64\bin"
- @end
- @end
- nimblePath = r"D:\Nimble\pkgs"
- # end nim.cfg
- # C:\Users\Jose\AppData\Roaming\nimble\nimble.ini -> nimbleDir = r"D:\Nimble\"
- # mytestpack.nim -> This file is in D:\Nimble\pkgs\mytestpack-0.1.0
- # It's a nimble package
- proc testproc*() = echo "Test"
- # end mytestpack.nim
- # test.nim -> This file is in C:\Users\Jose\Desktop
- import mytestpack
- testproc()
- # end test.nim
- # Print: https://snipboard.io/AtPpHr.jpg
- #
- # C:\Users\Jose\Desktop>nim c test
- # Hint: used config file 'D:\Nim\config\nim.cfg' [Conf]
- # Hint: system [Processing]
- # Hint: widestrs [Processing]
- # Hint: io [Processing]
- # Hint: test [Processing]
- # Hint: mytestpack [Processing]
- # CC: stdlib_io.nim
- # CC: stdlib_system.nim
- # CC: ../../../../D:/Nimble/pkgs/mytestpack-0.1.0/mytestpack.nim
- # CC: test.nim
- # Hint: [Link]
- # Hint: operation successful (14419 lines compiled; 1.023 sec total; 15.969MiB peakmem; Debug Build) [SuccessX]
- #
- # C:\Users\Jose\Desktop>nim c test
- # Hint: used config file 'D:\Nim\config\nim.cfg' [Conf]
- # Hint: system [Processing]
- # Hint: widestrs [Processing]
- # Hint: io [Processing]
- # Hint: test [Processing]
- # Hint: mytestpack [Processing]
- # oserr.nim(94) raiseOSError
- # Error: unhandled exception: A sintaxe do nome do arquivo, do nome do diretório ou do rótulo do volume está incorreta.
- # [OSError]
- # Print nimblecache: https://snipboard.io/MLInxm.jpg
Advertisement
Add Comment
Please, Sign In to add comment