• AVR Freaks

Hot!MPLAB X-IDE why y?

Author
PerranOak
Starting Member
  • Total Posts : 40
  • Reward points : 0
  • Joined: 2017/05/12 09:56:11
  • Location: UK
  • Status: offline
2019/09/09 02:01:04 (permalink)
0

MPLAB X-IDE why y?

Yesterday, I did a little work on my assembly prog in MPLAB X-IDE and saved the work.
Today, I opened the .asm file and it was blank! This even though it showed as a size of 19k in the directory.
I opened the file in MSWord and examined it and it was actually not blank but full of a weird character - lowercase "y" with two dots over it.
Any idea what on Earth happened and how I can avoid it in future?
Cheers.
#1

12 Replies Related Threads

    DavidBLit
    Super Member
    • Total Posts : 1579
    • Reward points : 0
    • Joined: 2012/02/18 13:08:48
    • Location: The Land of Confusion
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/09 06:11:59 (permalink)
    -3 (3)
    Suggestion 1: don't use garbage IDE's.

    Yeah, "//Code and stuff".
    #2
    moser
    Super Member
    • Total Posts : 504
    • Reward points : 0
    • Joined: 2015/06/16 02:53:47
    • Location: Germany
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/09 06:52:40 (permalink)
    +1 (1)
    Suggestion 2: MPLAB X has a "History" feature. Maybe this could help you to get your file back.
    Suggestion 3: Use a version control system, like Git, Subversion or Mercurial.
    Comment 1: ÿ is Unicode U+00FF. 
    Comment 2: I know, so far none of this is really an answer to your questions. But I don't know if anybody can answer those at all.
     
    #3
    Gort2015
    Klaatu Barada Nikto
    • Total Posts : 3292
    • Reward points : 0
    • Joined: 2015/04/30 10:49:57
    • Location: 0
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/09 07:26:04 (permalink)
    0
    Did you get the file back?

    MPLab X playing up, bug in your code? Nevermind, Star Trek:Discovery will be with us soon.
    https://www.youtube.com/watch?v=Iu1qa8N2ID0
    + ST:Continues, "What Ships are Made for", Q's back.
    #4
    PerranOak
    Starting Member
    • Total Posts : 40
    • Reward points : 0
    • Joined: 2017/05/12 09:56:11
    • Location: UK
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/09 07:34:01 (permalink)
    0
    I only know of one IDE.
     
    I had backed it up but, of course, the backup had all the "y" in it! As it happens, I had copied the text of the .asm file into an editor to print it and work on it off-line. I was able simply to cut/paste it back in luckily.
     
    What worries me though is that it seems so random and could happen again. Now I take a text copy before saving every time - very annoying.
    #5
    ric
    Super Member
    • Total Posts : 23893
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: MPLAB X-IDE why y? 2019/09/09 13:23:07 (permalink)
    0
    As mentioned, your file is full of 0xFF characters. I don't know why.
    Which version of MPLABX are you using?
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #6
    Mysil
    Super Member
    • Total Posts : 3359
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/09 16:27:50 (permalink)
    +3 (3)
    Hi,
    MPLAB X have the possibility to store source code files in several different character representations.
    When the MPLAB X project is created, or a new source file is created, it is possible to select the character representation to be used. Possibilities may be plain 8 bit ASCII characters ( one byte per  character),
    UTF-8  Unicode  with variable number of bytes for each character, or UTF-16  Unicode with 2 or 4 bytes for each character.
    MPLAB X will know what character representation was used in the file when it was saved.
     
    MSWord is not suitable to edit software source code files, it is likely to insert formatting codes, and / or change character representation, in ways that will destroy the contents as software source code.
     
    Microsoft Notepad may be used for simple edting purposes, usually without making problems.
    There are other cross-platform editors that may be used for source code editing:
    Notepad++  or  UltraEdit may be used, and may convert between different character representations,
    there are many other possibilities: https://en.wikipedia.org/wiki/List_of_text_editors
     
    Also the editor in Microsoft Visual Studio, may be used to edit source code for MPLAB X source files,
    if it is installed.
     
        Mysil
    #7
    PerranOak
    Starting Member
    • Total Posts : 40
    • Reward points : 0
    • Joined: 2017/05/12 09:56:11
    • Location: UK
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/13 04:29:39 (permalink)
    0
    ric: I am using v4.15.
    #8
    ric
    Super Member
    • Total Posts : 23893
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: MPLAB X-IDE why y? 2019/09/13 04:36:30 (permalink)
    +1 (1)
    That's from early last year. Time to move up to one of the 5.xx variants.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #9
    PerranOak
    Starting Member
    • Total Posts : 40
    • Reward points : 0
    • Joined: 2017/05/12 09:56:11
    • Location: UK
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/13 10:37:18 (permalink)
    0
    Ah. Will that stop it?
    #10
    ric
    Super Member
    • Total Posts : 23893
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: MPLAB X-IDE why y? 2019/09/13 14:52:54 (permalink)
    +1 (1)
    I don't know, but you won't get any support from Microchip for problems wit an old version.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #11
    bkamen
    Super Member
    • Total Posts : 824
    • Reward points : 0
    • Joined: 2010/01/26 12:39:27
    • Location: Central Illinois, USA
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/14 17:35:18 (permalink)
    0
    Yea - notepad is a horrible editor that doesn't understand MAC/UNIX encoding.

    It only deals with DOS (cr/lf) format.

    Notepad++ is excellent.

    Ultraedit is even better. (and worth buying as it handles and can convert between encoding easily. And then you'll play with column mode and get hooked!)

     -Ben
    #12
    PerranOak
    Starting Member
    • Total Posts : 40
    • Reward points : 0
    • Joined: 2017/05/12 09:56:11
    • Location: UK
    • Status: offline
    Re: MPLAB X-IDE why y? 2019/09/15 02:47:02 (permalink)
    0
    Cheers both.
    #13
    Jump to:
    © 2019 APG vNext Commercial Version 4.5