Coder Social home page Coder Social logo

Comments (3)

DavidSpickett avatar DavidSpickett commented on July 2, 2024

and we put in a fix for the lack of commands for single line blocks

One way is to initialise "ncmd" to 0 here

from arm-learning-paths.

DavidSpickett avatar DavidSpickett commented on July 2, 2024

Debug output for some of the examples:

```
bash is cool
start: 0x123 size: 345 allocated: true
```
[DEBUG]	Copying command to file .tmpcmd: start: 0x123 size: 345 allocated: true
[DEBUG]	['docker cp .tmpcmd test_0:/home/user/']
[DEBUG]	['docker exec -u user -w /home/user test_0 bash .tmpcmd']
[DEBUG]	Test 1: ERROR (command failed. Return code is 127 but expected 0)
```
cool is bash
start: 0x123 size: 345 allocated: true
```
[INFO]	Parsing content/learning-paths/laptops-and-desktops/dynamic-memory-allocator//2_designing_a_dynamic_memory_allocator.md
[DEBUG]	{'image': ['ubuntu:latest'], 'weight': -1}
[DEBUG]	{'type': 'C', 'ncmd': 2, 0: '#define STORAGE_SIZE 4096', 1: 'static char storage[STORAGE_SIZE];'}
[DEBUG]	{'type': 'bash', 'ret_code': '0', 'ncmd': 1, 0: 'start: 0x123 size: 345 allocated: true'}

So you can see the second line being used as the command.

from arm-learning-paths.

DavidSpickett avatar DavidSpickett commented on July 2, 2024

And to be clear, if the amount of info comes off as pushy this isn't my intention. I just wanted to give as clear a picture as possible.

I'm also happy to contribute the fixes myself, but being new here, I don't know what direction would be appropriate.

from arm-learning-paths.

Related Issues (18)

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.