This is a known bug in the NB plugin. There are two ways to remove this error.

  1. Right click inside any window with Scala code (i.e. any window with a .scala file open). Select "reset Scala parser". Then click on any other window and back to your scala code. The error should disappear

  2. Restart the IDE.

This works for me in NB 6.8 on Windows. I assume the same would work on a Mac with NB 6.9.

There is a third option to just ignore this error (as it is only in the IDE but does not occur during compile).

Related Query

More Query from same tag