我刚开始在 Mac 中设置 IntelliJ 社区版。
我的 IntelliJ 在 MAC 中崩溃,日志文件中显示“操作不允许”消息。有什么建议吗?
重现步骤:
在日志文件中找到以下条目:
023-12-21 12:07:59,693 [ 35152] WARN - #c.i.o.v.i.l.LocalFileSystemBase - /User/<user>/Library/Application Support/com.apple.LaunchServicesTemplateApp.dv: Operation not permitted
java.nio.file.FileSystemException: /Users/<user>/Library/Application Support/com.apple.LaunchServicesTemplateApp.dv: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148)
at java.base/java.nio.file.Files.readAttributes(Files.java:1851)
at com.intellij.openapi.util.io.NioFiles.readAttributes(NioFiles.java:187)
at com.intellij.util.io.PlatformNioHelper.visitDirectory(PlatformNioHelper.java:54)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.listWithAttributes(LocalFileSystemImpl.java:307)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.lambda$new$0(LocalFileSystemImpl.java:49)
at com.intellij.openapi.vfs.DiskQueryRelay.accessDiskWithCheckCanceled(DiskQueryRelay.java:45)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.listWithCaching(LocalFileSystemImpl.java:274)
at com.intellij.openapi.vfs.newvfs.RefreshWorker.partialDirRefresh(RefreshWorker.java:322)
at com.intellij.openapi.vfs.newvfs.RefreshWorker.processQueue(RefreshWorker.java:186)
at com.intellij.openapi.vfs.newvfs.RefreshWorker.lambda$parallelScan$0(RefreshWorker.java:122)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
我在新的 M1 Air 上设置 PyCharm 时遇到了同样的问题。
我想我可以通过以下步骤解决这个问题。
希望这对你有用:)