Closed Jipok closed 7 years ago
Same error for me!
Please provide the command you are using to build the sample.
@yglukhov
nim c -r --threads:on test.nim
test.nim contains example from README, all libraries are installed. Full log:
Hint: used config file '/etc/nim.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
Hint: window [Processing]
Hint: abstract_window [Processing]
Hint: view [Processing]
Hint: typetraits [Processing]
Hint: tables [Processing]
Hint: hashes [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: algorithm [Processing]
Hint: etcpriv [Processing]
Hint: sequtils [Processing]
Hint: types [Processing]
Hint: context [Processing]
Hint: opengl [Processing]
Hint: macros [Processing]
Hint: x [Processing]
Hint: xlib [Processing]
Hint: xutil [Processing]
Hint: keysym [Processing]
Hint: dynlib [Processing]
Hint: system_logger [Processing]
Hint: logging [Processing]
Hint: times [Processing]
Hint: os [Processing]
Hint: posix [Processing]
Hint: matrixes [Processing]
Hint: font [Processing]
Hint: unicode [Processing]
Hint: streams [Processing]
Hint: resource [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: async_http_request [Processing]
Hint: asyncdispatch [Processing]
Hint: oids [Processing]
Hint: endians [Processing]
Hint: heapqueue [Processing]
Hint: nativesockets [Processing]
Hint: net [Processing]
Hint: sets [Processing]
Hint: deques [Processing]
Hint: selectors [Processing]
Hint: epoll [Processing]
Hint: httpclient [Processing]
Hint: uri [Processing]
Hint: strtabs [Processing]
Hint: base64 [Processing]
Hint: mimetypes [Processing]
Hint: random [Processing]
Hint: httpcore [Processing]
Hint: asyncnet [Processing]
Hint: threadpool [Processing]
Hint: cpuinfo [Processing]
Hint: linux [Processing]
Hint: cpuload [Processing]
Hint: pathutils [Processing]
Hint: variant [Processing]
Hint: sdl2 [Processing]
Hint: unsigned [Processing]
Hint: timer [Processing]
Hint: mini_profiler [Processing]
Hint: sdl_perform_on_main_thread [Processing]
Hint: font_data [Processing]
Hint: stb_ttf_glyph_provider [Processing]
Hint: rect_packer [Processing]
Hint: ttf [Processing]
Hint: write_image_impl [Processing]
Hint: edtaa3func [Processing]
Hint: simple_table [Processing]
Hint: portable_gl [Processing]
Hint: image [Processing]
Hint: resource_cache [Processing]
Hint: oswalkdir [Processing]
stack trace: (most recent call last)
/home/tiber/.nimble/pkgs/nimx-0.1/nimx/resource_cache.nim(140) getResourceNames
/home/tiber/.nimble/pkgs/nimx-0.1/nimx/resource_cache.nim(128) getEnvCt
lib/nim/pure/strutils.nim(2205) removeSuffix
lib/nim/pure/strutils.nim(2205, 9) Error: index out of bounds
I'm using Manjaro Linux (based on Arch), kernel x86_64 Linux 4.9.16-1-MANJARO
@yglukhov seems to work with latest Nim compiler from git
Great! Thanks.
I get an error when compiling the any code sample with nimx:
stack trace: (most recent call last) nimx/resource_cache.nim(140) getResourceNames nimx/resource_cache.nim(128) getEnvCt lib/pure/strutils.nim(2242) removeSuffix lib/pure/strutils.nim(2242, 9) Error: index out of bounds
This problem disappears when I use $ export NIMX_RES_PATH="123"