2018a Copy Paste not working Live Scripts

조회 수: 7 (최근 30일)
Abhishek Varghese
Abhishek Varghese 2018년 4월 11일
편집: KENAN SAVAS 2023년 1월 14일
Hello, I receive this error message every time I press 'Ctrl+C' in a live script.
Apr 11, 2018 6:18:12 PM com.mathworks.connector.message_service.impl.MessageServiceJSONImpl handlePublishRequest
WARNING: Error in subscription handler
java.lang.IllegalArgumentException: C:\Users\Abhishek\AppData\Local\Temp\ConnectorClipboard2848936797537281347 does not exist
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1637)
at com.mathworks.services.clipboardservice.ConnectorClipboardService$4.handle(ConnectorClipboardService.java:319)
at com.mathworks.connector.message_service.impl.MessageServiceJSONImpl.handlePublishRequest(MessageServiceJSONImpl.java:29)
at com.mathworks.connector.message_service.impl.AbstractMessageService.handlePublishRequest(AbstractMessageService.java:58)
at com.mathworks.connector.message_service.impl.JniMessageServiceAdaptorImpl.doHandlePublish(JniMessageServiceAdaptorImpl.java:59)
at com.mathworks.connector.message_service.api.JniMessageServiceAdaptor.fromNative(JniMessageServiceAdaptor.java:21)
What do I do? How do I fix this?
  댓글 수: 3
Franklin
Franklin 2019년 4월 23일
Thank you. It was so anoying having to restart Matlab just so I can copy paste.
Abhijith Sathya
Abhijith Sathya 2020년 10월 30일
Thank you Flores... youre just amazing

댓글을 달려면 로그인하십시오.

채택된 답변

Adri van Nieuwkerk
Adri van Nieuwkerk 2018년 4월 13일
편집: Walter Roberson 2018년 5월 7일
Hi there Abhi,
I've had the exact same problem. The Official MathWorks Answer: The potential cause for this issue is related to the Windows SilentCleanup Task. This issue is explained in detail at the following Microsoft Support page:
It may be temporarily resolved by restarting MATLAB. If not try out the following steps to test a possible workaround for this issue:
  • Start a command prompt as an administrator.
  • Please disable the SilentCleanup by executing the following command in the command prompt window:
schtasks.exe /change /TN \Microsoft\Windows\DiskCleanup\SilentCleanup/Disable
  • You can always enable it again later with:
schtasks.exe /change /TN \Microsoft\Windows\DiskCleanup\SilentCleanup/Enable
The Windows Build 1709 introduced some new functionality, which removes all empty folders in the TEMP directory. This could be the cause of the copy and paste error.
  댓글 수: 2
Oleg Boiko
Oleg Boiko 2018년 4월 19일
편집: Oleg Boiko 2018년 4월 19일
Is there a solution when there is no admin rights? Admin rights might be a problem for corporate Matlab users...
Hai Dinh
Hai Dinh 2018년 11월 13일
Thank you very much. I have the same issue and it's fixed now.

댓글을 달려면 로그인하십시오.

추가 답변 (4개)

Ralph Gnauck
Ralph Gnauck 2018년 5월 7일
A possible workaround is using drag and drop, this still seems to work in the live editor.
Example:
Highlight the text in he live editor. Hold the Ctrl Key and Click and drag the highlighted text to where you want to paste it. Can be in same window or another window on the screen.
  댓글 수: 1
Kouichi C. Nakamura
Kouichi C. Nakamura 2018년 5월 11일
Cool. You can always drag and drop the text to Command Window and then you can copy it.

댓글을 달려면 로그인하십시오.


Elias Hasle
Elias Hasle 2018년 10월 5일
편집: Elias Hasle 2018년 10월 5일
I tried the double drag and drop solution for a while, but it becomes very cumbersome when editing formulas etc. I did not want to disable Windows functionality because of a silly Matlab bug. So I found another solution:
Try to copy something, then in the error message read which folder is missing. Make a new folder in Temp with that name, and put a dummy file in it, so that it does not get deleted. Now copying works for the current Matlab session. It even worked after a restart of Matlab with the same script, at least for the time being.
Files in Temp tend to be temporary, so this procedure probably has to be repeated now and then, maybe after reboot or after changing active working directory or something. But it is better than not having copy/paste. And frankly better than spending hours upgrading Matlab too (if there is even a fix in the newest version)...
  댓글 수: 1
Vignesh Kalidas
Vignesh Kalidas 2019년 4월 2일
This solution seems to work for me! Thanks!

댓글을 달려면 로그인하십시오.


Davide Cerra
Davide Cerra 2019년 6월 26일
Simply drag with your mouse

Kouichi C. Nakamura
Kouichi C. Nakamura 2018년 5월 11일
I'm also experiencing the same issue with exactly the same error message.
And it's related to a folder in Temp, so SilentCleanup Task's involvement makes sense!
>schtasks.exe /change /TN "\Microsoft\Windows\DiskCleanup\SilentCleanup" /Disable
ended up with an error:
'schtasks.exe' is not recognized as an internal or external command,
operable program or batch file.
  댓글 수: 1
KENAN SAVAS
KENAN SAVAS 2023년 1월 14일
편집: KENAN SAVAS 2023년 1월 14일
you can try this command in power shell, first of all open windows power shell ise, then copy-paste the command text to the editor, the use the run button...
and also to work this command, or disable the task of DiskCleanup\SilentCleanup another way could be followed. in windows, please open task scheduler tool, then at the left side, use the tree list, go to the item of library/microsoft/windows/DiskCleanup/SilentCleanup. the at the task of SilentCleanup, at the right side, you can use disable the task link...
i have done succesfully to diable the task, but i don't know it could be worked for my cronic copy-paste matlab editor problem... because after windows restarting, i'll check the problem...
my matlab version is 2021b, and the copy-paste action in editor works, but in the MATLAB command window, the copy-paste action doesn't work. many solutions in the forums should recommend drag the copied text to the area, ok this works and the best solution is this, but with powerfull tool MATLAB, not working with copy-paste action has been occurred many times, when i have investigated the issue, from past to now, many times with many MATLAB versions, this problem occurs, when you see the sorum pages, this problem has been occured in MATLAB version of 2009, 2018, 2021, 2022...
honorable important stuff at mathworks, please solve this issue, or add a wizard to solve the prolem how can we could try and apply steps in the main MATLAB window, please do this, not using copy-paste action is very disgusting situation...
thanks to be interested in the issue, and the support us MATLAB users from past to now... from 2009 to 2022, please solve this situation now...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by