Closed noahehall closed 1 year ago
Nothing specific to the hint, fmt
just does not propagate line information
import std/strformat
echo fmt"{string ""abc""}"
lib/core/macros.nim(533, 8) Hint: conversion from string to itself is pointless [ConvFromXtoItselfNotNeeded]
Which is kind of expected that it doesn't extract the exact location inside a string literal, but it could at least give the location of the full string literal
(After looking a little bit, fmt
has entirely static
parameters, so it's a bit hard to extract line information)
Description
setting this in
config.nims
does not reveal the file or line with error
going through each file one by one, i found the error.
Nim Version
[ updated to latest choosenim #devel] $ nim --v Nim Compiler Version 1.9.3 [Linux: amd64] Compiled at 2023-05-01 Copyright (c) 2006-2023 by Andreas Rumpf
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
go through each file one by one ;)~
Additional Information
[update]
the same thing occurs for TimeoutError