Skip to content

Publish for Scala 2.13 #17

@dubinsky

Description

@dubinsky

Documentation at https://github.com/gmkumar2005/scala-js-env-playwright?tab=readme-ov-file#scala-versions states:

Scala versions

  • This library can be used with any scala version 2.x and 3.x
  • This project is compiled with scala 2.12.20

While using the library with Scala 2.13.16, the code compiles; attempt to use the library with Scala 3.7.1 results in:

Error: Bad symbolic reference.
A signature in .../io/github/gmkumar2005/scala-js-env-playwright_2.12/0.1.18/scala-js-env-playwright_2.12-0.1.18.jar
(jsenv/playwright/PWEnv.class)
refers to Serializable/T in package scala which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling

Here is a scala-cli script that reproduces the issue:

//> using scala 3.7.1
//> using dep io.github.gmkumar2005:scala-js-env-playwright_2.12:0.1.18

import jsenv.playwright.PWEnv

val pwEnv = new PWEnv()

The error goes away when using a locally published version of the library built with Scala 2.13.16 with one line changed in Runner.scala:

- import scala.jdk.CollectionConverters.seqAsJavaListConverter
+ import scala.jdk.CollectionConverters.SeqHasAsJava

Would you please consider publishing the library for Scala 2.13 also?

Thank you!!

P.S. Unrelated remark: mentions of Selenium in the ScalaDoc comment in PWEnv.scala seems like an uncorrected copy/paste:

new SeleniumJSEnv(
  new org.openqa.selenium.firefox.FirefoxOptions(),
  SeleniumJSEnv.Config()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions