ignatov / intellij-erlang

Erlang IDE
https://www.jetbrains.com/help/idea/2018.2/getting-started-with-erlang.html
Other
735 stars 120 forks source link

Run Configuration: bad command when function arguments contains list of strings #944

Open david-kubecka opened 3 years ago

david-kubecka commented 3 years ago

Environment:

IntelliJ IDEA 2021.1 (Ultimate Edition)
Build #IU-211.6693.111, built on April 6, 2021

This is my sample Run Configuration:

image

Then the generated command is (notice the extra comma after last list item):

/usr/local/Cellar/erlang/23.2/lib/erlang/bin/erl -pa /Users/davidkubecka/git/gdc/gdc-nas/out/production/aqe -pa /Users/davidkubecka/git/gdc/gdc-nas/microservices/aqe/aqe-erlang -eval "lists:max([\"1\", \"2\", ])." -s init stop -noshell

Of course this gives syntax error during parsing.

Note that if I change the last argument to integer 2 it suddenly starts working:

/usr/local/Cellar/erlang/23.2/lib/erlang/bin/erl -pa /Users/davidkubecka/git/gdc/gdc-nas/out/production/aqe -pa /Users/davidkubecka/git/gdc/gdc-nas/microservices/aqe/aqe-erlang -eval "lists:max([\"1\", 2])." -s init stop -noshell