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

ansi color code templates fail to bind symbols #9394

Closed
bluenote10 opened this issue Oct 16, 2018 · 0 comments · Fixed by #9417
Closed

ansi color code templates fail to bind symbols #9394

bluenote10 opened this issue Oct 16, 2018 · 0 comments · Fixed by #9417

Comments

@bluenote10
Copy link
Contributor

@bluenote10 bluenote10 commented Oct 16, 2018

The code

import terminal, colors
let code = ansiForegroundColorCode(colAliceBlue)

errors with

../home/fabian/bin/nim-repo/lib/pure/terminal.nim(639, 14) template/generic instantiation from here
../home/fabian/bin/nim-repo/lib/pure/strformat.nim(315, 39) Error: undeclared identifier: 'fgPrefix'

Looking at the source shows that it is probably a consequence of using stformat in a template.

Vindaar added a commit to Vindaar/Nim that referenced this issue Oct 17, 2018
Until issue nim-lang#7632 is fixed, use string append.
@Araq Araq closed this in #9417 Oct 18, 2018
Araq added a commit that referenced this issue Oct 18, 2018
* fix #9394 by replacing `fmt` with normal string append

Until issue #7632 is fixed, use string append.

* use `strutils.%` instead of normal string add
narimiran added a commit to narimiran/Nim that referenced this issue Oct 31, 2018
* fix nim-lang#9394 by replacing `fmt` with normal string append

Until issue nim-lang#7632 is fixed, use string append.

* use `strutils.%` instead of normal string add
narimiran added a commit to narimiran/Nim that referenced this issue Nov 1, 2018
* fix nim-lang#9394 by replacing `fmt` with normal string append

Until issue nim-lang#7632 is fixed, use string append.

* use `strutils.%` instead of normal string add
narimiran added a commit that referenced this issue Nov 1, 2018
* fix #9394 by replacing `fmt` with normal string append

Until issue #7632 is fixed, use string append.

* use `strutils.%` instead of normal string add
narimiran added a commit that referenced this issue Nov 1, 2018
* fix #9394 by replacing `fmt` with normal string append

Until issue #7632 is fixed, use string append.

* use `strutils.%` instead of normal string add

(cherry picked from commit 82a1576)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant