3

I had a working sbt based project. After some small change that I can not specifically identify all the sbt files are having object resolution issues (see screenshots).

I tried the following:

  • sbt refresh
  • project rebuild
  • reimport project

These did not work.

Then I started going farther afield to resolve the issue. I copied the *.sbt files from another project on top of the ones in this project. Still no dice. Now I do not have time presently to actually completely destroy, rebuild the project from scratch - and in any case that does not lead to any insight on the root cause here.

Has anyone experienced this issue - and any suggestions on remedies/workarounds?

Update I finally tried

sbt gen-idea

even though this project was **not ** built that way.. It did make a difference: at least the crazy errors went away. But now a different set of problems arises: the assembly and packaging imports are not being resolved (see LAST screenshot). But this seems a bit more healthy at least .

enter image description here

enter image description here

Following screenshot is after running sbt gen-idea. Situation has improved but now get assembly/packaging import errors.

enter image description here

Another update OK, I have quit and restarted IJ and things are finally back. So the objective changes that I made:

  • sbt gen-idea
  • stop/restart IJ

This is feeling like magic incantations here .. Not a solid process.

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
  • BTW, I can notice you use `seq(assemblySettings: _*)` while `assemblySettings` alone's enough. – Jacek Laskowski Jun 11 '14 at 09:42
  • Why do you use sbt gen-idea plugin? I am trying to understand whether only idea plugins (Scala and sbt) are enough to import a project from sbt and keep working on it. –  Jun 14 '14 at 00:40

1 Answers1

0

A sort of a workaround could be to upgrade to the latest EAP of IntelliJ IDEA 13.1.3 build 135.909, released on May 23rd, 2014. It comes with more sophisticated Scala plugin that is much clever than the previous versions and hopefully could help here and there.

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
  • Well i will try it out - would have done so anyways. Presently it is giving error can not connect. I will update here when the update succeeds. – WestCoastProjects May 29 '14 at 19:04
  • Intellij updates are still not working. i did another sof issue http://stackoverflow.com/questions/24031202/intellij-check-for-updates-unable-to-connect – WestCoastProjects Jun 04 '14 at 07:11
  • intellij updates started working again. But the problem remains, even with the v latest ij. – WestCoastProjects Jun 11 '14 at 03:00
  • @Jacek Do you know if, with the new Scala plugin, there is any usage for the gen-idea plugin? –  Jun 14 '14 at 00:42
  • There should be none, but been told that there are some use cases that `sbt-idea` handles better. I don't use `sbt-idea` at all and rely on IDEA only. – Jacek Laskowski Jun 14 '14 at 00:55