Hot!The folder handling or lack of is sometimes really really annoying

Author
oliverb
Senior Member
  • Total Posts : 133
  • Reward points : 0
  • Joined: 2009/02/16 13:12:38
  • Location: 0
  • Status: online
2018/06/24 04:04:08 (permalink)
0

The folder handling or lack of is sometimes really really annoying

I have a project where the source files are in a "src" folder. After import the file seems to have retained the "src" path as hovering over main.c shows src/main.c but there appears to be no way to change this apart from exporting the file then reimporting to the desired location.
 
Just for clarification I imported the project as a ZIP file, so it tried to re-create the various file paths even though it isn't supposed to have file paths. It would have been better if it just auto-flattened it.
post edited by oliverb - 2018/07/02 10:53:26
#1

4 Replies Related Threads

    christinaz
    New Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2018/05/17 09:58:42
    • Location: 0
    • Status: offline
    Re: The folder handling or lack of is really really annoying 2018/06/26 15:51:18 (permalink)
    0
    folder structure in MPLABX is virtual, you can put your main.c in any folder you create in a project without caring about its actual folder in file system.
    #2
    oliverb
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2009/02/16 13:12:38
    • Location: 0
    • Status: online
    Re: The folder handling or lack of is really really annoying 2018/07/01 11:21:51 (permalink)
    0
    There is some inconsistency between MPLAB X and MPLAB Xpress though. MPLAB X has a folder tab, and does allow for organising source files in real folders.
     
    An example would be putting the source files in an actual not virtual source folder.
     
    In MPLAB Xpress things get messed up as it will generate folders from a ZIP file, even though they aren't fully supported once inported. More specifically you'll see both forward and backward slashes in the same path!
    post edited by oliverb - 2018/07/01 12:28:34
    #3
    christinaz
    New Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2018/05/17 09:58:42
    • Location: 0
    • Status: offline
    Re: The folder handling or lack of is really really annoying 2018/07/26 16:36:57 (permalink)
    0
    Hi Oliver
     Can you put some screen shots of messed up files, I can't find messed up file on my MPLABX or Xpress.
    Thanks!
    #4
    oliverb
    Senior Member
    • Total Posts : 133
    • Reward points : 0
    • Joined: 2009/02/16 13:12:38
    • Location: 0
    • Status: online
    Re: The folder handling or lack of is really really annoying 2018/12/04 06:51:39 (permalink)
    0
    OK here's how to re-create what I'm looking at:
    If you go to:
    https://sourceforge.net/projects/graphical-lcd-128x64-library/
     
    You'll find a zipfile containing documentation and a project. You'll have to repack it to make a new zipfile that just contains the GraphicalLCD.X project folder, but once you've done that you can upload it.
     
    It doesn't compile though, even though it is a valid project. Instead if you hover over each file the tooltip will show folder names even though there shouldn't be folders.
     
    To flatten it so it will compile it you need to open it in MPLAB X, relocate all the source files to the project root, and re-pack it.
     
     
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5