• AVR Freaks

Hot!“unable to resolve identifier” information on MPLAB X IDE

Author
Luna_Ice
New Member
  • Total Posts : 19
  • Reward points : 0
  • Joined: 2014/07/10 22:56:12
  • Location: 0
  • Status: offline
2019/05/22 18:41:48 (permalink)
0

“unable to resolve identifier” information on MPLAB X IDE

 Hi,
   I import the START project into MPLAB X 5.15, and build by XC8, the code can build successful, but when I open some c file,
it will show "unable to resolve identifier" on some symbol, I search those symbol in whole project, but I can't found it, I don't know where are they. Does anyone know what the reason cause this issue?
 
Attachments are not available: Download requirements not met
 

Attachment(s)

Attachments are not available: Download requirements not met
#1

10 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 17611
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/22 19:03:06 (permalink)
    +1 (1)
    Which PIC are you using?
    Does it actually have that register ?
    Did you include <xc.h> ?
    #2
    Aussie Susan
    Super Member
    • Total Posts : 3608
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/22 19:10:14 (permalink)
    +2 (2)
    Is this the long standing bug in the IDE that puts red wavy lines under some variables to show the IDE thinks there is an error?
    If the code compiles then that is all that matters - these spurious errors (which can also come and go!) can be ignored.
    Susan
    #3
    Luna_Ice
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2014/07/10 22:56:12
    • Location: 0
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/22 19:43:55 (permalink)
    0
    Aussie Susan
    Is this the long standing bug in the IDE that puts red wavy lines under some variables to show the IDE thinks there is an error?
    If the code compiles then that is all that matters - these spurious errors (which can also come and go!) can be ignored.
    Susan




    yes, the code can build successful, but I want to know what it come from. sometime it make user uncomfortable.
    #4
    Aussie Susan
    Super Member
    • Total Posts : 3608
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/23 19:30:03 (permalink)
    +2 (2)
    As I said, it is a long standing issue that has not been resolved despite numerous bug reports.
    Sometimes closing and opening the IDE and project can help.
    At least when you do a compile, the error messages you get from the compiler are accurate and (for the most part) it is quite fast to do a compile, fix the (first few) errors that are reported and compile again.
    Although I don't like saying it. it is something that you just have to learn to live with in MPLABx.
    Susan
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 17611
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/23 23:21:11 (permalink)
    +1 (1)
    Google or search the forum for “MPLabX red squiggly lines”.
    You will find hundreds of discussions of the issue. Enjoy.
    #6
    moser
    Super Member
    • Total Posts : 490
    • Reward points : 0
    • Joined: 2015/06/16 02:53:47
    • Location: Germany
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/24 03:42:00 (permalink)
    0
    In the "Projects" tab do a right-click on your project name, and select "Code Assistance", "Reparse Project" in the context menu. When parsing is finished and the red underlines have disappeared, then it was just the IDE.
    #7
    Luna_Ice
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2014/07/10 22:56:12
    • Location: 0
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/26 19:39:01 (permalink)
    0
    moser
    In the "Projects" tab do a right-click on your project name, and select "Code Assistance", "Reparse Project" in the context menu. When parsing is finished and the red underlines have disappeared, then it was just the IDE.


    thanks for your reply!  but the red underlines still appear even do "reparse project" operation
    #8
    Luna_Ice
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2014/07/10 22:56:12
    • Location: 0
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/26 19:42:29 (permalink)
    0
    Aussie Susan
    As I said, it is a long standing issue that has not been resolved despite numerous bug reports.
    Sometimes closing and opening the IDE and project can help.
    At least when you do a compile, the error messages you get from the compiler are accurate and (for the most part) it is quite fast to do a compile, fix the (first few) errors that are reported and compile again.
    Although I don't like saying it. it is something that you just have to learn to live with in MPLABx.
    Susan


    Aussie, thank you!
    #9
    Luna_Ice
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2014/07/10 22:56:12
    • Location: 0
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/05/26 19:46:10 (permalink)
    0
    NKurzman
    Google or search the forum for “MPLabX red squiggly lines”.
    You will find hundreds of discussions of the issue. Enjoy.

    LoL: LoL opps....
    #10
    eziya76@naver.com
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2019/06/29 07:46:45
    • Location: 0
    • Status: offline
    Re: “unable to resolve identifier” information on MPLAB X IDE 2019/07/26 18:00:03 (permalink)
    +1 (1)
    Adding include path to XC8 compiler manually solved my issue. 
     
    Attachments are not available: Download requirements not met

    Attachment(s)

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