Git Product home page Git Product logo

Comments (6)

armanbilge avatar armanbilge commented on May 27, 2024

Yes, my original investigation suggested that sbt was using this legacy flag instead of the flag for Scala 3 -external-mappings, which is reported in sbt/sbt#6652.

But, what is strange is why the legacy flag would be a "bad option": even though it is deprecated, it should be supported. So my best guess is that you need some extra flag that indicates that the Scala 3 compiler should work in "2.13 compatibility mode". Probably, sbt-typelevel-settings adds this one. If I had to guess it's this migration one.

https://github.com/typelevel/sbt-typelevel/blob/fb3c7d871e88c3eeef8bc73b57f9f90559c8386a/settings/src/main/scala/org/typelevel/sbt/TypelevelSettingsPlugin.scala#L150

Edit: I see mouse already includes this option:

case v if v.startsWith("3") => Seq("-source", "3.0-migration")

from mouse.

armanbilge avatar armanbilge commented on May 27, 2024

Oh, I know what this is. I bet if you update to Scala 3.1.1 it will work without changing anything else.

from mouse.

danicheg avatar danicheg commented on May 27, 2024

So what is this exactly? :) I've tried to dig into that rabbit hole, but have no results, unfortunately.

from mouse.

armanbilge avatar armanbilge commented on May 27, 2024

What this option does is link to other libraries' API docs from mouse's API docs.

We turned this on in the latest sbt-typelevel release, so you can see the difference between the mouse 1.0.9 docs and the mouse 1.0.10 docs for Scala 2.13. In the 1.0.10 docs you can click on Functor, FlatMap, etc. and it will take you to the cats API docs.

https://www.javadoc.io/doc/org.typelevel/mouse_2.13/1.0.9/mouse/FEitherOps.html
https://www.javadoc.io/doc/org.typelevel/mouse_2.13/1.0.10/mouse/FEitherOps.html

I guess it doesn't matter if it's not working for the Scala 3 docs if nobody is looking at those :)

Edit: btw, I don't know why it's not linking for Scala standard library APIs :(

from mouse.

armanbilge avatar armanbilge commented on May 27, 2024

I'm not sure if this is an issue anymore. I don't see the error anymore in the logs.

from mouse.

danicheg avatar danicheg commented on May 27, 2024

Yeah, it seems this is fixed.

from mouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.