Alt + Enter停止在IntelliJ中处理Dart文件 [英] Alt+Enter stopped working for Dart files in IntelliJ

查看:155
本文介绍了Alt + Enter停止在IntelliJ中处理Dart文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建Flutter应用程序时,ALT + Enter键盘快捷键非常方便,不仅可以弹出快速修复程序,还可以弹出一个菜单来包装/删除小部件.直到我运行flutter upgrade并更新了IntelliJ中的Dart和Flutter插件(版本2018.3.5),它都能正常工作.

When building Flutter apps the ALT + Enter keyboard shortcut is very convenient not only to bring up Quick Fixes but also to bring up a popup menu to wrap/remove Widgets. It was working fine until I ran flutter upgrade and updated the Dart and Flutter plugins in IntelliJ (version 2018.3.5).

我尝试弄乱键盘快捷键一个小时,禁用并重新启用Dart/Flutter插件,重新启动和使IntelliJ中的缓存无效,关闭所有其他应用程序并多次重新启动Windows 10.什么都行不通.我无法让Alt+Enter继续执行任何操作.在我更新插件和Flutter SDK之前,它一直运行良好,因此这些更新似乎使它失效了.

I have tried messing about with the keyboard shortcuts for an hour, disabling and re-enabling Dart/Flutter plugins, restarting and invalidating caches in IntelliJ, closing all other applications and rebooting Windows 10 numerous times. Nothing works. I can not get Alt+Enter to do anything anymore. It was working fine until I updated the plugins and the Flutter SDK, so it seems something in those updates broke it.

实际上,Alt+Enter似乎对任何事情都不起作用,并且建议灯泡"也未显示.例如,如果我输入

Actually, Alt+Enter doesn't seem to work for anything, and the "suggestion bulb" does not show up either. For example, if I type

String x  = 2;

2获得正常的红色下划线,但是没有灯泡出现,并且Al+Enter不执行任何操作.我Trippel检查了设置中是否选中了显示意图灯泡",并分配了正确的键盘快捷键(以确保我已将它们重置为默认值).

the 2 gets the normal red underline, but no bulb shows up and Al+Enter does nothing. I've trippel checked that the "show intention bulb" is checked in the settings and that the correct keyboard shortcuts are assigned (just to be sure I have reset them to Default).

最近有没有其他人经历过这种情况并找到了解决方法?我已经尝试了所有可以在StackOverflow上找到的建议,但是这些建议都无效,并且都没有专门针对Dart/Flutter意图/动作/快速修正弹出窗口.

Has anyone else experienced this lately and found a fix? I've tried all the suggestions I could find on StackOverflow, but none of them work and none of them specifically target the Dart/Flutter intention/action/quickfix popup.

编辑

这是重新启动后的IntelliJ日志.我从Dart SDK开始,它似乎破坏了Alt + Enter,然后切换到另一个可以使Alt + Enter正常工作的功能,但无法选择要在其上运行该应用程序的设备,然后再次切换回第一个(请参见日志末尾附近的注释):

This is the IntelliJ log after restarting. I started with the Dart SDK that seems to break Alt+Enter, then switched to the other one which makes Alt+Enter work but disables the possibility to select a device to run the app on, then switched back to the first one again (see comments near the end of the log):

// Startup with SDK C:\Users\MyUser\flutter\bin\cache\dart-sdk   2.2.0-edge.0a7dcf17eb5f2450480527d6ad1e201fb47f1e36
2019-03-04 10:10:01,523 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2019-03-04 10:10:01,539 [     16]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-183.5912.21, 26 Feb 2019 12:01) 
2019-03-04 10:10:01,539 [     16]   INFO -        #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64) 
2019-03-04 10:10:01,539 [     16]   INFO -        #com.intellij.idea.Main - JRE: 1.8.0_152-release-1343-b28 (JetBrains s.r.o) 
2019-03-04 10:10:01,539 [     16]   INFO -        #com.intellij.idea.Main - JVM: 25.152-b28 (OpenJDK 64-Bit Server VM) 
2019-03-04 10:10:01,539 [     16]   INFO -        #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.3\bin\idea64.exe.vmoptions -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IntelliJIdea2018.3 -XX:ErrorFile=C:\Users\MyUser\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\MyUser\java_error_in_idea.hprof 
2019-03-04 10:10:01,539 [     16]   INFO -        #com.intellij.idea.Main - ext: C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.3\jre64\lib\ext: [access-bridge-64.jar, cldrdata.jar, dnsns.jar, jaccess.jar, jfxrt.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunmscapi.jar, sunpkcs11.jar, zipfs.jar] 
2019-03-04 10:10:01,539 [     16]   INFO -        #com.intellij.idea.Main - charsets: JNU=Cp1252 file=Cp1252 
2019-03-04 10:10:01,570 [     47]   INFO -        #com.intellij.idea.Main - JNA library (64-bit) loaded in 31 ms 
2019-03-04 10:10:01,570 [     47]   INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational 
2019-03-04 10:10:01,648 [    125]   INFO -     #com.intellij.util.ui.JBUI - User scale factor: 1.0 
2019-03-04 10:10:02,460 [    937]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor javaee-specific.xml 
2019-03-04 10:10:02,460 [    937]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor java-specific.xml 
2019-03-04 10:10:02,915 [   1392]   INFO - .intellij.idea.IdeaApplication - CPU cores: 8; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@6865c311[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@21227af0 
2019-03-04 10:10:02,931 [   1408]   INFO -     #com.intellij.util.ui.JBUI - System scale factor: 1.0 (JRE-managed HiDPI) 
2019-03-04 10:10:03,151 [   1628]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor javaee-specific.xml 
2019-03-04 10:10:03,151 [   1628]   INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor java-specific.xml 
2019-03-04 10:10:03,508 [   1985]   INFO - llij.ide.plugins.PluginManager - 138 plugins initialized in 451 ms 
2019-03-04 10:10:03,508 [   1985]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), Android Support (10.3.1.2), AngularJS (183.5912.21), Ant Support (1.0), Application Servers View (0.2.0), AspectJ Support (1.2), Bytecode Viewer (0.1), CFML Support (3.53), CSS Support (183.5912.21), CVS Integration (11), Cloud Foundry integration (1.0), CloudBees integration (1.0), CoffeeScript (183.5912.21), Copyright (8.1), Coverage (183.5912.21), Cucumber for Groovy (183.5912.21), Cucumber for Java (183.5912.21), DSM Analysis (1.0.0), Database Tools and SQL (183.5912.21), Docker integration (183.5912.21), Eclipse Integration (3.0), EditorConfig (183.5912.21), Emma (183.5912.21), Flash/Flex Support (183.5912.21), FreeMarker support (1.0), GWT Support (1.0), Geronimo Integration (1.0), Gherkin (999.999), Git Integration (8.1), GitHub (183.5912.21), GlassFish Integration (1.0), Google App Engine (1.1.4), Gradle (183.5912.21), Grails (9.0), Groovy (9.0), Guice (8.0), HTML Tools (2.0), HTTP Client (183.5912.21), Haml (183.5912.21), Heroku integration (183.5912.21), Hibernate Support (1.0), I18n for Java (183.5912.21), IDE Settings Sync (183.5912.21), IDEA CORE (183.5912.21), IntelliJ Configuration Script (183.5912.21), IntelliLang (8.0), J2ME (1.0), JBoss Arquillian Support (1.0), JBoss Drools Support (1.0), JBoss Frameworks Base Support (1.0), JBoss Integration (1.0), JBoss Seam Pageflow Support (1.0), JBoss Seam Pages Support (1.0), JBoss Seam Support (1.0), JBoss jBPM (2.0.0), JSR45 Integration (1.0), JUnit (1.0), Java Bytecode Decompiler (183.5912.21), Java EE: Batch Applications (1.0), Java EE: Bean Validation Support (1.1), Java EE: Contexts and Dependency Injection (1.1), Java EE: EJB, JPA, Servlets (1.0), Java EE: JMS, JSON Processing, Concurrency, Transaction  (1.0), Java EE: Java Server Faces (2.2.X.), Java EE: RESTful Web Services (JAX-RS) (1.0), Java EE: Web Services (JAX-WS) (1.9), Java EE: WebSockets (1.0), Java Server Pages (JSP) Integration (1.0), Java Stream Debugger (183.5912.21), JavaFX (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Jetty Integration (1.0), Less support (183.5912.21), Markdown support (183.5912.21), Maven Integration (183.5912.21), Maven Integration Extension (183.5912.21), Mercurial Integration (10.0), OpenShift integration (1.0), Osmorc (1.4.12), Perforce Integration (2.0), Performance Testing (183.5912.21), Persistence Frameworks Support (1.0), Playframework Support (1.0), Plugin DevKit (1.0), Properties Support (183.5912.21), Reactor framework support (1.0), Refactor-X (2.01), Remote Hosts Access (183.5912.21), Resin Integration (8.1), SSH Remote Run (0.1), Sass support (183.5912.21), Settings Repository (183.5912.21), Smali Support (1.0), Spring AOP/@AspectJ (1.0), Spring Batch (1.0), Spring Boot (1.0), Spring Data (1.0), Spring Integration Patterns (1.0), Spring MVC (1.0), Spring OSGi (1.0), Spring Security (1.0), Spring Support (1.0), Spring Web Flow (1.0), Spring Web Services (1.0), Spring WebSocket (1.0), Spy-js (183.5912.21), Struts 1.x (2.0), Struts 2 (1.0), Stylus support (999.999), Subversion Integration (1.1), TFS (999.999), Tapestry support (1.0), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), Thymeleaf (1.0), Time Tracking (1.0), Tomcat and TomEE Integration (1.0), UI Designer (183.5912.21), UML Support (1.0), Vaadin Support (1.0), Velocity support (1.0), W3C Validators (2.0), WSL Support Framework (183.5912.21), WebLogic Integration (1.0), WebSphere Integration (1.0), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (183.5912.21), ZKM-Unscramble (1.0), dmServer Support (0.9.5), tslint (183.5912.21) 
2019-03-04 10:10:03,508 [   1985]   INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Dart (183.5912.23), Flutter (33.3.2), Kotlin (1.3.21-release-IJ2018.3-1), PHP (183.5429.47) 
2019-03-04 10:10:04,817 [   3294]   INFO - cloudConfig.CloudConfigManager - === Start: JBA_NOT_CONNECTED === 
2019-03-04 10:10:04,892 [   3369]   INFO - pi.util.registry.RegistryState - Registry values changed by user: 
2019-03-04 10:10:04,892 [   3369]   INFO - pi.util.registry.RegistryState -   git.explicit.commit.renames.prohibit.multiple.calls = false 
2019-03-04 10:10:04,905 [   3382]   INFO - pi.util.registry.RegistryState - Experimental features enabled for user: inline.browse.button 
2019-03-04 10:10:04,940 [   3417]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705 
2019-03-04 10:10:04,997 [   3474]   INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.3\bin\fsnotifier64.exe 
2019-03-04 10:10:05,007 [   3484]   INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational. 
2019-03-04 10:10:05,287 [   3764]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=0.0; restored: fontSize=12, fontScale=1.0 
2019-03-04 10:10:05,708 [   4185]   INFO - til.net.ssl.CertificateManager - Default SSL context initialized 
2019-03-04 10:10:05,724 [   4201]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 
2019-03-04 10:10:05,775 [   4252]   INFO - gs.impl.UpdateCheckerComponent - channel: release 
2019-03-04 10:10:05,901 [   4378]   INFO - j.ide.ui.OptionsTopHitProvider - 209 ms spent to cache options in application 
2019-03-04 10:10:05,901 [   4378]   INFO - .openapi.application.Preloader - com.intellij.ide.ui.OptionsTopHitProvider$Activity took 207 ms 
2019-03-04 10:10:05,935 [   4412]   INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:122, number of extensions:100 
2019-03-04 10:10:05,942 [   4419]   INFO - il.indexing.FileBasedIndexImpl - Index scheduled:6 
2019-03-04 10:10:05,975 [   4452]   INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:24, number of extensions:135 
2019-03-04 10:10:05,975 [   4452]   INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0 
2019-03-04 10:10:06,349 [   4826]   INFO - ndex.PrebuiltIndexProviderBase - Using prebuilt id-index from C:\Users\MyUser\.IntelliJIdea2018.3\system\index\.persistent\prebuilt\PHP\id-index.input 
2019-03-04 10:10:06,696 [   5173]   INFO - plication.impl.ApplicationImpl - 94 application components initialized in 3639ms 
2019-03-04 10:10:06,697 [   5174]   INFO - .intellij.idea.IdeaApplication - App initialization took 5993 ms 
2019-03-04 10:10:06,963 [   5440]   INFO - m.intellij.ui.mac.touchbar.NST - OS doesn't support touchbar, skip nst loading 
2019-03-04 10:10:07,455 [   5932]   INFO - pl$FileIndexDataInitialization - Initialization done:1513 
2019-03-04 10:10:07,628 [   6105]   INFO - exImpl$StubIndexInitialization - Initialization done:171 
2019-03-04 10:10:07,796 [   6273]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
2019-03-04 10:10:07,797 [   6274]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=16, fontScale=1.0; restored: fontSize=16, fontScale=1.0 
2019-03-04 10:10:08,017 [   6494]   INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>] 
2019-03-04 10:10:08,017 [   6494]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [D:/FAPPS/ResursAppFlutter] 
2019-03-04 10:10:08,586 [   7063]   INFO - ellij.project.impl.ProjectImpl - 200 project components initialized in 1429 ms 
2019-03-04 10:10:08,664 [   7141]   INFO - .openapi.application.Preloader - com.intellij.openapi.actionSystem.impl.ActionPreloader took 2766 ms 
2019-03-04 10:10:08,763 [   7240]   INFO - le.impl.ModuleManagerComponent - 2 module(s) loaded in 177 ms 
2019-03-04 10:10:08,893 [   7370]   INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found 
2019-03-04 10:10:09,023 [   7500]   INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings. 
2019-03-04 10:10:09,117 [   7594]   INFO - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA. 
2019-03-04 10:10:09,743 [   8220]   INFO -              PerformancePlugin - Performance Plugin is in silent mode 
2019-03-04 10:10:09,787 [   8264]   INFO - CompilerWorkspaceConfiguration - Available processors: 8 
2019-03-04 10:10:09,946 [   8423]   INFO - ellij.project.impl.ProjectImpl - 24 project components initialized in 16 ms 
2019-03-04 10:10:09,946 [   8423]   INFO - .openapi.application.Preloader - com.intellij.ide.ui.search.SearchableOptionPreloader took 1289 ms 
2019-03-04 10:10:10,287 [   8764]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/jps-launcher.jar;C:/Program Files/Android/Android Studio 3.3/jre/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/optimizedFileManager.jar 
2019-03-04 10:10:10,334 [   8811]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
2019-03-04 10:10:10,334 [   8811]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation 
2019-03-04 10:10:10,334 [   8811]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 
2019-03-04 10:10:10,586 [   9063]   INFO - .openapi.application.Preloader - com.intellij.codeInsight.completion.CompletionPreloader took 632 ms 
2019-03-04 10:10:10,602 [   9079]   INFO - .openapi.application.Preloader - com.intellij.ide.actions.GotoClassPresentationUpdater took 10 ms 
2019-03-04 10:10:10,945 [   9422]   INFO - llij.database.util.SqlDialects - SQL dialects initialized in 78 ms 
2019-03-04 10:10:11,678 [  10155]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 924ms; general responsiveness: ok; EDT responsiveness: ok 
2019-03-04 10:10:12,569 [  11046]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/jps-launcher.jar;C:/Program Files/Android/Android Studio 3.3/jre/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/optimizedFileManager.jar 
2019-03-04 10:10:12,616 [  11093]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
2019-03-04 10:10:12,616 [  11093]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation 
2019-03-04 10:10:12,616 [  11093]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 
2019-03-04 10:10:14,417 [  12894]   INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 3550ms under project opening modal progress 
2019-03-04 10:10:14,502 [  12979]   INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 9 millis 
2019-03-04 10:10:15,022 [  13499]   INFO - tartup.impl.StartupManagerImpl - DartDumbAwareStartupActivity run in 333ms under project opening modal progress 
2019-03-04 10:10:15,033 [  13510]   INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 4353ms; general responsiveness: ok; EDT responsiveness: 3/5 sluggish 
2019-03-04 10:10:15,099 [  13576]   INFO - cloudConfig.CloudConfigManager - === Start.updateInitStatus === 
2019-03-04 10:10:15,103 [  13580]   INFO - cloudConfig.CloudConfigManager - === StatusBar.update create === 
2019-03-04 10:10:15,104 [  13581]   INFO - cloudConfig.CloudConfigManager - === calculateInitStatus === 
2019-03-04 10:10:15,471 [  13948]   INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files === 
2019-03-04 10:10:15,486 [  13963]   INFO - j.ide.ui.OptionsTopHitProvider - 270 ms spent on EDT to cache options in application 
2019-03-04 10:10:15,843 [  14320]   INFO - cloudConfig.CloudConfigManager - === calculateInitStatus.value: JBA_NOT_CONNECTED === 
2019-03-04 10:10:15,848 [  14325]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 4170ms; general responsiveness: ok; EDT responsiveness: 3/4 sluggish 
2019-03-04 10:10:15,873 [  14350]   INFO - Json.PackageJsonUpdateNotifier - processPackageJsonFiles [] 
2019-03-04 10:10:16,746 [  15223]   INFO - tartup.impl.StartupManagerImpl - D:/FAPPS/ResursAppFlutter/.idea case-sensitivity: expected=false actual=false 
2019-03-04 10:10:16,767 [  15244]   INFO -  #git4idea.commands.GitHandler - [.] git version 
2019-03-04 10:10:16,864 [  15341]   INFO -  #git4idea.commands.GitHandler - git version 2.20.1.windows.1 
2019-03-04 10:10:16,892 [  15369]   INFO - ea.config.GitExecutableManager - Git version for C:\Program Files\Git\cmd\git.exe : 2.20.1 
2019-03-04 10:10:16,951 [  15428]   INFO - cloudConfig.CloudConfigManager - === End.updateInitStatus === 
2019-03-04 10:10:16,987 [  15464]   INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #1: C:/Users/MyUser/flutter/bin/flutter.bat daemon 
2019-03-04 10:10:17,202 [  15679]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [D:/FAPPS/ResursAppFlutter] 
2019-03-04 10:10:17,240 [  15717]   INFO - j.ide.ui.OptionsTopHitProvider - 220 ms spent to cache options in project 
2019-03-04 10:10:17,240 [  15717]   INFO - tartup.impl.StartupManagerImpl - Some post-startup activities freeze UI for noticeable time. Please consider making them DumbAware to do them in background under modal progress, or just making them faster to speed up project opening. 
2019-03-04 10:10:17,240 [  15717]   INFO - tartup.impl.StartupManagerImpl - Activity run in 220ms on UI thread 
2019-03-04 10:10:17,261 [  15738]   WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider 
2019-03-04 10:10:17,339 [  15816]   INFO - cloudConfig.CloudConfigManager - === StatusBar.start another widget: com.intellij.cloudConfig.StatusBarInfoManager$InfoComponent@2604d2f0 === 
2019-03-04 10:10:17,455 [  15932]   INFO - #io.flutter.sdk.FlutterCommand - C:\Users\MyUser\flutter\bin\flutter.bat [--no-color, config, --machine] 
2019-03-04 10:10:17,460 [  15937]   INFO -     #io.flutter.sdk.FlutterSdk - Calling config --machine 
2019-03-04 10:10:19,028 [  17505]   INFO -     #io.flutter.sdk.FlutterSdk - flutter config --machine: 1568ms 
2019-03-04 10:10:19,105 [  17582]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 12018 ms 
2019-03-04 10:10:19,273 [  17750]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2019-03-04 10:10:19,579 [  18056]   INFO - j.ide.ui.OptionsTopHitProvider - 135 ms spent on EDT to cache options in project 
2019-03-04 10:10:19,901 [  18378]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 7ms; general responsiveness: ok; EDT responsiveness: ok 
2019-03-04 10:10:19,965 [  18442]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 64ms; general responsiveness: ok; EDT responsiveness: ok 
2019-03-04 10:10:20,618 [  19095]   INFO - tartup.impl.StartupManagerImpl - CreateKotlinSdkActivity run in 444ms on UI thread 
2019-03-04 10:10:43,936 [  42413]   WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting 

