Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow config to define filetypes #35

Open
al1-ce opened this issue May 20, 2024 · 1 comment
Open

Feature Request: Allow config to define filetypes #35

al1-ce opened this issue May 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@al1-ce
Copy link

al1-ce commented May 20, 2024

To allow running custom languages

Also possible cmd insertions (i.e ${TMP} in C's cmd?

Example:

opts = {
    file_types = {
        d = {
            cmd = "dub run --single",
            extensions = { "d" }
        },
        c = {
            cmd = "gcc ${TMP} -o ${TMP}_output; ./${TMP}_output",
            extensions = { "c", "h" }
        }
    }
}
@al1-ce
Copy link
Author

al1-ce commented May 20, 2024

I'm not really sure what's the error there though, which is why I'm making this issue...

quick-code-runner: command failed with error:     Starting Performing "debug" build using /usr/bin/dmd for x86_64.
    Building test ~master: building configuration [application]
Error: unrecognized file extension nil
Error /usr/bin/dmd failed with exit code 1.

@jellydn jellydn added the enhancement New feature or request label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants