Quantcast

ScalaJS Code Completion for DOM

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ScalaJS Code Completion for DOM

Seyed H. HAERI (Hossein)
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/
--------------------------------------------------------------------------------------------------------------

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ScalaJS Code Completion for DOM

Naftoli Gugenheim

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.


On Thu, May 11, 2017, 12:26 PM Seyed H. HAERI (Hossein) <[hidden email]> wrote:
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/
--------------------------------------------------------------------------------------------------------------

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...