question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run files without extension (using code-runner.defaultLanguage)

See original GitHub issue

I’d like to run files without extensions, typically bash scripts using your great code-runner extension

Currently it works if a script has the .sh extension, not without (which is more usual for scripts)

Is this possible to implement?

it could respect default language setting for those files

"code-runner.defaultLanguage": "shellscript",

running ./foo or bash foo or sh foo work in the terminal, before you ask (the file has the right permissions)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
formulahendrycommented, Mar 19, 2018

Hi @caub , this issue has been fixed, please try the latest version.

0reactions
formulahendrycommented, Mar 19, 2018

Oh! This is a bug of the extension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to hide file with no extension that is generated after ...
3 Answers 3 · Press f1. · Enter settings.json and choose the second option which is Open Setting(JSON). · Then find the "code-runner.executorMap"...
Read more >
Code Runner - Visual Studio Marketplace
Extension for Visual Studio Code - Run C, C++, Java, JS, PHP, Python, Perl, ... View output in Output Window; Set default language...
Read more >
VS Code extension "Code Runner" does not include <math.h ...
To fix this issue, you can edit the Code-runner: Executor Map file, and add "-lm" in "c": "cd $dir && gcc $fileName -o...
Read more >
Download: Code Runner for Visual Studio Code - formulahendry
To implement this, I just need to create a temp file with the selected code, then call the corresponding interpreter to run the...
Read more >
Code Runner extension supports running 40 languages - Reddit
Run code file of current active Text Editor · Run code file through context menu of file explorer · Run selected code snippet...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found