Skip to content
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

pycharm: imports are unresolved but pyb works, also running the application works #891

Open
damnmso opened this issue Jul 6, 2023 · 2 comments

Comments

@damnmso
Copy link

damnmso commented Jul 6, 2023

i followed the pyb --start-project structure, so i have e.g. in project\src\main\python\business\services my class ADService in file ad_service.py. This class uses:


from business.userobject import UserObject


class ADService(ABC):
    @abstractmethod
    def registerUser(self, user: UserObject):
        pass

in pycharm, UserObject is marked red, when i run pyb, it works and executes the tests. i also used invalidate caches and restart in pycharm, did not help. also wierd that i can perfectly fine run the application. its just really ugly to work with those red lines in the source :/
any idea? i assume this is some problem in the python.pycharm plugin? but thats just a guess

@damnmso
Copy link
Author

damnmso commented Jul 6, 2023

i deleted the complete project folder, imported it again without venv this time and now it works. is there some way to get more information why it failed? like some debug.log for that python.pycharm plugin?

@arcivanov
Copy link
Member

Thanks for the report, I'll take a look.

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