scalafiddle / scalafiddle-core

Source code for the scalafiddle.io compilation service
https://scalafiddle.io
Apache License 2.0
101 stars 37 forks source link

Use default libs even if no external libs could be loaded #25

Closed CodeLionX closed 6 years ago

CodeLionX commented 6 years ago

For my setup the router could not connect to the client and failed loading external libraries. This lead to the error message Library org.scala-js %%% scalajs-dom % 0.9.4 is not supported(line 108 in CompilerManager.scala) send to the browser, which seemed weird.

Apparently, the default libraries weren't added to the currentLibs. I fixed it by adding the default libraries even no external libraries could be loaded.

I hope my assumption is true, that default libraries are available in the classpath by design.

CodeLionX commented 6 years ago

Sorry, this breaks the polling mechanism. I will redesign it and submit a new PR when I'm finished.