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

keymap bug since last update? #239

Closed
NuclearCookie opened this issue Nov 24, 2015 · 7 comments
Closed

keymap bug since last update? #239

NuclearCookie opened this issue Nov 24, 2015 · 7 comments

Comments

@NuclearCookie
Copy link

Hi,

I have the following .atom-build.json file

{

  "cmd": "make",
  "name": "linux-debug",
  "args": [ "-j8" ],
  "sh": false,
  "cwd": "{PROJECT_PATH}/CODE/APP/LINUX/",
  "env": {
  },
  "errorMatch": "\n(?<file>[\\/0-9a-zA-Z\\._]+):(?<line>\\d+):(?<col>\\d+)",
  "keymap": "f7",
  "targets": {
      "linux": {
        "cmd": "emmake",
        "name": "emscripten-debug",
        "args": [ "make", "config=debugcanvas_emscripten", "-j8" ],
        "sh": false,
        "cwd": "{PROJECT_PATH}/CODE/APP/EMSCRIPTEN/",
        "env": {
        },
        "errorMatch": "\n(?<file>[\\/0-9a-zA-Z\\._]+):(?<line>\\d+):(?<col>\\d+)",
        "keymap": "f8"
      }
  }
}

Since the emscripten-debug task is the one I need the most, I mostly build with f8.
Since I updated the plugin, f8 didn't build my project anymore. It showed the output window, but nothing happened. If I went into the command browser and selected the correct build:trigger, everything worked as expected.

The keybinding didn't work until I pressed f7. Then a dialogue popped up asking me what target I wanted to build: linux-debug or linux.
From then on, I can use f8 every time.
Any idea?

Edit: Issue was not resolved after choosing target with f7. Build always triggers when starting it from the command browser.

@noseglid
Copy link
Owner

noseglid commented Dec 3, 2015

Could it be that f7 and f8 now are part of the default keymaps?

cmd-alt-v / ctrl-alt-v / f8 Toggles the build panel.
cmd-alt-t / ctrl-alt-t / f7 Displays the available build targets.

When I use the .atom-build.json you provided, I can see in the keymap resolver that the build registered keymaps for f8 and f7 are prioritized over the ones specified in .atom-build.json - maybe it shouldn't be. But is that the issue you're referring to?

@NuclearCookie
Copy link
Author

Oh yeah, that's exactly the behaviour i'm experiencing. Although my
.atom_build explicitly sets those keys.. any idea why they are not applied?
Seems to me that it should be overriden, no?
On Dec 3, 2015 7:48 PM, "Alexander Olsson" notifications@github.com wrote:

Could it be that f7 and f8 now are part of the default keymaps?

cmd-alt-v / ctrl-alt-v / f8 Toggles the build panel.
cmd-alt-t / ctrl-alt-t / f7 Displays the available build targets.


Reply to this email directly or view it on GitHub
#239 (comment)
.

@noseglid
Copy link
Owner

noseglid commented Dec 3, 2015

They are applied, only they have less specificity as the built-in ones. I think we can updated the customized keymaps to the same specificity, and they should take precedence. Let me get a PR ready and I'd love for you to try it out and see if it solves your problem.

@NuclearCookie
Copy link
Author

Thank you!
On Dec 3, 2015 9:02 PM, "Alexander Olsson" notifications@github.com wrote:

They are applied, only they have less specificity
https://atom.io/docs/latest/behind-atom-keymaps-in-depth#specificity-and-cascade-order
as the built-in ones. I think we can updated the customized keymaps to the
same specificity, and they should take precedence. Let me get a PR ready
and I'd love for you to try it out and see if it solves your problem.


Reply to this email directly or view it on GitHub
#239 (comment)
.

@noseglid
Copy link
Owner

noseglid commented Dec 3, 2015

Can you test PR #249 and see if it works for you?

@NuclearCookie
Copy link
Author

That works! Perfect :)

@noseglid
Copy link
Owner

noseglid commented Dec 4, 2015

Cool. I'll merge that! Thanks for the report and help testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants