This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 221246 - Problem when using external autocomplete programs like Textexpander
Summary: Problem when using external autocomplete programs like Textexpander
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 7.3
Hardware: Macintosh (x86) Mac OS X
: P4 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 227586 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-01 12:14 UTC by larsomat
Modified: 2016-07-07 07:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description larsomat 2012-11-01 12:14:27 UTC
I have a problem using Textexpander. It always pastes the current clipboard instead of the snippet.

This seems to be a Java related problem, but it is solvable.

PHPStorm had the sam problem, look here:
http://youtrack.jetbrains.com/issue/IDEA-69480

Inside the discussion is also a message from the Textexpander team, which might bring you on the right way:

"I presume PyCharm is a Java app. If so, then it's incorrectly assuming the clipboard can be copied at the time of app activation and need not be updated at the time of paste. This is not a correct assumption, and you should let LivePerson know that. There are Java apps such as JEdit and NeoOffice which handle the clipboard properly. TextExpander works well with such apps."

I would love to see this resolved, as TextExpander is my main productivity tool and it'd be great if I could use it inside netbeans.

regards
Comment 1 larsomat 2012-11-01 14:22:25 UTC
I wrote a mail to Textexpander Support, as well, this this is what I got as answer:

"Hi Lars,

I'm afraid the issue stems from how Netbeans (and a great many other Java apps) handles the clipboard. It assumes that the content of the clipboard cannot change between the time the app is activated and the time it is deactivated (i.e. that you switch to another application). I'm not sure of the gory details, but I know that jEdit does not make this faulty assumption and works perfectly well with TextExpander. If you have a means to report bugs to the Netbeans developers, I'd urge you to do so. Such reports from paying customers tend to be taken much more seriously than from fellow developers, perhaps because you're the ones who pay the mortgage of the app developers, so to speak."

Of course, the money I didn't pay for free software is no motivation here... ;-)
Comment 2 Milutin Kristofic 2012-11-01 14:55:23 UTC
Moving to window system.
Comment 3 Stanislav Aubrecht 2012-11-01 15:12:58 UTC
Please describe what the problem actually is and reopen, thanks.
Comment 4 larsomat 2012-11-01 15:22:16 UTC
Textexpander (http://smilesoftware.com/TextExpander/index.html) uses the clipboard to paste snippets from outside the application into the editor.

As far as I understand, it caches the value of original clipboard temporarily, replaces the content with the snippet to paste, pastes it and then restores the original content of the clipboard.

In netbeans this doesn't work, because the "paste"-action in netbeans doesn't check, if the content of the clipboard has been changed externally. Instead netbeans just pastes the content of the clipboard that has been generated by netbeans itself.
Comment 5 Stanislav Aubrecht 2012-11-05 10:59:33 UTC
Reassigning to editor team for evaluation.
Comment 6 larsomat 2012-11-08 09:43:34 UTC
I just tested it with Typinator (http://www.ergonis.com/products/typinator/).

Same problem... :-/
Comment 7 Antonin Nebuzelsky 2013-04-02 14:19:41 UTC
*** Bug 227586 has been marked as a duplicate of this bug. ***
Comment 8 alcorado 2013-04-02 17:27:03 UTC
same Problem with "Type It for me" http://www.ettoresoftware.com/products/typeit4me/
Comment 9 Martin Balin 2016-07-07 07:31:48 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss