Replies: 9 comments 7 replies
-
Thanks! I also use intelliJ and don't have the same squiggles, BUT intelliJ is confused when I use the ai.lum.common.ConfigUtils._ implicits on the Config object Out of curiosity, if on line 42 you add the explicit type declaration ( Here's my scala compiler screed fwiw @kwalcock any additional thoughts, if you have a chance? |
Beta Was this translation helpful? Give feedback.
-
Be sure to use 2021.1.1. There were lots of problems with 2021.1.0. If you want to upgrade to something other than ("Artifactory" at "http://artifactory.cs.arizona.edu:8081/artifactory/sbt-release" ).withAllowInsecureProtocol(true) IntelliJ is just not good with implicits, especially those config[] ones. I get the squiggles as well in all versions of IntelliJ. For the code generation associated with BuildInfo, it seems to help to run sbt once in advance. IntelliJ seems to get the idea afterwards. There are some checks that can be made in the Project Structure settings in the Modules. It seems like the source folders that get found aren't always right and that they might be influenced by previous builds. |
Beta Was this translation helpful? Give feedback.
-
"get the idea" - heh. I'm on IntelliJ IDEA 2021.1.1 .
Bummer about the red squiggles... My line 45 is over the pipe |
Beta Was this translation helpful? Give feedback.
-
ah, line 46 line 24 |
Beta Was this translation helpful? Give feedback.
-
If the squiggles irritate you too much, you can change code like val baseGrounder = BaseGrounder.fromConfig(config[Config]("eventBase"), stopwordManaging) to val baseGrounder = BaseGrounder.fromConfig(config.apply[Config]("eventBase"), stopwordManaging) by adding the apply. Otherwise, it seems like the proper place to report the error is at JetBrains. IntelliJ has a help menu item that takes you right there. |
Beta Was this translation helpful? Give feedback.
-
Yes, but in addition, the type specification didn't seem sufficient in some cases. That may happen with apply as well. I think it's better not to scratch this one. |
Beta Was this translation helpful? Give feedback.
-
Many in the team want to fix this. I spoke with Marco and I think we’re
hoping to fix it at the source (i.e., ai.lum.common), else any of these
solutions are ok.
…On Thursday, May 20, 2021, Keith Alcock ***@***.***> wrote:
*External Email*
Yes, but in addition, the type specification didn't seem sufficient in
some cases. That may happen with apply as well. I think it's better not to
scratch this one.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#289 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJCPCNCDQSBFZ2LCUQUMQ3TOTDF7ANCNFSM444I3GSQ>
.
|
Beta Was this translation helpful? Give feedback.
-
So @nezda -- we found a way to rework the source code, but a huge problem was that the type checking moved from compile time to run time, which we feel is too big of a loss. thoughts? |
Beta Was this translation helpful? Give feedback.
-
Apply and implicit are in store for some very significant changes in Scala 3. I wonder whether that would be a better target. It may be that whatever we change now will have to change again soon if we're not careful. |
Beta Was this translation helpful? Give feedback.
-
It took me a while to get the project to build in IntelliJ 2021.1 but eventually I got it going... mostly. Here are some of my experiences:
http
instead ofhttps
:odinson/extra/build.sbt
Line 3 in 89277aa
BuildInfo
didn't work until I switched onsbt
builds https://www.jetbrains.com/help/idea/compile-and-build-scala-projects.html#scala_delegateodinson/core/src/main/scala/ai/lum/odinson/OdinsonIndexWriter.scala
Lines 252 to 278 in 1c5394e
Ambiguous implicits..., No implicits found for evidence..., Cannot resolve overloaded constructor 'File', Cannot resolve symbol !, Cannot resolve symbol contains. What's misconfigured in my IntelliJ?
Maybe something in

Next file I went to had more type complaints:
odinson/extra/src/main/scala/ai/lum/odinson/extra/IndexDocuments.scala
Lines 42 to 70 in ac6ca7b
It would be nice to get rid of these red squiggles.
Some of this might be useful in the docs. Looks like a fascinating project - going to dig in a bit now!
Kind regards,
Beta Was this translation helpful? Give feedback.
All reactions