PyCharm is highlighting code in red while I'm trying to use sikulixapi.jar to write Jython scripts
Hello! I'm trying to set up Sikuli for Jython autotests writing in PyCharm.
Some basic scripts are working for now, but there is some unexpected behavior of PyCharm.
What I've done before:
1) installed PyCharm
2) installed Jython (and set it as an interperter in PyCharm)
3) downloaded sikulixapi.jar
4) created project with .py file within (in this .py file's configuration I've created "CLASSPATH" environment variable with sikulixapi.jar filepath as a value)
.py script looks like this:
import org.sikuli.
from sikuli import *
click ("button.jpg")
unexpected behavior:
1) PyCharm doesn't give autocomplete advices, like when I've wrote "e" -> "exists". Does it really should be so?
2) PyCharm highlights some parts of code in red with given suggestions (but why?):
"import org.sikuli.
"from sikuli import *" -> unresolved reference "sikuli"
"click ("button.jpg")" -> unresolved reference "click"
my environment:
Mac OS Sierra
jython 2.7.1
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: