Comments (5)
Hi @petulino777, I've moved your comment to a new thread, as I think it's a different issue than #55.
Could you explain what hex file are you trying to load into what editor?
A hex file from the Python Editor (https://python.microbit.org) will only load in the Python Editor, and a MakeCode (https://makecode.microbit.org/) hex file will only load in MakeCode.
from pythoneditor.
Hello, I am only an older hobby programmer playing with a micro-bit. Sorry for my bad English.
And I just want to keep my little programs somewhere, especially if I switch computers.
I've been doing these operations without any client on my computer, just through the chrome browser, and that's how I want to keep using it for the time being.
GitHub apparently (at least when uploading/downloading via the browser) treats micro-bit HEX files as text files and modifies them.
I have found one SOLUTION when using GitHub using only the browser:
Before uploading the first HEX file to a repository, just upload (also via browser) a file named .gitignore to that repository.
Its content - one line: *.hex
And then I can add the files downloaded from the repository to MakeCode Web Editor via Import file via the browser and it works!
Please close this Issue. Thanks for the help and sorry to have kept you busy here.
Peter
from pythoneditor.
GitHub apparently (at least when uploading/downloading via the browser) treats micro-bit HEX files as text files and modifies them.
To better understand your workflow, are you adding hex files to a GitHub repository and then downloading them? How? using the GitHub website, cloning the repository somewhere else, or some other method?
Do you have an example of a hex file uploaded to GitHub that is modified by GitHub?
from pythoneditor.
Hi Carlos, I use only the browser to work with github.com My workflow: on the notebook nr. 1 I upload per chrome browser my visual block program - HEX file. On the notebook nr.2 I download this HEX file, again with the chrome browser. I open the web page makecode.microbit.org and then I try -> Import File... and after selecting and opening the HEX file it will be short displayed: "Sorry, we could not recognize this file". It means that the uploaded file on notebook nr.1 and the file downloaded on the notebook nr.2 is not the same - the fc/b showed that the files are different. But after uploading the .gitignore file its all OK. I get the same file on the another notebook (and Import OK). i think, the github thinks that the HEX file is a text file and makes some processing at upload on them. I have the solution for me, thanks for your attention and help.
from pythoneditor.
Okay, thanks for sharing the workflow and solution!
I'll close this as resolved then 👍
from pythoneditor.
Related Issues (20)
- A11y: When tab selection is in Load/Save modal "Or browse a file" shift-tab goes to editor HOT 1
- A11y: Modal close "button" should be keyboard focusable
- online pythoneditor not update HOT 1
- Clicking in REPL doesn't close Help popup HOT 1
- Cannot enter # in REPL on Macbook Pro w. UK keyboard HOT 1
- Clarify help.html HOT 1
- help.html clarifications
- Error displays incorrect line HOT 2
- Filesystem long initialisation can cause issues accessing the files modal early
- Hex does not download in iOS Chrome or Firefox
- Simulator HOT 2
- how to download experimental python editor HOT 2
- Editor cannot load old file
- Cannot download hex file HOT 2
- Need more libraries HOT 1
- Update test procedure HOT 1
- Working on a new iteration of the micro:bit Python Editor HOT 2
- Beta is missing the neopixel module? HOT 2
- Print = ("welcome tr")
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 pythoneditor.