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
When run rustic-cargo-build/run, if main.rs exist syntax error, cursor always skip to beginning of buffer. #172
Comments
Sorry, i found i can't reproduce this issue today, let me close it first, and enable if i can reproduce again. Thank you. |
I reproduce it again. for reproduce reason, i upload my https://raw.githubusercontent.com/zw963/zw963.github.io/master/files/main.rs When my cursor is on line 36, then run thank you. |
My cursor doesn't jump into the compile window at all, but that might be because of my setup. A question though - the code you posted does not compile, does working code or non-working code change the behavior? |
@samhedin , Yes, you are right, this issue only happen on some syntax error happen on main.rs,
Yes, if not jump into the compile window, the cursor should jump to beginning of buffer immediately. |
Sorry I can't reproduce this. I place my cursor on line 36 in your code, run rustic-cargo-run, switch to compilation buffer and quit the compilation buffer. I don't notice anything happening. |
@brotzeit , can you please try use following three 3 config to reproduce? update lsp-mode, lsp-ui, rustic-mode, company-mode to use newest master.Use only following config + emacs 27.1, i can always reproduce this issue.rustic: http://dpaste.com/GR37X6948 BTW: in fact, cursor never will be skip to compilation buffer if not config to use |
Any idea? i just want to know, if i describe my issue clearly in my previous comment. thank you. |
I sat down to take another look at this, but the pastes are gone. Could you re-upload them? :) |
Thank you. @samhedin main.rs (You can see a syntax error on line 39:26, this is the prerequisite which cause this issue.) https://raw.githubusercontent.com/zw963/zw963.github.io/master/files/main.rs rustic config: lsp-mode config: company config (maybe not related, but anyway, provided it) |
@samhedin , any idea? |
Will try tomorrow! |
On a fresh emacs install with only lsp-mode and rustic installed, with this in init.el (the configs you sent for lsp-mode and rustic) https://pastebin.com/raw/gjVHQupE I get almost the same error as you are talking about. Running |
Thank you for reproduce, @brotzeit , if you have time, please try it too, thank you. |
Having same issue. On calling |
Is this also the case for |
I tested just now, it don't work too, but, |
@brotzeit - |
@brotzeit , i tested, Thanks. |
Hi, @brotzeit , i switched to use rust-mode + lsp, all features works quite well for now. This issue can't be reproduce when use rust-mode instead of rustic-mode, so i will keep this issue open, if you done this, i will very happy for test it. Thank you. |
@zw963, I ultimately turned off |
I think i never enable this for my config since this issue was created, so, i don't think so. |
@zw963 ok I was finally able to reproduce this issue(no idea why it didn't work before). It seems the issue is Sorry that it took so long. Wasn't that hard to find out. |
I confirm today, it works for me now. thank you very much! |
Following is reproduce:
Current cursor in rs file on line 46.
M-x run
rustic-cargo-build
, then cursor switch to new open compilation buffer window.M-x run
quit-window
my cursor in rs file on line 1.
What i expected
When run
quit-window
, cursor should go back to original position, as it did forrustic-recompile
.thank you.
The text was updated successfully, but these errors were encountered: