Guest User

Untitled

a guest
Oct 3rd, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. # An error is happening in the Nim compiler as I try to recompile a file.
  2. # I noticed that the error only happens when I use some nimble package.
  3. # Nim is installed on: D:\Nim
  4. # I am using Windows 10 and Nim 1.0.0
  5. # Below is the code to reproduce the error. mytestpack.nim and test.nim
  6.  
  7. # nim.cfg -> my configs
  8. @if windows:
  9. @if not release or not danger:
  10. nimcache = r"./nimcache/d/$projectName"
  11. @else:
  12. nimcache = r"./nimcache/r/$projectName"
  13. @end
  14. @end
  15.  
  16. @if windows:
  17. @if i386:
  18. gcc.path = r"D:\mingw32\bin"
  19. tcc.path = r"D:\tcc32"
  20. clang.path = r"D:\LLVM32\bin"
  21. @elif amd64:
  22. gcc.path = r"D:\mingw64\bin"
  23. tcc.path = r"D:\tcc64"
  24. clang.path = r"D:\LLVM64\bin"
  25. @end
  26. @end
  27.  
  28. nimblePath = r"D:\Nimble\pkgs"
  29.  
  30. # end nim.cfg
  31.  
  32. # C:\Users\Jose\AppData\Roaming\nimble\nimble.ini -> nimbleDir = r"D:\Nimble\"
  33.  
  34.  
  35.  
  36. # mytestpack.nim -> This file is in D:\Nimble\pkgs\mytestpack-0.1.0
  37. # It's a nimble package
  38. proc testproc*() = echo "Test"
  39.  
  40. # end mytestpack.nim
  41.  
  42.  
  43. # test.nim -> This file is in C:\Users\Jose\Desktop
  44. import mytestpack
  45.  
  46. testproc()
  47.  
  48. # end test.nim
  49.  
  50.  
  51. # Print: https://snipboard.io/AtPpHr.jpg
  52. #
  53. # C:\Users\Jose\Desktop>nim c test
  54. # Hint: used config file 'D:\Nim\config\nim.cfg' [Conf]
  55. # Hint: system [Processing]
  56. # Hint: widestrs [Processing]
  57. # Hint: io [Processing]
  58. # Hint: test [Processing]
  59. # Hint: mytestpack [Processing]
  60. # CC: stdlib_io.nim
  61. # CC: stdlib_system.nim
  62. # CC: ../../../../D:/Nimble/pkgs/mytestpack-0.1.0/mytestpack.nim
  63. # CC: test.nim
  64. # Hint: [Link]
  65. # Hint: operation successful (14419 lines compiled; 1.023 sec total; 15.969MiB peakmem; Debug Build) [SuccessX]
  66. #
  67. # C:\Users\Jose\Desktop>nim c test
  68. # Hint: used config file 'D:\Nim\config\nim.cfg' [Conf]
  69. # Hint: system [Processing]
  70. # Hint: widestrs [Processing]
  71. # Hint: io [Processing]
  72. # Hint: test [Processing]
  73. # Hint: mytestpack [Processing]
  74. # oserr.nim(94) raiseOSError
  75. # Error: unhandled exception: A sintaxe do nome do arquivo, do nome do diretório ou do rótulo do volume está incorreta.
  76. # [OSError]
  77.  
  78. # Print nimblecache: https://snipboard.io/MLInxm.jpg
Advertisement
Add Comment
Please, Sign In to add comment