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: No to-string for last from-string

See original GitHub issue

The following command returns “replace: No to-string for last from-string”

replace 'Person' 'API.IPerson' . -r --include="*.ts"

According to the docs this should work. Any ideas?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

1reaction
castanarocommented, Jul 21, 2022

Hi everyone - I was able to get it working by running replace 'word1' 'word2' -- 'filename'. Was getting the same error if I didn’t have a space between the -- and filename. Hope that helps.

0reactions
NguyenTienDatcommented, Oct 7, 2022

Hi everyone - I was able to get it working by running replace 'word1' 'word2' -- 'filename'. Was getting the same error if I didn’t have a space between the -- and filename. Hope that helps.

Nice it’s work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Replace the last part of a string - java - Stack Overflow
The following code should replace the last occurrence of a ',' with a ')' . StringBuilder b = new StringBuilder(yourString); ...
Read more >
How to Remove the Last Character of a String? - Baeldung
The easiest way is to use the built-in substring() method of the String class. In order to remove the last character of a...
Read more >
String.prototype.replace() - JavaScript - MDN Web Docs
The replace() method returns a new string with one, some, or all matches of a pattern replaced by a replacement .
Read more >
How to Remove Special Characters from String in Java
Special characters are not readable, so it would be good to remove them before reading. Java replaceAll() method. Java replaceAll() method of String...
Read more >
String (Java Platform SE 8 ) - Oracle Help Center
public final class String extends Object implements Serializable, ... String conversions are implemented through the method toString , defined by Object and ...
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