Julia : How to copy an error message from Juno in Atom? - error-handling

Sorry for this very basic question but how is it possible to copy an error message from Juno in Atom using Julia. I tried to highlight the message but as soon as i hit CMD + c (on a Mac) the highlighting disappears and nothing is being copied

I normally paste the command to the Atom Julia console and copy the error message from the console. One advantage of this is that the console displays error message opposed to an Error object displayed by Atom.
However, on Windows this also works:
- hold left-mouse button to make the selection, do not release the mouse button
- press Ctr+C while still holding the mouse button

Related

SAP GUI scripting - Button press fails

I am using a macro in an Excel file that runs the SAP GUI. There is a step where, when I click a button in SAP there will be another window that pops up.
For that I have written a code like this:
session.findbyid("wnd[0]/XX/btnXX").press
session.findbyid("wnd[1]/XX/btnXXX").press
There is a button (btnXXX) in the window (wnd[1]). But when I execute this query, I am getting an error object not found for findbyid.
When I keep the break point and execute it, it is throwing error on 2nd line in the above code. I try to pick the activewindow.name and it shows wnd[0] still. Here the issue is wnd[1] is not getting opened.
Does somebody know why the 2nd "button press" doesn't work?
You should be able to replace all mouse clicks with keyboard strokes.
Replace:
session.findbyid("wnd[0]/XX/btnXX").press
With:
session.findById("wnd[0]").sendVKey(N)
Where N is the linked hot-key ID.
To get the exact command, use SAP script recording and only use the keyboard to transition between views and windows. The easiest way to determine how is to hover your mouse over the buttons you would normally click to learn the hot-key then record the hot-key.
Note 1) So far I have found that btn[XX] always maps to sendVKey(XX), but I can't be certain this is always the case.
Note 2) sendVKey always appears to be referenced off the window (wnd[Y]) even if a button is another layer down (/tbar, /usr, etc.).

How can I read errors and warnings in IntelliJ with a screen reader?

I am using IntelliJ Idea for developing scala and Java programs. I am also a screen reader user.
One of the most useful features that IDEs provide is code linting and displaying error and warnings in your code, along with descriptions. I understand if you are a sighted user, you can just hover your mouse over an erroneous line of code and you get a tooltip with the description.
I haven't been able to figure out how to access this description as a screen reader users. So far, to review errors/warnings I would just build the program and look at the command line output, however this is pretty inefficient compared to just hovering over line of code.
Could someone share a better way of reviewing errors/warnings in IntelliJ using a screen reader? Ideally how to access the error tooltip, or how to access a better UI for reviewing them instead of looking at raw command line output.
I'm not sure about warnings however errors can be accessed in two ways:
Firstly when the caret is moved into a line with error the error text is written into the status bar - the problem with this approach is that for JAB applications screen readers are generally unable to find it, so in case of NVDA object navigation has to be used.
The second way requires your caret to be exactly at the point with error - generally it would be set in the proper place if you've navigated to the line with F2. After that you need to press CTRL+f1 - focus moves to the unnamed pane and the error text is its first descendant so once again you need to employ object navigation. I haven't found any reasonable way to access error texts with JAWS sadly.
Importantly, make sure to turn on screen reader support:
settings (ctrl + alt + S) > appearance and behaviour > Appearance > Support screen readers (requires restart)
Then when your caret is on an error/warning, you can press ctrl + F1 and a dialogue will pop up with the description. Press escape to close it.
If you want to make sure the caret is on an error/warning, use F2 to jump to next error/warning.
As noted by lukaszgo1 in his answer, the description is also printed to status bar, but NVDA cant find it using its normal command, because JAB GUI applications are lacklustre in their implementation of accessibility, however if you want to access the status bar of IntelliJ to read the description you can use an NVDA addon which I developed, that adds a command for reading IntelliJ status bar and fixes list items not being labelled properly.
I actually forgot I asked this until I got an answer recently.
Thanks to lukaszgo1 for his answer.

Intellij - how to copy some text from tooltip messages to clipboard [duplicate]

