-
Notifications
You must be signed in to change notification settings - Fork 2.3k
"truffle/Assert.sol" & "truffle/DeployedAddresses.sol" not found: File not supplied initially. #787
Comments
truffle/Assert.sol and DeployedAddresses.sol files are missing for me also. I am following Truffle's metacoin example steps, at what stage these files should have been created. I noticed when test command showed 0 passing message. Didn't receive any error message till this point. truffle(develop)> truffle test |
@KurtLorey @malaravannm This issue has also been raised in #756. In that instance, the poster re-installed their project and the issue self-resolved. They were also on Windows using VS Code. If someone discovers why this is happening or if the steps suggested don't work please feel free to re-open or comment here. Closing as duplicate of #756. |
reinstalling project doesn't work. |
same here... not working on windows 10 environment. VS Code, is there any way to solve it? |
what is mean by reinstalling the project ? |
It seems that this issue is related to naming conflict in Win env. |
Try to install truffle with -g option... |
From the windos command line (i.e. the gitbash command line) it didn't work for me (Windows 7). But it worked from the truffle develop command line |
Thanks it worked over truffle(develop)> |
I am working through the Pet Shop tutorial and was having the same issue. Truffle's "magic" files that aren't anywhere in your repository were causing errors to show up in my tests, although the tests still ran and passed fine.
Doing this with |
Its not a windows issue I don't think. It's happening on my imac with BigSur |
Same issue here on Windows 10. Isn't there a way to locally download the truffle folders? |
@ndrslmpk Can you open a new issue please? This will help us track and investigate the problem more efficiently. Thanks you! |
Also happening on my ubuntu and I can't find a way to fix it. |
Hi @DigiCris, can you open a new issue for this, please? What version of truffle are you using, and, if possible, do you have a repo you can share? thanks! |
Issue
With truffle 4.0.5 on windows, test files fail to "import" with error:
'Error'
ParserError: Source "truffle/Assert.sol" not found: File not supplied initially.
import "truffle/Assert.sol";
ParserError: Source "truffle/DeployedAddresses.sol" not found: File not supplied initially.
import "truffle/DeployedAddresses.sol";
Steps to Reproduce
Created a test file and try to import truffle/Assert.sol and truffle/DeployedAddresses.sol
Expected Behavior
Test script should import scripts identified
Actual Results
Error not found: File not supplied initially.
Environment
The text was updated successfully, but these errors were encountered: