orbitalquark / textadept

Textadept is a fast, minimalist, and remarkably extensible cross-platform text editor for programmers.
https://orbitalquark.github.io/textadept
MIT License
640 stars 38 forks source link

Run command doesnt work after compiling my help.cpp file on macOS #201

Closed amay5267 closed 2 years ago

amay5267 commented 2 years ago

[Message Buffer] 1 > cd /Users/usr/Desktop 2 > ./"help" 3 Failed to execute child process "./"help"" (No such file or directory) 4 > exit status: 256 5

however it should execute child process ./help

there are some unneeded quotation marks i think blocking actual execution.

i am not expert in lua so i cannot patch it myself

Can you please patch

textadept/modules/textadept/run.lua

at line 255 ?

and replace

cpp= './“%e”',

with something like

cpp=OSX './%e', without quotation marks

orbitalquark commented 2 years ago

Thanks for the report. Fixed via https://github.com/orbitalquark/textadept/commit/1798c6a842978a05396b39427fdda148bec08899

Use "./%e" instead of ./"%e".