// Switched to C:\Program Files\Dart\dart-sdk    2.1.0
2019-03-04 10:11:04,852 [  63329]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2019-03-04 10:11:04,950 [  63427]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 51ms; general responsiveness: ok; EDT responsiveness: ok 
2019-03-04 10:11:05,027 [  63504]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 77ms; general responsiveness: ok; EDT responsiveness: ok 
2019-03-04 10:11:05,069 [  63546]   INFO - lutter.run.daemon.DeviceDaemon - shutting down Flutter device daemon #1: C:/Users/MyUser/flutter/bin/flutter.bat daemon 
2019-03-04 10:11:06,653 [  65130]   WARN - com.intellij.util.xmlb.Binding - no accessors for class io.flutter.sdk.FlutterPluginLibraryProperties 
2019-03-04 10:11:31,565 [  90042]   WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting 

// Switched back to C:\Users\MyUser\flutter\bin\cache\dart-sdk   2.2.0-edge.0a7dcf17eb5f2450480527d6ad1e201fb47f1e36
2019-03-04 10:12:04,384 [ 122861]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2019-03-04 10:12:04,560 [ 123037]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 42ms; general responsiveness: ok; EDT responsiveness: ok 
2019-03-04 10:12:04,612 [ 123089]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 52ms; general responsiveness: ok; EDT responsiveness: ok 
2019-03-04 10:12:04,820 [ 123297]   INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #2: C:/Users/MyUser/flutter/bin/flutter.bat daemon 
2019-03-04 10:12:04,948 [ 123425]   INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #3: C:/Users/MyUser/flutter/bin/flutter.bat daemon 
2019-03-04 10:12:16,621 [ 135098]   INFO - ide.actions.ShowFilePathAction - 
Exit code 1 

