question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use text algebra in scala 3.1.0

See original GitHub issue

The definition of the text object in the doodle.syntax package object clashes with the definition of the text function in TextSyntax

Example:

    import doodle.java2d.algebra.Algebra
    import doodle.java2d.Drawing
    import doodle.syntax.*
    text[Algebra, Drawing]("scsdcs")

Compiler output:

Toplevel definition text is defined in
  /Users/jemartin/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/creativescala/doodle-core_3/0.10.0/doodle-core_3-0.10.0.jar(doodle/syntax/package.class)
and also in
  /Users/jemartin/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/creativescala/doodle-core_3/0.10.0/doodle-core_3-0.10.0.jar(doodle/syntax/TextSyntax.class)
One of these files should be removed from the classpath.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
noelwelshcommented, Jan 2, 2022

I think I’ll follow the design in Cats and Cats Effect and shift “import everything” out of the package object and into an object named all. This will break existing code.

import doodle.syntax._

will change to

import doodle.syntax.all._

0.10 hasn’t been officially released yet so it’s ok to include as part of the first offical 0.10 release.

0reactions
noelwelshcommented, Jan 3, 2022

Should all be good to go in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scala 3.2.0 reveals "non-local return' defects #2822 - GitHub
SN artifacts currently would be published using Scala 3.1.3 and that probably would not change until the first release of Scala LTS.
Read more >
Scala 3.1.0 released!
Hello from the Scala 3 team! It has already been six weeks since we have announced the release candidate for the first minor...
Read more >
Macros - Scala 3
Lifting Expressions​​ Here's a compiler that maps an expression given in the interpreted language to quoted Scala code of type Expr[Int] . The...
Read more >
Migration Guide: SQL, Datasets and DataFrame - Spark 3.1.1 ...
The datasources take into account the SQL config spark.sql. ... In Spark 3.1, path option cannot coexist when the following methods are called...
Read more >
A Deep Dive Into Spark Datasets and DataFrames Using Scala
In this article, I am going to show you how to use Spark Datasets and ... Please note that a Dataset has also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found