Git Product home page Git Product logo

Comments (8)

benblazak avatar benblazak commented on July 19, 2024

On Macports, the "gdate" program is part of the "coreutils" package - a package full of the GNU versions of stuff (since OS X by default comes with the BSD versions of stuff) - they prepend a "g" to the names of the programs by default in order not to mess up software that expects the BSD style commands.

from ergodox-firmware.

spamwax avatar spamwax commented on July 19, 2024

thanks, that part is fixed but the error related to parsing the layout from .map file is still there.

The map file that's been created doesn't have any string to match regex in line 185:

re.search(r'.progmem.data.(_kb_layout\S*)', line).group(1)

Also shouldn't the dots in the above line be escaped similar to the calling function in line 215:

re.search(r'^\s*\.progmem\.data.*layout', line):

from ergodox-firmware.

benblazak avatar benblazak commented on July 19, 2024

we're using different versions of avr-gcc... :) lol - the top-level build process is really fragile, it was never meant to be widely used... :/ . it's one of the things i'm planning to replace (or just do away with...) in the (very slowly coming) rewrite.

mine is version 4.7.2 - you can see my .map file if you download the .zip of one of my recentish builds here

Edit:
also, you're probably right about the regex - but the current version works on my system, and i wasn't planning to touch the code much on this branch anymore. if you really want to though, you can send a pull request for any changes you make - and if it doesn't hurt the readibility of anything, and it still works on my system, i'll accept it. but please keep in mind that the script will be removed in the rewrite.

from ergodox-firmware.

spamwax avatar spamwax commented on July 19, 2024

oh, 4.7.2 that's not fair given that the docs on the github sent me to an older version :)
I'm trying to avoid installing MacPorts since I'm already using Homebrew.

Why are you removing the script, I think it's cool and useful that every build generates its own layout in .svg.

from ergodox-firmware.

benblazak avatar benblazak commented on July 19, 2024

lol, sorry. looking around a bit, it's probably doubly unfair, since I didn't see any easy way to get 4.7.2 without macports, lol. grr... i can think of two other options:

  • edit the offending parts of the script out entirely: IIRC, none of the information read from the .map file is used for generating the .svg (or really for anything, that I know of - it was meant to be used by someone else's UI, earlier on in the project)
  • fix the regex so it works with the .map files generated by avr-gcc 4.6.2

The reason I think it needs to go is that it's kind of a brittle hack, which was fine for its purpose, but not so much fine to maintain... lol. But it's good to hear that somebody appreciates the .svg :) . I've been trying to think of different (better / less fragile) ways to do that once I get to rewriting that part. If I have time I'll keep the layout generation around.

from ergodox-firmware.

benblazak avatar benblazak commented on July 19, 2024

Just tested it - I think the following will fix the problem (at the cost of not having as much information in the ui-info file... which should be fine):

Go to the "build-scripts/gen-ui-info.py" file, and change the gen_derived and parse_mapfile functions to do nothing but return {}

def gen_derived(data):
    return {}

def parse_mapfile(map_file_path):
    return {}

from ergodox-firmware.

spamwax avatar spamwax commented on July 19, 2024

thanks,it's working now.
yea, I tried compiling 4.7 from source but couldn't proceed past the GNU binutils step!

from ergodox-firmware.

benblazak avatar benblazak commented on July 19, 2024

lol. glad it works! :)

from ergodox-firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.