https://pantsbuild.org/ logo
c

chilly-librarian-83669

12/10/2018, 5:37 PM
is there a way to keep IntelliJ from putting red squigglies under key words in a BUILD file?
a

aloof-angle-91616

12/10/2018, 5:42 PM
that has been a longstanding request at twitter as well. since we generate the build dictionary e.g. at https://www.pantsbuild.org/build_dictionary.html i strongly doubt it would be difficult to do this from the pants side as the keywords (and their arguments!!) remain static, but i am not yet familiar with how to hook into highlighting in intellij (although i could write it in 20 minutes for emacs)
and when i say "strongly doubt it would be difficult" i mean "it's definitely possible without tons of changes to pants"
c

chilly-librarian-83669

12/10/2018, 5:45 PM
np
a

aloof-angle-91616

12/10/2018, 5:46 PM
the intellij pants plugin code is at https://github.com/pantsbuild/intellij-pants-plugin, i was talking with justin kaeser from jetbrains about implementing BSP for pants and if i get around to that during winter breakthroughs i might as well take a look at this too
bsp is: https://github.com/scalacenter/bsp, intellij already implements it
c

chilly-librarian-83669

12/10/2018, 5:49 PM
I’ve been following bsp - the meeting notes from early in the year had comments from all the players, but since then, I only see updates from the core scala center team.
a

aloof-angle-91616

12/10/2018, 5:56 PM
that is indeed the case, partially the issue i think was that there was a misconception on our end that BSP was specifically for the bloop build tool (which i think is fantastic), a misconception i have since able to rectify. justin came over for scale by the bay and now that bloop implements bsp 2 (and he literally pointed out on my laptop screen where i would need to make the integration testing) there are no blockers but time. if this reduces maintenance burden for the intellij plugin it's potentially a very useful line of work that doesn't necessarily need to be done in my free time, maybe
c

chilly-librarian-83669

12/10/2018, 5:57 PM
cool
w

wide-energy-11069

12/10/2018, 6:44 PM
specifically to your question, you can unmark ‘BUILD’ from preferences -> file types -> python
👍 1
but probably just easier to ignore the squigglies
a

aloof-angle-91616

12/10/2018, 7:04 PM
ah! i will remember that