Import file hint doesn't work as expected
See original GitHub issueImport file hint pops up even though a file is properly imported. The problem occurs when I use multiple inheritances and I define a structure in the root contract. For instance:
contract A {
struct MyStruct
}
import "A.sol";
contract B is A {
}
import "B.sol";
contract C is B {
MyStruct A; //My struct is correctly imported as its part of B
}
In contract C
MyStruct
is correctly imported. Even though plugin prompts me to import A
contract. Moreover, even if I do that, it keeps prompting me about that.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
import on Python doesn't work as expected
You are importing config in util and util in config which will causing this error(create cross loop). remove from utils import * from...
Read more >Local imports not resolving correctly · Issue #68
Expected behaviour. When trying to import another python file from the same directory as the current file (e.g. main.py and emailRelay.py ...
Read more >Python import: Advanced Techniques and Tips
The Python import system is as powerful as it is useful. In this in-depth tutorial, you'll learn how to harness this power to...
Read more >My files are not opening
There are a number of factors that may cause issues with loading files. If you're unable to open or load files there are...
Read more >Import or update work items in bulk by using CSV files
Import new work items. All work items you import are created in a new state. This rule means that you can't specify field...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @0v1se for fixing.
I added one more test I really like how the issue translates into a test:
@SerCeMan ok, I’ll fix it in some days if you don’t mind