Closed OliverLaiGHong closed 3 months ago
I had noticed that interfaces/IERC4626.sol
is using a utf-8 special character for quotes in a comment somewhere, not sure if this is the problem but that file has been like that for 2+ years so I wouldn't think so
@fubuloubu Actually, these utf-8 characters are seen across multiple files. i have tried to remove them but it was proven impractical. however, Ape was able to handle them about a month ago.
sorry - accidentally closed
I can reproduce this problem by doing:
path.write_text("“", encoding="latin-1")
so that is why specifying the encoding as utf8 everywhere fixes the problem. (see attached 2 issues)
also - this is no longer a problem in this specific use-case anyway because we are using shutil.copytree() now as of https://github.com/ApeWorX/ape/pull/2123
so this issue will be closed in every way once the 2 attached PRs merge.
Environment information
ape
and plugin versions:ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
I tried using solidity v0.8.23 and v0.8.25, and openzepplin v5.0.1 and v5.0.2, i keep getting the special character issues. when I removed everything the needs openzepplin, it got no problems.
Please include information like:
what command you ran $ ape compile
the code that caused the failure and the full output of the error received: after compiling all my own contracts and interfaces I obtained from dexes' websites, as soon as it starts working on openzepplin dependencies, this error occurs:
How can it be fixed?
Sorry. I have no idea.