https://kotlinlang.org logo
#intellij
Title
# intellij
j

Jishin Dev [JD]

09/26/2023, 2:47 PM
JB Folks, Noticing this annoying bug where a file randomly pops up in the commit tab claiming it was modified when its not, a different file every time when this has happened. And its stubborn! I've so far tried - • restarting the IDE • invalidate cache • git restore to unstage •
git rm --cached -r .
,
git reset --hard
• git stash/ intellij shelve • moving it to a different changelist • reverting the changes it claims to have (shows random changes never done on local) But it still
COMES
right back within seconds 🥹 . Unable to pull from remote through intelliJ as it warns there are local changes that needs to be removed/stashed etc (which don't work). Something I'm yet to try is deleting the local repo and pulling a fresh copy from remote. but once in the past I've noticed that failing too. Earlier when I got it to work, was when I moved it to different changelist and called it mean names. but now even that doesn't seem to be working. Someone help! 😭
Copy code
IntelliJ IDEA 2023.2.1 (Community Edition)
Build #IC-232.9559.62, built on August 23, 2023
Runtime version: 17.0.8+7-b1000.8 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.5.2
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
    debugger.new.tool.window.layout=true
    ide.experimental.ui=true
    kotlin.wasm.wizard=true

Non-Bundled Plugins:
    com.jetbrains.packagesearch.intellij-plugin (232.9559.10)

Kotlin: 232-1.9.0-IJ9559.62
okay, this is the same when I try without the IDE but on terminal directly. 🤔 Found some articles that mentioned its to do with file line endings and special chars, whats the way out?
Deleted the repo and downloaded again and it seems to be fine for the time being. 🤞
m

mcampbell

10/02/2023, 9:47 AM
If it is the line-endings issue, you can configure how you want the behavior to be: https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
j

Jishin Dev [JD]

10/03/2023, 5:57 AM
Not sure if its the line-endings, but even if it was, I was hoping the IDE would raise this as a warning or throw some error rather than playing magic tricks 😅
m

mcampbell

10/03/2023, 11:31 AM
Sure, my point was partially though that it might be git and not the editor.
j

Jishin Dev [JD]

10/03/2023, 11:33 AM
Makes sense.