Skip to content

Relative import is not correctly updated when file change #448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AndreasArvidsson opened this issue Dec 9, 2021 · 6 comments
Closed

Relative import is not correctly updated when file change #448

AndreasArvidsson opened this issue Dec 9, 2021 · 6 comments

Comments

@AndreasArvidsson
Copy link

I have two files. tests1 imports a function from test2, but if I update the print content in test2 the print out in the log will not update until I touch tests1.
I have a memory of a log entry somewhere along the lines of "updating relative imports", but I don't get anything like that anymore.

version: 0.2.0-220
os: windows 10

test1.py

from .test2 import my_funk
cron.interval("1s", my_funk)

test2.py

def my_funk():
    print("1")
@lunixbochs
Copy link

are these directly in user/?

@AndreasArvidsson
Copy link
Author

No they are in a subdirectory under user

@AndreasArvidsson
Copy link
Author

I just tried putting them directly in user and it made no difference.

@lunixbochs
Copy link

fixed locally, will go out in next beta

@AndreasArvidsson
Copy link
Author

Thank you!
I think this is the source of a very strange bug in cursorless regarding csv files not being updated correctly.

@lunixbochs
Copy link

fixed in 0.2.0-228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants