It is currently March 28th, 2024, 10:27 pm

[Resolved] Atom has broken my skin

General topics related to Rainmeter.
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

[Resolved] Atom has broken my skin

Post by Active Colors »

The Atom editor has just broken my skin after I was trying to use it with new rainmeter syntax highlighter.
Capture.PNG
Now I want to revert my code to normal view but I can't figure it out how I am supposed to do it. I am trying to copy intent part of code from the atom window (left window on the screenshot) but it does not copy it. Only first character of what I'm copying is appearing. I need wise help.

(Moreover I lost half of the code when tried to cut and paste that half of my code. After I cut the part of my code it went to warp and never showed up. It can't undo as well. )
You do not have the required permissions to view the files attached to this post.
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Atom has broken my skin

Post by Active Colors »

What the hell
2.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Atom has broken my skin

Post by Active Colors »

Atom is doing something weird. Where is my code now?
3.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
~Faradey~
Posts: 366
Joined: November 12th, 2009, 4:47 pm
Location: Ukraine

Re: Atom has broken my skin

Post by ~Faradey~ »

hmm...
did you try to change encodings to auto detect?
i see in Atom it UTF-8 which is not good

i think what happened is that you have your ini saved in UCS-2 little endian in Notepad++ or else and after opened in Atom it sets file encoding to UTF-8 automatically which may result this as on last screenshot, set it to auto detect or choose proper encodings..
Last edited by ~Faradey~ on March 1st, 2016, 12:05 pm, edited 2 times in total.
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Atom has broken my skin

Post by Active Colors »

Luckily I have saved the piece of code from the second post (the code with spaces) and replaced all the spaces with empty strings. I just left with adding spaces back to bangs and some other places. I am browsing now my old backups of this skin in order to get back the lost part of my code.

Be careful with new environments.
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Atom has broken my skin

Post by Active Colors »

~Faradey~ wrote:hmm...
did you try to change encodings to auto detect?
i see in Atom it UTF-8 which is not good
For this particular file I had UCS-2 LE BOM.
User avatar
~Faradey~
Posts: 366
Joined: November 12th, 2009, 4:47 pm
Location: Ukraine

Re: Atom has broken my skin

Post by ~Faradey~ »

i have tested it right now

i have ini in UCS-2 LE opened in Netepad++
after opening same ini in Atom i have this


bunch of spaces as u have

after saving ini from Notepad++ in UTF-8 --> Atom froze and not responding ;)


after setting it back to UCS-2 in Atom results this

soo i think it's obvious that problem in encodings ))


AND Unix???
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Atom has broken my skin

Post by Active Colors »

~Faradey~ wrote:i have tested it right now

i have ini in UCS-2 LE opened in Netepad++
after opening same ini in Atom i have this


bunch of spaces as u have

after saving ini from Notepad++ in UTF-8 --> Atom froze and not responding ;)


after setting it back to UCS-2 in Atom results this

soo i think it's obvious that problem in encodings ))


AND Unix???
At least developers could tell us about encoding problems beforehand during installation or welcome screen.

Anyways, I have successfully restored my skin. I wish developers will fix this issue so nobody in the future will experience such problems.
User avatar
~Faradey~
Posts: 366
Joined: November 12th, 2009, 4:47 pm
Location: Ukraine

Re: Atom has broken my skin

Post by ~Faradey~ »

i didn't mean that problem in Atom, it just that Atom opens and view file in UTF-8 first, without detecting which encodings file has, you need to keep that in mind and select proper encodings. Mb it has setting somewhere to change it to auto detect i don't know, i have installed Atom just today :)
User avatar
Active Colors
Moderator
Posts: 1251
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: Atom has broken my skin

Post by Active Colors »

~Faradey~ wrote:i didn't mean that problem in Atom, it just that Atom opens and view file in UTF-8 first, without detecting which encodings file has, you need to keep that in mind and select proper encodings. Mb it has setting somewhere to change it to auto detect i don't know, i have installed Atom just today :)
UCS-2 LE BOM is proper encoding. How could I keep that in mind if I didn't know about this issue, haha :confused: