IntelliJ 在 MAC(苹果芯片)中崩溃且不允许操作

问题描述 投票:0回答:1

我刚开始在 Mac 中设置 IntelliJ 社区版。

我的 IntelliJ 在 MAC 中崩溃,日志文件中显示“操作不允许”消息。有什么建议吗?

重现步骤:

  1. 创建了一个项目
  2. 按命令 Shift A 启动操作对话框。开始输入一些内容。 崩溃

在日志文件中找到以下条目:

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)
macos intellij-idea
1个回答
0
投票

我在新的 M1 Air 上设置 PyCharm 时遇到了同样的问题。

我想我可以通过以下步骤解决这个问题。

  1. Mac 系统设置 > 隐私和安全 > 文件和文件夹
  2. 允许intelliJ访问错误日志显示不允许的目录。
  3. 如果这不起作用,我建议允许 intelliJ 获得完整的磁盘访问权限。

希望这对你有用:)

© www.soinside.com 2019 - 2024. All rights reserved.