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.

"Can't find bundle for base name" error during compile

See original GitHub issue

steps

I added the test file to all 10 projects, added Ethans helpful command, an alias for ;clean;test and updated the library versions. I run it in this way: time sbt "repeat 1000 testAndClean", and it takes about 5-10 minutes sometimes longer on my machine.

https://github.com/kraigmckernan/sbt-5262

problem

[error] /home/kmckernan/git/sbt-5262/p4/src/test/scala/closetest/ATest.scala:6:5: exception during macro expansion: 
[error] java.util.MissingResourceException: Can't find bundle for base name org.scalactic.ScalacticBundle, locale en_US
[error]         at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1581)
[error]         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
[error]         at java.util.ResourceBundle.getBundle(ResourceBundle.java:782)
[error]         at org.scalactic.Resources$.resourceBundle$lzycompute(Resources.scala:8)
[error]         at org.scalactic.Resources$.resourceBundle(Resources.scala:8)
[error]         at org.scalactic.Resources$.pleaseDefineScalacticFillFilePathnameEnvVar(Resources.scala:256)
[error]         at org.scalactic.source.PositionMacro$PositionMacroImpl.apply(PositionMacro.scala:65)
[error]         at org.scalactic.source.PositionMacro$.genPosition(PositionMacro.scala:85)
[error]     1 should be (1)
[error]     ^

expectations

No errors.

note

I don’t think the change to set sbt.classloader.close to false by default is a complete fix for this.

Interestingly I was also able to reproduce the problem in sbt 1.3.5 even though there is some custom code for a scalatest classloader.

_Originally posted by @kraigmckernan in https://github.com/sbt/sbt/issues/5262#issuecomment-671418525_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
HyukjinKwoncommented, Oct 30, 2020

That looks working, so far. I am going to monitor the builds for a week, and get back to you.

0reactions
eed3si9ncommented, Jun 17, 2021

I’m going to close this issue for now then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't find bundle for base name /Bundle, locale en_US
When I tried copying this setup across to a new server, I got an error "Caught exception: Can't find base number for bundle...
Read more >
Unable to find bundle for base name - CodeRanch
The base name of a resource is NOT a path to that resource. It is a fully qualified class name, as if the...
Read more >
Cannot find bundle for base name storeErrorMessages - IBM
Cause. The above error occurs for the following reasons: The storeErrorMessages_en_US.properties file does not exist. When loading the page the ...
Read more >
java.util.MissingResourceException: Can't ... - Google Groups
Hi, I get the below error when I browse through the orders from ACC9.0 standalone client on ATG9.0 Weblogic. Please help me, why...
Read more >
[#13901] - java.util.MissingResourceException: Can't find ...
MissingResourceException : Can't find bundle for base name ... in Jaspersoft Studio (from Vversion 6.16.0 on) I get the following error:.
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