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.

replace function not working

See original GitHub issue

Issue description

Trying to replace anything with recipes.replaceAllOccurrences() results in error

Steps to reproduce

No response

Script used

https://gist.github.com/menguele/e3e55fb92739f4dbe38ff31cf7e6f6b2

The crafttweaker.log file

https://gist.github.com/menguele/dea0fe7bd23d53b08df91675a41c3408

Minecraft version

1.12

Modloader

Forge

Modloader version

14.23.5.2860

CraftTweaker version

4.1.20.678

Other relevant information

I use OpenJ9, with Hotspot or GraalVM it says [INITIALIZATION][CLIENT][ERROR] [crafttweaker]: Error executing {[0:crafttweaker]: test.zs}: Truncated class file on line 34, the rest seems the same

The latest.log file

https://gist.github.com/menguele/e0b09708d5efe79e53fce96aeb7a60b0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
friendlyhjcommented, Jul 23, 2022

recipes.replaceAllOccurences, you typed double R. I know Occurrences is proper spelling…

0reactions
jaredlll08commented, Jul 24, 2022

not that much bloat.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does String.replace not work? [duplicate] - Stack Overflow
You did not assign it to test . Strings are immutable. test = test.replace("KP", "");. You need to assign it back to test...
Read more >
Python string replace not working | Edureka Community
Hi. I am trying to replace some characters in python string but it is not working. I am using this code: name =...
Read more >
Python string replace not working - Intellipaat Community
1 Answer ... You are facing this issue because you are using the replace method incorrectly. When you call the replace method on...
Read more >
String replace function not working when trying to replace with ...
Hello all,. I have a long string field(description field) in my data source and I want to replace a specific character with new...
Read more >
string.replace does not work correctly for large strings #40709
You can either properly escape the input, use a function as the replacement value, or use a different function to substitute the substring....
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