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.

Regression Aug 15th-17th in community build compiling Squants

See original GitHub issue

Compilation errors

[error] -- [E049] Reference Error: /home/travis/build/lampepfl/dotty-community-build/squants/shared/src/main/scala/squants/energy/Energy.scala:242:19 
[error] 242 |    def toEnergy = Energy(s)
[error]     |                   ^^^^^^
[error]     |              object Energy in package energy does not take parameters
[error] -- [E049] Reference Error: /home/travis/build/lampepfl/dotty-community-build/squants/shared/src/main/scala/squants/energy/Power.scala:145:18 
[error] 145 |    def toPower = Power(s)
[error]     |                  ^^^^^
[error]     |               object Power in package energy does not take parameters
[error] -- [E049] Reference Error: /home/travis/build/lampepfl/dotty-community-build/squants/shared/src/main/scala/squants/energy/PowerRamp.scala:109:22 
[error] 109 |    def toPowerRamp = PowerRamp(s)
[error]     |                      ^^^^^^^^^
[error]     |           object PowerRamp in package energy does not take parameters
[error] -- [E049] Reference Error: /home/travis/build/lampepfl/dotty-community-build/squants/shared/src/main/scala/squants/information/Information.scala:214:24 0m
[error] 214 |    def toInformation = Information(s)
[error]     |                        ^^^^^^^^^^^
[error]     |    object Information in package information does not take parameters
[warn] -- Migration Warning: /home/travis/build/lampepfl/dotty-community-build/squants/shared/src/main/scala/squants/market/Money.scala:465:27 
[warn] 465 |    def negate(x: Money) = -x
[warn]     |                           ^^
[warn]     |                 method unary_- in class Quantity requires () argument
[error] -- [E049] Reference Error: /home/travis/build/lampepfl/dotty-community-build/squants/shared/src/main/scala/squants/mass/Mass.scala:216:17 
[error] 216 |    def toMass = Mass(s)
[error]     |                 ^^^^
[error]     |                 object Mass in package mass does not take parameters
[error] -- [E049] Reference Error: /home/travis/build/lampepfl/dotty-community-build/squants/shared/src/main/scala/squants/space/Length.scala:290:19 
[error] 290 |    def toLength = Length(s)
[error]     |                   ^^^^^^
[error]     |               object Length in package space does not take parameters
[warn] 5 warnings found
[error] 6 errors found
[error] (squantsJVM/compile:compileIncremental) Compilation failed

Definition of Energy https://github.com/dotty-staging/squants/blob/616fe0d74bedea35a5b2f0e79dc3c42cbaa5b0ce/shared/src/main/scala/squants/energy/Energy.scala#L27

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
felixmuldercommented, Aug 21, 2017

Minimized:

object Test {
  object Energy {
    private def parse(value: Any) = ???
    def apply = parse _
  }

  // Energy.apply("") // works!
  Energy("") // crashy-boom-boom
}
1reaction
oderskycommented, Dec 29, 2017

I think the culprit is 30ac9e2#diff-7c63b7bfffa9340fb48ac9b61fa56beeR1931

I would guess the same. Allan can you revert that commit and see whether it passes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CodaLab Worksheets
... bog down complicated grammar deals building Trouble memorising or " ... laFraise printer herr bert rox french community Oldies my hide balloons...
Read more >
Untitled
Bosch gks 7000 professional, Community health options lewiston! ... Simcity 5 building tips, Book em parque, Leafy house plants identification, Boscher eric ...
Read more >
Mythology, Morphology, Iconography of the Tanbūr Lute ...
Kurdish tanbūr, played among the Ahl-i-Haq religious community in Iran, holds the ... Did morphology and mythology develop and travel hand.
Read more >
0-1 - GitHub
... picplz 00011011110000110000 15th-17th 00011011110001000000 paybox ... unloading 00101001110011011110 compile 00101001110011011110 designing ...
Read more >
WEDNESDAY, APRIL, 1 - The Pacific Sociological Association
entering their communities after prison at a residential re-entry ... at a small liberal arts institution and builds on a previous faculty.
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