atom-community / atom-community/atom-script

Cmd + I needs to pressed twice to execute different selections of code

Open
#936 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm a bit of a noob here, so I apologize if this seems like a simple issue.

I am on Mac OS X running Atom 1.7.3. I have installed the script (3.7.1) package.

I've noticed something weird when I try to run different selections of code (I'm using Python and I haven't tested this with other Grammars). Upon highlighting a selection of code, running the script from the Command Palette works fine, and then changing the selection to another one and running that selection from the Command Palette works fine as well.

However, this breaks down when I try using the shortcut cmd+I. In this case, every time I change the selection I need to press cmd+I **twice** before the code executes (the first time does not seem to be doing anything - no output is displayed). If I use cmd+I on the same selection of code multiple times that works fine. It only needs to be pressed twice when I change the selection of code that I want to run.

Does anyone know why this might be happening and if it can be fixed?

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.