When I'm writing code in intellij and make an errors, it highlists code with erros, when I put mouse over it, it displays detailed error message. The problem is I can't copy it. When i'm moving mouse over pop-up baloon message and start selecting the message, baloon disappears. In eclipse there is a feature 'focus' on F2 with allows you to focus it on pop-up so it becames a modal window and won't disappear when you move mouse away. is there such feature in intellij idea or is there any other way to copy error message?
EDIT: I just figured out that I need to:
very carefully move mouse down to baloon,
very carefully move mouse to the left side, but only to the left side of the text, not baloon
press left mouse button, then very carefully move mouse to the right side of text, not baloon
without releasing left mouse button press ctrl+c.
Come on! that's really annoying, is there a 'focus' feature feature like F2 in Eclipse?
EDIT2: another way of doing this:
carefully move mouse down to baloon message
hold left mouse button
without releasing left mouse button press ctrl and then really fast A then C
It'll make baloon message to go away, but if you're lucky enough you'll manage to select all text from baloon and copy it. With certain practice it's really faster then method #1.
Still no "normal" way to do this.
I found that if I compile class, I can get error messages, but they can be completely different and if my class doesn't compile, I won't get my error message at all.
UPDATE: It works via Alt+Click in the current IDE versions, but there are still several usability issues: it's not discoverable, doesn't work for all the pop-ups and may copy additional text/keyboard shortcut symbols. There is also a request to make it more straightforward by allowing to copy only selected text via Ctrl+C.
Original answer:
Please vote for this issue to get it fixed.
I can't select text from the error message tooltip at all on Mac and IntelliJ CE 2018, but someone in the linked bug ticket pointed out that Alt + Mouse Click copies the text to the clipboard (meaning you can then paste and get the text) and that worked for me.
The issue is now fixed.
I've tested it with Intellij IDEA 2017.1.4 and it's working just fine :
Holding CTRL key seemed to do the trick then I could select the description and copy.

RN react-native opens editor while running

For some unknown reason, the react-native start command, while running for a while, opens an editor with the following message:
Opening ../node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactChildReconciler.js with vim
Not an issue (it still works), but more of an annoyance and I was wondering why it was doing this and that maybe it's a features I'm missing out, like stack traces after an error.
The editor opens when you click a line in the stack trace on the "red screen". Pretty easy to unknowingly do if you're running an emulator and are using the mouse to bring focus to it. It appears this is intended behavior (https://github.com/facebook/react-native/issues/6103)
You can work around it by using a launch line like EDITOR=true react-native start, while it will still "open an editor" that instantly exits, it wont break your shell.

how can I copy error message from intellij idea?

When I'm writing code in intellij and make an errors, it highlists code with erros, when I put mouse over it, it displays detailed error message. The problem is I can't copy it. When i'm moving mouse over pop-up baloon message and start selecting the message, baloon disappears. In eclipse there is a feature 'focus' on F2 with allows you to focus it on pop-up so it becames a modal window and won't disappear when you move mouse away. is there such feature in intellij idea or is there any other way to copy error message?
EDIT: I just figured out that I need to:
very carefully move mouse down to baloon,
very carefully move mouse to the left side, but only to the left side of the text, not baloon
press left mouse button, then very carefully move mouse to the right side of text, not baloon
without releasing left mouse button press ctrl+c.
Come on! that's really annoying, is there a 'focus' feature feature like F2 in Eclipse?
EDIT2: another way of doing this:
carefully move mouse down to baloon message
hold left mouse button
without releasing left mouse button press ctrl and then really fast A then C
It'll make baloon message to go away, but if you're lucky enough you'll manage to select all text from baloon and copy it. With certain practice it's really faster then method #1.
Still no "normal" way to do this.
I found that if I compile class, I can get error messages, but they can be completely different and if my class doesn't compile, I won't get my error message at all.
UPDATE: It works via Alt+Click in the current IDE versions, but there are still several usability issues: it's not discoverable, doesn't work for all the pop-ups and may copy additional text/keyboard shortcut symbols. There is also a request to make it more straightforward by allowing to copy only selected text via Ctrl+C.
Original answer:
Please vote for this issue to get it fixed.
I can't select text from the error message tooltip at all on Mac and IntelliJ CE 2018, but someone in the linked bug ticket pointed out that Alt + Mouse Click copies the text to the clipboard (meaning you can then paste and get the text) and that worked for me.
The issue is now fixed.
I've tested it with Intellij IDEA 2017.1.4 and it's working just fine :
Holding CTRL key seemed to do the trick then I could select the description and copy.