eo icon indicating copy to clipboard operation
eo copied to clipboard

Cannot find cached files

Open Karina5005 opened this issue 1 year ago • 6 comments

I wanted to test the case where the build happens first and then the tests run without clearing the cache. But I get a compilation error in module eo-runtime. I run:

mvn clean install
mvn test

Result:

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOmath/EOnumber.java:[366,21] cannot find symbol
  symbol:   class EOnumber$EOpow
  location: class EOorg.EOeolang.EOmath.EOnumber
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOmath/EOnumber.java:[371,21] cannot find symbol
  symbol:   class EOnumber$EOas_float
  location: class EOorg.EOeolang.EOmath.EOnumber
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOmath/EOnumber.java:[376,21] cannot find symbol
  symbol:   class EOnumber$EOas_int
  location: class EOorg.EOeolang.EOmath.EOnumber
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOmath/EOnumber.java:[381,21] cannot find symbol
  symbol:   class EOnumber$EOas_string
  location: class EOorg.EOeolang.EOmath.EOnumber
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOmath/EOangle.java:[83,21] cannot find symbol
  symbol:   class EOangle$EOsin
  location: class EOorg.EOeolang.EOmath.EOangle
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOmath/EOangle.java:[88,21] cannot find symbol
  symbol:   class EOangle$EOcos
  location: class EOorg.EOeolang.EOmath.EOangle
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOmath/EOrandom.java:[48,21] cannot find symbol
  symbol:   class EOrandom$EOpseudo
  location: class EOorg.EOeolang.EOmath.EOrandom
[ERROR] /home/karina/eo/eo-runtime/target/generated-sources/EOorg/EOeolang/EOcollections/EOmultimap.java:[206,21] cannot find symbol
  symbol:   class EOmultimap$EOrebuild
  location: class EOorg.EOeolang.EOcollections.EOmultimap

Karina5005 avatar Aug 31 '22 12:08 Karina5005

@Karina5005 definitely a bug, will take care of this

yegor256 avatar Aug 31 '22 15:08 yegor256

@mximp maybe you can help? The problem is related to UnplaceMojo and TranspileMojo. At mvn install phase we unplace some *.class files. Then, at mvn test we don't compile them again. Maybe this will be fixed by #1172 (or related to it).

yegor256 avatar Sep 10 '22 04:09 yegor256

I'm on it

mximp avatar Sep 21 '22 08:09 mximp

@yegor256 what is the point of deleting pulled classes (binaries) in UnplaceMojo? It seems that we remove needed files we've just produced with previous steps.

mximp avatar Sep 22 '22 07:09 mximp

@yegor256 and what is so special about these libs specified for deletion:

<removeBinaries>
                <glob>EOorg/EOeolang/EOhamcrest/**</glob>
                <glob>EOorg/EOeolang/EOmath/**</glob>
                <glob>EOorg/EOeolang/EOfs/**</glob>
              </removeBinaries>

mximp avatar Sep 22 '22 07:09 mximp

Got answers to both questions above as part of #1256

mximp avatar Sep 23 '22 19:09 mximp

@Karina5005 this is fixed now. Please verify and close the task

mximp avatar Sep 29 '22 06:09 mximp

Closing as resolved

mximp avatar Oct 04 '22 11:10 mximp