PyCharm local history disabled.

已回答

Running 2021.1.2 Community Edition

Went to use local history, as have used it extensively in the past, to find its greyed out.

Have tried the invalidate caches, still not working

The attached idea.log suggests it is rebuilding local history, but still not working.

Upload id: 2021_06_19_VxsYn9niKZ51JsKz (file: idea.zip)

0

Invalidating caches will only clear the local history.

Is it still grayed out in the menu or does it say History is empty?

0

OK, it was just something someone suggested.

Both Local History options are greyed out. (Put Label is not disabled)

 

0

Willowdene1 could you please clarify when have you noticed such behavior?
Do I understand correctly that you've got an issue with Local history after an update?
Once files are edited - do you see "Show history" active or is it still grey out?

0

Hi, yes I did update recently.

I haven't kept a diary as such but yes this is probably the first time since updating that I have tried to use Local History.

Show History and Show History for Selection are both greyed out. 

Neither work after multiple edits and saves.

is it just me?

 

 

 

0

Just had a look at the log file for today's opening session, there's  a java.io.IOException

 

2021-06-22 13:16:08,998 [ 269741] DEBUG - BackendServerFileEditorManager - Opening host editor for C:/Users/willo/PycharmProjects/pythonProject/venv/scriptsmd/my_meds_md.py
2021-06-22 13:16:11,238 [ 271981] INFO - hon.packaging.PyPIPackageCache - Loaded 311457 packages from C:\Users\willo\AppData\Local\JetBrains\PyCharmCE2021.1\python_packages\pypi-cache.json
2021-06-22 13:16:16,837 [ 277580] WARN - jetbrains.python.sdk.PySdkUtil - The pipe has been ended
java.io.IOException: The pipe has been ended
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
at java.base/java.io.BufferedOutputStream.write(BufferedOutputStream.java:123)
at java.base/java.io.FilterOutputStream.write(FilterOutputStream.java:108)
at com.jetbrains.python.sdk.PySdkUtil.getProcessOutput(PySdkUtil.java:128)
at com.jetbrains.python.validation.Pep8ExternalAnnotator.doAnnotate(Pep8ExternalAnnotator.java:223)
at com.jetbrains.python.validation.Pep8ExternalAnnotator.doAnnotate(Pep8ExternalAnnotator.java:74)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(ExternalToolPass.java:204)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$0(ExternalToolPass.java:180)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.runChangeAware(ExternalToolPass.java:270)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$2(ExternalToolPass.java:180)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:688)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:634)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:64)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
at com.intellij.openapi.progress.util.BackgroundTaskUtil.runUnderDisposeAwareIndicator(BackgroundTaskUtil.java:254)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.run(ExternalToolPass.java:179)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:333)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:323)
at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:273)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:287)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:242)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:369)
at com.intellij.util.Alarm$Request.run(Alarm.java:355)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:220)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:216)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:27)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:195)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:184)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:829)
2021-06-22 13:24:41,580 [ 782323] INFO - j.ide.actions.RevealFileAction - Exit code 1
2021-06-22 13:24:47,667 [ 788410] INFO - rationStore.ComponentStoreImpl - Saving appDiffSettings took 45 ms
2021-06-22 13:24:47,795 [ 788538] INFO - rationStore.ComponentStoreImpl - Saving Project(name=pythonProject, containerState=COMPONENT_CREATED, componentStore=C:\Users\willo\PycharmProjects\pythonProject)RunManager took 24 ms

0

Willowdene1
Could you please share screenshots of an issue?
Could you please clarify on which files exactly you are not able to use Local history? 
Are those files are excluded from a project by any chance?


0

Ruslan, you've solved it.  (Are those files are excluded from a project by any chance?)

I feel such an idiot. I think I created a virtual environment outside of PyCharm to run Buildozer, then pulled my stuff back from git into that directory. Then when I updated Pycharm, started afresh and opened Pycharm in that virtual environment.

I have just created a new project in Pycharm, copied over some files and Local History now works as expected

 

Thank you very much for your help. Sorry to have wasted your time

1

请先登录再写评论。