ScalaJS Code Completion for DOM

60 views
Skip to first unread message

Seyed H. HAERI (Hossein)

unread,
May 11, 2017, 12:26:24 PM5/11/17
to scala-user
Dear all,

I am enjoying Step 3 of the ScalaJS basic tutorial:

https://www.scala-js.org/tutorial/basic/

and, even though I am adding

libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.1"

to my build.sbt and running the "eclipse" command followed by
"reload", I don't get code completion in ScalaIDE. Any idea why?

TIA,
--Hossein

--------------------------------------------------------------------------------------------------------------

Seyed H. HAERI (Hossein), Dr.

Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium

ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------

Naftoli Gugenheim

unread,
May 16, 2017, 11:12:11 PM5/16/17
to Seyed H. HAERI (Hossein), scala-user

Reload tells SBT to read the build files. If your ran the eclipse command in an already running SBT shell after you edited the build files before you ran reload, it would not "know about" the updated build file. And running reload after eclipse doesn't help eclipse.

So in short, after you edit the build file you need to either run sbt eclipse, run sbt and enter eclipse in the new SBT shell, or run reload in an existing SBT shell and then enter eclipse.

That will regenerate the eclipse files from sbt's state.

Getting eclipse to reload your eclipse configuration files depends on its settings.


--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages