Okay, so I decided to experiment with build tasks and that sort of thing even though I am able to type "make" into the terminal to make my CE C code. So, I clicked terminal->configure default build task in VS Code, which opened a tasks.json file. I edited the contents to this:

Code:

{
{
   // See https://go.microsoft.com/fwlink/?LinkId=733558
   // for the documentation about the tasks.json format
   "version": "2.0.0",
   "tasks": [
      {
         "label": "build_CE",
         "type": "shell",
         "options": {
            "cwd": "/Users/me/CEdev/projects/smart_notes_ce/smart_notes_ce"
         },
         "command": "export CEDEV=/Users/me/CEdev && make gfx && make",
         "group": {
            "kind": "build",
            "isDefault": true
         },
         "problemMatcher": []
      }
   ]
}

However, that generated this error:

Code:

> Executing task in folder smart_notes_ce: export CEDEV=/Users/me/CEdev && make gfx && make <

/bin/sh: convimg: command not found
make: *** [gfx] Error 127
The terminal process "/bin/zsh '-c', 'export CEDEV=/Users/me/CEdev && make gfx && make'" failed to launch (exit code: 2).

Terminal will be reused by tasks, press any key to close it.

Why is that, and how can I change it to work, or is that not possible? I am just experimenting, this isn't anything time-pressing or important! Thank you in advance! Very Happy
Edit: I figured out (with a ton of help) what I needed, and even how to create a launch.json that automatically sends the newly build program to CEmu and runs it immediately!
Quote:
makefile:15: *** CEDEV environment path variable is not set. Stop.



Seems pretty self explanatory to me. Set the environment variable CEDEV to point to the CEdev installation directory.
launch.json:

Code:

{
   "configurations": [
      {
         "type": "cppdbg",
         "request": "launch",
         "name": "Execute Program",
         "program": "/Users/me/Desktop/my_folder/TI_84_Plus_CE/Apps/CEmu.app/Contents/MacOS/CEmu",
         "cwd": "${workspaceFolder}",
         "args": [
            "${workspaceFolder}/bin/NOTES.8xp",
            "-s /Users/me/Desktop/SmartNotesCE/smart_notes_ce/bin/NOTES.8xp",
            "--launch",
            "NOTES",
            "--no-reset"
         ],
         "MIMode": "lldb"
      }
   ]
}


Tasks.json:

Code:

{
   // See https://go.microsoft.com/fwlink/?LinkId=733558
   // for the documentation about the tasks.json format
   "version": "2.0.0",
   "tasks": [
      {
         "label": "build_CE",
         "type": "shell",
         "options": {
            "cwd": "/Users/me/CEdev/projects/smart_notes_ce/smart_notes_ce"
         },
         "command": "export CEDEV=/Users/me/CEdev && export PATH=$CEDEV/bin:$PATH && make",
         "group": {
            "kind": "build",
            "isDefault": true
         },
         "problemMatcher": []
      }
   ]
   
}


keybinding code to automatically make the project that I put together:

Code:

{
      "key": "cmd+m",
      "command": "workbench.action.tasks.runTask",
      "args": "build_CE"
},

#note, the keybinding code works with build_CE, the label for my task.json

Thank you very much to everybody who helped me!
Very Happy
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement