Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue with the test runner #162

Closed
ryanplusplus opened this issue Mar 2, 2024 · 2 comments
Closed

Possible issue with the test runner #162

ryanplusplus opened this issue Mar 2, 2024 · 2 comments

Comments

@ryanplusplus
Copy link
Member

ryanplusplus commented Mar 2, 2024

My solution runs locally but fails online with:

tcc: error: libtcc1.a not found
Error: execution of an external program failed: 'tcc -o test_acronym  -lm -lm -lrt   -ldl    /root/.cache/nim/test_acronym_d/@m..@s..@snim@slib@ssystem@sexceptions.nim.c.o /root/.cache/nim/test_acronym_d/@m..@s..@snim@slib@sstd@ssysatomics.nim.c.o /root/.cache/nim/test_acronym_d/
...

My solution is:

import std/re
import std/strutils

proc abbreviate*(s: string): string =
  var letters: seq[char] = @[]

  for match in re.findAll(s, re"[A-Za-z']+"):
    letters.add(strutils.toUpperAscii(match[0]))

  result = letters.join

Is this an issue with the test runner? From the error it looks like an issue with the C compiler, but maybe there's a subtle issue with my code. Perhaps I am not supposed to use these standard libraries?

@ynfle
Copy link
Contributor

ynfle commented Mar 3, 2024

Hi Ryan, the issue isn't with your code; the problematic code has been reverted. See https://forum.exercism.org/t/nim-test-runner-bug-after-exercism-submit/10088/4.

@ryanplusplus
Copy link
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants