I upgraded to the latest version of Notepad++ (5.5) and noticed that I sometimes get some problems with a dialogue box that pops up, looking like the picture the right stating (Load Langs.xml failed!)
Having a quick look at the installation directory, it looks like a langs.xml
file exists yet it has a 0KB size. I’m not sure what causes it yet (perhaps it’s if you kill the process mid-way using Task Manager) but all I did was take a copy of langs.model.xml
and rename the copy as langs.xml
. Fixes it all up!
I had the same error, renaming the file fixed the problem indeed.
But, I had no problems at all, until I started using the FTP plugin.
Maybe the plugin is causing this…
Thanks a lot…
Very Useful.
Thanks! I also installed the FTP Plugin, im pretty sure this is the reason for it. 🙂
Thanks! This was really annoying!
P.S. I did not install any plugis – I got the error from the very beginning…
Very good
This fixed my problem (running Win 7 x64). thank you!
BTW, this problem exists in WinXP as well. The file on this system is 75,792 bytes large and has nothing but nul characters. The fix worked, Thanks! You could also erase/delete langs.xml and it will be regenerated.
Thanks!
Fixed my (annoying) problem as well, I didn’t install any FTP thingie though.
Finally! Thanks!
How annoying that was.
I’ve got the same issue on Windows 7, but there is NO “langs.model.xml” at that folder! I just deleted the langs.xml, but it didn’t work!
thank you very much! mystery solved
Same problem and fix for me worked as suggested
close Notepad++
delete langs.xml
restart Notepad++
Notepad++ will refer to langs.model.xml and recreate a new langs.xml for itself.
If you have Arman’s problem as above, and you don’t want to do a reinstall, you could download the zip version of Notepad++, extract langs.model.xml to the install folder, then follow the fix.
I followed the suggested fix and get no massage anymore as I open the program, but the commands aren’t highlighted (C language)
I found an alternative: use the portable version of Notepad++ installed on a USB and wait for an update!
Thanks Peter
LoL, it really works!
I have seen similar fixes documented at various places. For instance , you can find a similar solution here. While this certainly makes the warning message disappear, it doesn’t really resolve the issue that Notepad++ is corrupting, or wiping out the langs.xml file. Personally, I customize indentation settings, both the default settings, and in some cases the settings for specific languages. I have found that taking a backup of my modified langs.xml, and restoring it, will do the trick. However, I hope they can get this issue permanently resolved. I love NP++, but this has gotten a bit annoying.
the problem seems to reoccur, so i’ve created a .bat file as a one-click fix:
64bit:
download 64bit fixNotepad.bat
copy /Y "%ProgramFiles(x86)%\Notepad++\langs.model.xml" "%UserProfile%\AppData\Roaming\Notepad++\langs.xml"
x86:
copy /Y "%ProgramFiles%\Notepad++\langs.model.xml" "%UserProfile%\AppData\Roaming\Notepad++\langs.xml"