configuring the compile command string. #550
-
I've just discovered textadept and like what I see. I'm try to configure it for a bit of C development for microcontrollers. My compile command as used in Geany etc.. is: my build command is: and then I want to configure a run command like: However I have fallen at the first hurdle :) I attempted to configure the compile command in init.lua like this: The command appears when I select compile from the menu but when I hit ENTER to run it I get an error that cd failed to run no such file or directory. The output buffer looks like this, the paths are all good:
I know SFA about lua but am keen to learn .. Any suggestions on how to set this up more than welcome. OH... OS is Debian 12 Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Textadept's compile/run/build/test/project commands are not run directly in a shell like bash. Instead, they are treated as executables with arguments and invoked directly. For your first case, you'd either create a shell script and have Textadept invoke that, or you'd simply run For your second case, I'm unsure about your third use case. That trailing Hopefully this helps a bit. |
Beta Was this translation helpful? Give feedback.
Let's suppose you have a project at /home/me/projects/myproject. In order for Textadept to recognize it as a project, there needs to be a version control folder in the root directory of that project. You have a couple of options:
git init
orhg init
from the myproject directory.Since your Makefile is in /home/me/projects/myproject/build, you'd tell Textadept about it like this:
textadept.ru…