推荐答案

当我导入另一个Flutter项目时,我注意到Alt + Enter在该项目中运行良好,但在原始项目中却没有.我尝试删除所有与IntelliJ相关的文件(特别是*.iml.idea)并重新创建原始项目-但Alt + Enter仍然无法正常工作.

When I imported another Flutter project I noticed that Alt+Enter was working fine in that project, but still not in the original project. I tried deleting all IntelliJ-related files (*.iml and .idea specifically) and recreating the original project - but Alt+Enter still didn't work.

那是当我开始更仔细地查看lib源文件夹中的文件时,我发现了一个以前从未真正注意到的可疑文件analysis_options.yaml.它包含

That's when I started looking more carefully into the files in the lib source folder, and I found a suspicious file called analysis_options.yaml that I hadn't really noticed before. It contains

analyzer:
    language:
        enableSuperMixins: true

我删除了它(以及与IntelliJ相关的*.iml文件和.idea文件夹)并重新创建了项目-最终Alt + Enter再次正常工作!

I deleted it (and the IntelliJ-related *.iml files and the .idea folder) and recreated the project - and finally Alt+Enter is working normally again!

analysis_options.yaml文件似乎是很久以前的一位同事添加的,所以我仍然不确定为什么直到进行了几个月的项目后才出现此问题.

The analysis_options.yaml file seems to have been added by a colleague a long time ago, so I'm still not sure why this problem didn't appear until after working on the project for a few months.

这篇关于Alt + Enter停止在IntelliJ中处理Dart文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