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.

executorMapByFileExtension Not Working As Expected

See original GitHub issue

Hi. I have a .someExtension file that I want to associate with Python because of syntax highlighting. I have also set the following settings:

  "code-runner.executorMapByFileExtension": {
      ".someExtension": "bash \"emu ./$fileName\""
  },
    "files.associations": {
    "*.someExtension": "python"
  }

I get unexpected behavior, Code Runner runs py $fileName, because I associated .someExtension to Python in vsCode. However, executorMapByFileExtension should disregard the association and only take the file extension into account.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
formulahendrycommented, Aug 2, 2018

Seems that it should be null not undefined:

"code-runner.executorMapByFileExtension": {
      ".sage": "bash \"emu ./$fileName\"",
      ".py": "python"
  },
"code-runner.executorMap": {
        "python": null
    }

image

0reactions
NavyAdmiralcommented, Jul 12, 2018

@formulahendry did you take a look at this? i’m pretty sure something’s bugged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot change my python language from python 2 to ...
executorMap " and says End of file expected . I cannot save any changes ... Check this github.com/formulahendry/vscode-code-runner/issues/366.
Read more >
formulahendry/vscode-code-runner - Gitter
hi. i just installed the runner extension on vs code. but everytime i run the code, i get an error. say i run...
Read more >
Settings json error inside Visual Studio code - Python
json… Now, when i search in the setting I find JSON underextensions… but when I click the link for edit setting, the file...
Read more >
A trouble with VS Code
In json file, mouse hover tip: Quote: Incorrect type. Expected "object". Code does not execute. Message on trying to Run python file:.
Read more >
Lazy collection of iterables for concurrent.futures.Executor. ...
Not only does it consume less memory, it also makes items in iterable available for consumption as soon as they are created. Especially...
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