• AVR Freaks

Hot!MPLAB X problem

Author
henkebenke
Starting Member
  • Total Posts : 49
  • Reward points : 0
  • Joined: 2008/09/27 23:55:51
  • Location: 0
  • Status: offline
2020/01/21 05:27:14 (permalink)
5 (1)

MPLAB X problem

Hi, MPLAB X suddenly starts to behave strange. It's a bit hard to describe the problem, but normally, SFR names, and other variables define in headers, etc, are colored blue, which mean that the IDE recognizes them. Also, bitfields pops up when you write, for example SPICONbits, followed by a period.
My MPLAB X suddenly loses this and underscores the variables with a red wave, as if it was misspelled.  In those cases it even underscores keywords such as else, if and while, even though the code compiles without error.  Very annoying and the source is tiresome to look at.  
This behavior appears suddenly, and I need to start up a new project to make things behave normally.
 
A picture:
https://www.dropbox.com/s...77501ebn/bild.jpg?dl=0
 
Suggestions?
 
Thanks.
#1

4 Replies Related Threads

    ric
    Super Member
    • Total Posts : 25592
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: MPLAB X problem 2020/01/21 05:41:59 (permalink)
    +2 (2)
    You're not alone.
    It's a problem that has been in MPLABX for years, and Microchip seem unable to fix it.
    Search "red squiggles" for the hundreds of topics about it.
    Using the "reparse source" option sometimes fixes it, as does clearing out the MPLABX cache folders.
     

    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!
    #2
    henkebenke
    Starting Member
    • Total Posts : 49
    • Reward points : 0
    • Joined: 2008/09/27 23:55:51
    • Location: 0
    • Status: offline
    Re: MPLAB X problem 2020/01/21 20:42:32 (permalink)
    +1 (1)
    It started when I created a PIC32 project.
     
    I have tested every trick mentioned on the internet, and I refuse to do any development unless I'll get this fixed.
     
    It's unbearable! Looking hour after hour into this red hell.
     
    Unfortunately the older MPLAB does not support my PIC32 model. 
     
    The "almost last resort " is to reinstall Windows, or do a Windows reset.  The very last resort is to chose a dsPIC and rebuild prototypes, etc.
     
    But I refuse to continue this farce! This problem has been there for some five years, how can people stand it?  But they don't have a choice, probably, they must get their work done. 
    #3
    dilawar
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2019/04/25 12:39:02
    • Location: 0
    • Status: offline
    Re: MPLAB X problem 2020/01/22 08:44:58 (permalink)
    0
    it also happened to me frequently. so just close the program and reopen it , i hope the problem will  remove.
    #4
    steverap
    Super Member
    • Total Posts : 160
    • Reward points : 0
    • Joined: 2003/11/07 12:38:54
    • Location: San Jose, CA, USA
    • Status: offline
    Re: MPLAB X problem 2020/01/22 13:06:20 (permalink)
    +1 (1)
    Right-click on the project to execute "Reparse Project":
     
    Attachments are not available: Download requirements not met

    Attachment(s)

    Attachments are not available: Download requirements not met
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5