scalascriptengine icon indicating copy to clipboard operation
scalascriptengine copied to clipboard

Can't find newest version

Open MHOOO opened this issue 10 years ago • 2 comments

Hi there.

The Library successfully compiles the files, but doesn't load them for some reason. Invoking sse.newInstance returns the old/initial Version of my class. Is there any way to debug this?

MHOOO avatar Sep 10 '15 20:09 MHOOO

Apparently, since the File was compiled by sbt, this caused always the original to be loaded, and not the newly compiled file. I could fix the problem by moving the file into a directory, that is not managed by sbt. Now its being compiled and loaded every time I change it. Ideally though, I guess the sourceDir should have a higher priority than the classpath, no?

MHOOO avatar Sep 10 '15 20:09 MHOOO

How do you instantiate scala script engine?

On 10/09/15 21:18, Thomas Karolski wrote:

Apparently, since the File was compiled by sbt, this caused always the original to be loaded, and not the newly compiled file. I could fix the problem by moving the file into a directory, that is not managed by sbt. Now its being compiled and loaded every time I change it. Ideally though, I guess the sourceDir should have a higher priority than the classpath, no?

— Reply to this email directly or view it on GitHub https://github.com/kostaskougios/scalascriptengine/issues/14#issuecomment-139367785.

kostaskougios avatar Sep 11 '15 10:09 kostaskougios