question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import file hint doesn't work as expected

See original GitHub issue

Import 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SerCeMancommented, Apr 28, 2018

Thanks @0v1se for fixing.

I added one more test I really like how the issue translates into a test: screen shot 2018-04-28 at 3 11 31 pm

1reaction
0v1secommented, Apr 16, 2018

@SerCeMan ok, I’ll fix it in some days if you don’t mind

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found