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

VScode "from sc2.constants import *" not working #58

Closed
momo-iah opened this issue Jun 27, 2018 · 3 comments
Closed

VScode "from sc2.constants import *" not working #58

momo-iah opened this issue Jun 27, 2018 · 3 comments

Comments

@momo-iah
Copy link

VScode "from sc2.constants import *" not working, and i have below error massage
E0602:Undefined variable 'PROBE'

Also, I tried:

from sc2.constants import PROBE
[pylint] E0611:No name 'PROBE' in module 'sc2.constants'

@mjschuetze102
Copy link
Contributor

Add UnitTypeId. in front of probe: UnitTypeId.PROBE

@hlgrondijs
Copy link

hlgrondijs commented Aug 16, 2018

Use

from sc2.ids.unit_typeid import UnitTypeId

then reference PROBE by

UnitTypeId.PROBE

@BurnySc2
Copy link
Collaborator

Use the fix suggested by @HeNKiEeEeE

from sc2.ids.unit_typeid import UnitTypeId
from sc2.ids.ability_id import AbilityId
from sc2.ids.buff_id import BuffId
from sc2.ids.upgrade_id import UpgradeId
from sc2.ids.effect_id import EffectId

I have this at the top of each of my files. Autocomplete works for me in VScode and Pycharm with this.

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

4 participants