vermut / intellij-ansible

YAML/Ansible support with Jinja2 tags / IntelliJ IDEA
https://plugins.jetbrains.com/plugin/7792
Other
205 stars 29 forks source link

NullPointerException when using undefined variable #77

Open syhe opened 7 years ago

syhe commented 7 years ago

Platform:

IntelliJ IDEA 2017.1.4
Build #IU-171.4694.23, built on June 6, 2017
JRE: 1.8.0_121-b13 amd64
JVM: OpenJDK 64-Bit Server VM by Oracle Corporation
Linux 4.11.3-1-ARCH
YAML/Ansible support version: 0.9.5

I started a new playbook like this:

- name: "Main"
  hosts: "all"
  tasks:
    - name: "test"
      template:
        src: "{{ item.src }

The second curly brace is not autocompleted and when I typed in the closing quotation mark, the exception was triggered. I'm guessing it's trying to look up a not-yet-existant variable.

I would like to be able to type up a new playbook without the plugin spewing exceptions at me.

Instead, I got the following stack trace with "null" as error message. intellij_trace.txt

SideHustleDev commented 7 years ago

I believe I have the same problem NPExcept.txt