vitalibo / bitbake-intellij-plugin

IntelliJ Platform plugin for support BitBake syntax
Apache License 2.0
3 stars 2 forks source link

Python syntax highlighting not working #2

Closed ciarancourtney closed 3 months ago

ciarancourtney commented 3 years ago

For example the bb python function below is treated as shell:

python do_build() {
    print("build")
}
fbezdeka commented 3 years ago

I tried this plugin today and I had to configure a python interpreter (project settings) first.

Highlighting works, but I'm facing some indention and python errors. Keeping the first line of the function empty solves them.

Reports "unexpected indent":

python test() {
    a = "as"
    if a in ["asdf"]:
        print("Match")
}

Works:

python test() {

    a = "as"
    if a in ["asdf"]:
        print("Match")
}
fbezdeka commented 3 months ago

Closing as this is nearly two years old now. To make the python highlighting work it might be necessary to configure a python interpreter in the project settings. The mentioned problems above should be fixed in version >= 1.4.