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

Multi-line paste crashes Dax Studio/pastes only on one line #204

Closed
eligoldner opened this issue Jul 24, 2019 · 4 comments
Closed

Multi-line paste crashes Dax Studio/pastes only on one line #204

eligoldner opened this issue Jul 24, 2019 · 4 comments

Comments

@eligoldner
Copy link

Dax Studio seems to support multi-line select/copy/paste, though I've found 2 instances of unexpected behavior.

  1. If I try to select/copy/cut on multiple lines (using ALT + SHIFT to select multiple lines) that works fine; however if I decide to paste on multiple lines on empty text, it will paste just on the last line, yet leave the cursor on multiple lines.
  2. If I try to do multi-line paste where I'm replacing text, Dax Studio will crash.

I'm using version 2.9.2

@dgosbell
Copy link
Contributor

I can't reproduce either of these issues using the 2.9.2 release, although I'm not entirely sure I understand what you are doing in item 1. I can copy paste multiple lines and paste over the top of existing text without crashing.
DaxStudioCopyPaste

Did you get the option to submit a crash report? As have not seen any crash reports submitted in the last few weeks.

Maybe it's something specific about the text you are working with. Are you able to upload an example .dax file that exhibits these issues and explain what to select in that file to reproduce this issue? Or maybe explain what you are doing differently to the operations in the image above.

@eligoldner
Copy link
Author

I can reproduce it at will, though there is something which you are doing differently, and that is why you're not reproducing the error.
Please try to follow these instructions so that you can reproduce it on your own; if you're unable to do so, I'll get myself a recording/GIF of the issue happening. I've also attached the log for today so that you can see what went awry.

You're showing me how you select multiple lines with your mouse followed by copy/paste, though I was referring to multi-line copy/paste, which some refer to as mutli-cursor. It is a common editing exercise used in many IDE's to be able to type on multiple lines simultaneously (this part works correctly in DAX Studio). In order for you to reproduce the error, you'll need to edit the text using just your keyboard.
When you hold down ALT + SHIFT and press the up/down keys you'll see your cursor extend over the line(s) which you have selected and you'll be able to type on all of the selected lines simultaneously. Using this mode, pasting text causes trouble, where simply pasting exhibits unexpected behavior (pasting just on the last line), whereas pasting over text, i.e replacing text, will crash the application. I didn't submit a crash report as I wasn't offered the opportunity to do so post-crash.

DaxStudio-20190725.log

@dgosbell
Copy link
Contributor

Ok, thanks for the update. Using the keyboard was the trick. I can now reproduce these issues so I'll see if I can find the root cause and figure out a fix.

@eligoldner
Copy link
Author

You're very welcome.
Thanks for jumping on this one.

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