olafurpg / bsp-pants

0 stars 2 forks source link

Working directory is incorrect when testing via IntelliJ #4

Open olafurpg opened 4 years ago

olafurpg commented 4 years ago

Reproduce: https://github.com/olafurpg/intellij-bsp-pants/tree/working-directory

Run

./setup-bsp.sh
cd ../intellji-bsp/src/src

Testing with Bloop in terminal

Works as expected with fix from https://github.com/scalameta/metals/pull/1209 (requires changing the version of metals in setup-bsp.sh)

bloop test src/test/scala/foo:foo
Compiling src/test/scala/foo:foo (1 Scala source)
Compiled src/test/scala/foo:foo (255ms)
MySuite:
Working directory: /Users/lgeirsson/dev/intellij-bsp-pants

Testing with IntelliJ via BSP project

Screenshot 2019-12-19 at 17 33 52

It may be that we need to add more information to the BSP spec in order to fix this issue 🤔