Comments (8)
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.
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.
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.
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.
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.
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.
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.
lol. glad it works! :)
from ergodox-firmware.
Related Issues (20)
- Will a non-soldered teensy be recognized as a keyboard? HOT 2
- Any way to give Ergodox the full control over layout? HOT 8
- PROBLEMS FOR UK KEYBOARD USERS HOT 1
- Is 80 key version of ergodox supported in your code ? HOT 9
- Compose key not registered HOT 1
- Latch Keys Not Working HOT 3
- changing key from `1` to `_grave` causes unexpected behavior
- "Simple macros" don't work on Mac OS Sierra HOT 4
- How to release the 'RightAlt' upon leaving a layer. HOT 4
- Updating the USB stack HOT 1
- How to use layers? HOT 1
- Readme still links to the defunct .org site in the title HOT 1
- Set what is sent on shift HOT 1
- Random sticky/unresponsive HOT 11
- Always switched to layer 2 on the first system startup HOT 3
- Hold letter key for another key entirely HOT 1
- About the drop page cannot download .HEX files HOT 1
- Keyboard doesnt boots after tried to flashing with another firmware HOT 4
- Using ancient frozen customized fork of your firmware (didn't set it up, kinda inherited it, don't really understand it). If I get a new ergodox, could I just flash my current firmware on to it? (Paranoid the old microcontroller in my current one *might* be starting to fail...) HOT 11
- default Make target (dist) fails running gen-ui-info.py with KeyError: '_kb_layout' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ergodox-firmware.