Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
897 stars 90 forks source link

Editing run config crashes IntelliJ #1480

Closed Stainzl closed 4 years ago

Stainzl commented 4 years ago

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ 2020.1.2

Operating System

Windows 10

TeXiFy IDEA version

0.6.10

What I did (steps to reproduce)

Expected behavior

Add new run config

Actual behavior

IntelliJ crashes completly and has to be stopped with task manager

Edit: changed steps to reproduce

PHPirates commented 4 years ago

I cannot reproduce this, with the following steps:

Stainzl commented 4 years ago

Okay, I noticed you're right... This is really strange. I tried in a new project, in there it is working fine.

If I use an older project with an existing run config I see this screen: Invalid run config screen

Stainzl commented 4 years ago

Okay, I tried a little bit and I get this screen also when I do these steps:

PHPirates commented 4 years ago

Okay, I noticed you're right... This is really strange.

That actually makes it less strange. If an existing run configuration gets corrupted, it would make a lot more sense than if new ones were created incorrectly.

With the steps you give, I still don't get a blank screen. However, I think we can solve this if you give your run configuration xml, so I can see what's wrong in your particular configuration, as it seems to be unable to create the editor from the xml given that it shows a blank screen.

You can find it in .idea/workspace.xml, there search for LATEX_RUN_CONFIGURATION, find the broken one and copy everything between <configuration>...</configuration>.

Stainzl commented 4 years ago

I can't reproduce the error on my other machine... On one machine it works fine, on the other it's broken. One running

here it's all fine. On the other machine (company machine)

it is broken.

The config is still runable, but can't be edited. Its the same config on both machines. Here is the part you mentioned:

<configuration name="continuous" type="LATEX_RUN_CONFIGURATION" factoryName="LaTeX configuration factory">
      <texify>
        <compiler>LATEXMK</compiler>
        <compiler-path />
        <sumatra-path />
        <viewer-command />
        <compiler-arguments>-pvc --shell-escape</compiler-arguments>
        <envs />
        <main-file>$PROJECT_DIR$/src/main.tex</main-file>
        <output-path>$PROJECT_DIR$/out</output-path>
        <auxil-path>$PROJECT_DIR$/auxil</auxil-path>
        <compile-twice>false</compile-twice>
        <output-format>PDF</output-format>
        <latex-distribution>MIKTEX</latex-distribution>
        <has-been-run>true</has-been-run>
        <bib-run-config>[]</bib-run-config>
        <makeindex-run-config />
      </texify>
      <method v="2" />
    </configuration>

I already tried to reinstall IntelliJ completly, also removing the installation folder from disk.

PHPirates commented 4 years ago

No, there's nothing wrong with that run configuration, and it does work correctly for me. But were you not able to open the run config edit screen at all? So not just for this run configuration. And you are sure you didn't get any exception logged (bottom right)? (I know it doesn't show on your screenshot). If there is no error there, perhaps you can upload idea.log (Help > Show log ...) preferably right after reproducing the issue (noting the time at which you had the issue would help).

Stainzl commented 4 years ago

idea.log

2020-06-18 16:56:04,185 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2020-06-18 16:56:04,254 [     69]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-201.7846.76, 01 Jun 2020 05:02) 
2020-06-18 16:56:04,260 [     75]   INFO -        #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64) 
2020-06-18 16:56:04,261 [     76]   INFO -        #com.intellij.idea.Main - JRE: 11.0.7+10-b765.53 (JetBrains s.r.o.) 
2020-06-18 16:56:04,261 [     76]   INFO -        #com.intellij.idea.Main - JVM: 11.0.7+10-b765.53 (OpenJDK 64-Bit Server VM) 
2020-06-18 16:56:04,262 [     77]   INFO -        #com.intellij.idea.Main - JVM Args: exit -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Dide.no.platform.update=true -Djb.vmOptionsFile=C:\Users\---\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7846.76.vmoptions -Djava.library.path=C:\Users\---\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7846.76\jbr\\bin;C:\Users\---\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7846.76\jbr\\bin\server -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IntelliJIdea2020.1 -XX:ErrorFile=C:\Users\---\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\---\java_error_in_idea.hprof 
2020-06-18 16:56:04,263 [     78]   INFO -        #com.intellij.idea.Main - Locale=de_DE JNU=Cp1252 file.encoding=Cp1252 
2020-06-18 16:56:04,576 [    391]   INFO -        #com.intellij.idea.Main - JNA library (64-bit) loaded in 368 ms 
2020-06-18 16:56:04,588 [    403]   INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational 
2020-06-18 16:56:06,855 [   2670]   INFO - ntellij.idea.ApplicationLoader - CPU cores: 8; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@70b08772[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@31af21bc 
2020-06-18 16:56:07,032 [   2847]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: IDEA CORE (201.7846.76), com.intellij.platform.images (201.7846.76), JetBrains Repository Search (201.7846.76), HTML Tools (201.7846.76), Perforce (201.7846.76), Refactor-X (201.7846.76), Subversion (201.7846.76), XPathView + XSLT (201.7846.76), XSLT Debugger (201.7846.76), Smali Support (201.7846.76), IDE Settings Sync (201.7846.76), Configuration Script (201.7846.76), Copyright (201.7846.76), CSS (201.7846.76), W3C Validators (201.7846.76), Haml (201.7846.76), Less (201.7846.76), Sass (201.7846.76), Stylus (201.7846.76), Java (201.7846.76), Bytecode Viewer (201.7846.76), CFML (201.7846.76), Git (201.7846.76), ChangeReminder (201.7846.76), Next File Prediction (201.7846.76), Performance Testing (201.7846.76), JUnit (201.7846.76), Task Management (201.7846.76), GitHub (201.7846.76), Time Tracking (201.7846.76), IntelliLang (201.7846.76), TestNG (201.7846.76), Code Coverage for Java (201.7846.76), Emma (201.7846.76), Java HTTP Clients (201.7846.76), Markdown (201.7846.76), ZKM-Unscramble (201.7846.76), Spring AOP/@AspectJ (201.7846.76), Dependency Structure Matrix (201.7846.76), Java IDE Customization (201.7846.76), Recommenders for Java (201.7846.76), Java Stream Debugger (201.7846.76), Eclipse Interoperability (201.7846.76), Java Bytecode Decompiler (201.7846.76), Gradle (201.7846.76), Windows 10 Light Theme (201.7846.76), Properties (201.7846.76), Ant (201.7846.76), Groovy (201.7846.76), Maven (201.7846.76), OSGi (201.7846.76), AspectJ (201.7846.76), Gradle-Java (201.7846.76), Frameworks Starters (201.7846.76), Reactive Streams (Reactor, RxJava) (201.7846.76), Gradle-Maven (201.7846.76), JavaFX (201.7846.76), UML (201.7846.76), Gradle Extension (201.7846.76), Guice (201.7846.76), Java Internationalization (201.7846.76), UI Designer (201.7846.76), Plugin DevKit (201.7846.76), Velocity (201.7846.76), Resource Bundle Editor (201.7846.76), Machine Learning Code Completion (201.7846.76), ASP (201.7846.76), FTP/SFTP Connectivity (ex. Remote Hosts Access) (201.7846.76), Gherkin (201.7846.76), Cucumber for Java (201.7846.76), Cucumber for Groovy (201.7846.76), Mercurial (201.7846.76), EditorConfig (201.7846.76), Terminal (201.7846.76), SSH Remote Run (201.7846.76), WSL Support Framework (201.7846.76), Shell Script (201.7846.76), TextMate bundles (201.7846.76), YAML (201.7846.76), Grazie (201.7846.76), JavaScript and TypeScript (201.7846.76), Flash/Flex (201.7846.76), JavaScript Intention Power Pack (201.7846.76), Database Tools and SQL (201.7846.76), Java SQL Libraries (201.7846.76), Persistence Frameworks (201.7846.76), Play Framework (201.7846.76), Java EE: EJB, JPA, Servlets (201.7846.76), Java EE: Contexts and Dependency Injection (201.7846.76), Helidon (201.7846.76), Java EE: Batch Applications (201.7846.76), Docker (201.7846.76), GlassFish (201.7846.76), WildFly (201.7846.76), JSR45 (201.7846.76), JavaScript Debugger (201.7846.76), Node.js (201.7846.76), CoffeeScript (201.7846.76), Android (201.7846.76), Spy-js (201.7846.76), Jetty (201.7846.76), Resin (201.7846.76), Tomcat and TomEE (201.7846.76), WebSphere (201.7846.76), WebLogic (201.7846.76), Java EE: Bean Validation (201.7846.76), Hibernate (201.7846.76), Java EE: JMS, JSON Processing, Concurrency, Transaction (201.7846.76), Application Servers View (201.7846.76), Java EE: WebSockets (201.7846.76), JBoss Frameworks Base (201.7846.76), Drools (201.7846.76), Arquillian (201.7846.76), Java Server Pages (JSP) (201.7846.76), Java EE: Java Server Faces (201.7846.76), Spring (201.7846.76), Virgo/dmServer (201.7846.76), FreeMarker (201.7846.76), Struts 2 (201.7846.76), GWT (201.7846.76), Spring Batch (201.7846.76), Spring Data (201.7846.76), Spring Messaging (201.7846.76), Spring WebSocket (201.7846.76), Spring OSGi (201.7846.76), Spring Security (201.7846.76), Spring Integration Patterns (201.7846.76), Thymeleaf (201.7846.76), Java EE: Web Services (JAX-WS) (201.7846.76), Spring Web Services (201.7846.76), Grails (201.7846.76), JBoss Seam (201.7846.76), JBoss Seam Pageflow (201.7846.76), JBoss Seam Pages (201.7846.76), JBoss jBPM (201.7846.76), Tapestry (201.7846.76), Java EE: RESTful Web Services (JAX-RS) (201.7846.76), Quarkus (201.7846.76), OpenAPI Specifications (201.7846.76), Maven Extension (201.7846.76), HTTP Client (201.7846.76), Spring MVC (201.7846.76), Spring Web Flow (201.7846.76), TSLint (201.7846.76), Angular and AngularJS (201.7846.76), Microservices Application Configuration (201.7846.76), Spring Boot (201.7846.76), Micronaut (201.7846.76), Settings Repository (201.7846.76) 
2020-06-18 16:56:07,033 [   2848]   INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Kotlin (1.3.72-release-IJ2020.1-5), TeXiFy IDEA (0.6.10) 
2020-06-18 16:56:07,584 [   3399]   INFO - cloudConfig.CloudConfigManager - === BeforeStart.StreamProvider === 
2020-06-18 16:56:07,887 [   3702]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705 
2020-06-18 16:56:07,903 [   3718]   INFO - tellij.util.io.FileChannelUtil - un-interruptible FileChannel-s will be used for indexes 
2020-06-18 16:56:07,925 [   3740]   INFO - til.net.ssl.CertificateManager - Default SSL context initialized 
2020-06-18 16:56:08,062 [   3877]   INFO - cation.options.RegistryManager - Registry values changed by user: BSP.system.in.process = true, SBT.system.in.process = true 
2020-06-18 16:56:08,159 [   3974]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 
2020-06-18 16:56:08,229 [   4044]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0 
2020-06-18 16:56:08,246 [   4061]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
2020-06-18 16:56:08,427 [   4242]   INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Users\---\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7846.76\bin\fsnotifier64.exe 
2020-06-18 16:56:08,472 [   4287]   INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational. 
2020-06-18 16:56:08,744 [   4559]   INFO - gs.impl.UpdateCheckerComponent - channel: release 
2020-06-18 16:56:08,783 [   4598]   INFO - cloudConfig.CloudConfigManager - === Start.updateConnection === 
2020-06-18 16:56:08,786 [   4601]   INFO - cloudConfig.CloudConfigManager - === Start: JBA_CONNECTED (3ms) === 
2020-06-18 16:56:08,787 [   4602]   INFO - cloudConfig.CloudConfigManager - === doConnect === 
2020-06-18 16:56:08,787 [   4602]   INFO - cloudConfig.CloudConfigManager - === getConnectionState === 
2020-06-18 16:56:08,818 [   4633]   INFO - ntellij.idea.ApplicationLoader - ApplicationLoader.loadProject (cwd=C:\Users\---\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7846.76\bin) 
2020-06-18 16:56:08,820 [   4635]   INFO - ellij.ide.CommandLineProcessor - External command line:
Dir: C:\Users\---\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\201.7846.76\bin
C:\Users\---\Documents\Studium\Bachelor
----- 
2020-06-18 16:56:09,020 [   4835]   INFO - lij.impl.ConversionServiceImpl - conversion will be performed because at least C:\Users\---\Documents\Studium\Bachelor\.idea\workspace.xml is changed (oldLastModified=1592491511362, newLastModified=1592492095817 
2020-06-18 16:56:09,327 [   5142]   INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files === 
2020-06-18 16:56:10,203 [   6018]   INFO - BridgeProjectLifecycleListener - Using legacy project model to open project 
2020-06-18 16:56:10,527 [   6342]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [C:/Users/---/Documents/Studium/Bachelor] 
2020-06-18 16:56:10,793 [   6608]   INFO - rojectCodeStyleSettingsManager - Loading Project code style 
2020-06-18 16:56:10,867 [   6682]   INFO - rojectCodeStyleSettingsManager - Project code style loaded 
2020-06-18 16:56:11,369 [   7184]   INFO - leBasedIndexDataInitialization - Initialization done: 3201 
2020-06-18 16:56:12,116 [   7931]   INFO - exImpl$StubIndexInitialization - Initialization done: 747 
2020-06-18 16:56:13,095 [   8910]   INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found 
2020-06-18 16:56:14,502 [  10317]   INFO - llij.database.util.SqlDialects - SQL dialects initialized in 1 ms 
2020-06-18 16:56:14,671 [  10486]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 262ms; general responsiveness: ok; EDT responsiveness: ok 
2020-06-18 16:56:15,366 [  11181]   WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider 
2020-06-18 16:56:16,055 [  11870]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 1378ms; general responsiveness: ok; EDT responsiveness: 1/1 sluggish 
2020-06-18 16:56:16,337 [  12152]   INFO -              PerformancePlugin - Performance Plugin is in silent mode 
2020-06-18 16:56:16,466 [  12281]   INFO - penapi.application.Experiments - Experimental features enabled for user: wsl.p9.support, wsl.p9.show.roots.in.file.chooser, inline.browse.button, linux.native.menu, recent.and.edited.files.together, show.create.new.element.in.popup, copy.reference.popup, new.large.text.file.viewer, property.value.inplace.editing, terminal.shell.command.handling 
2020-06-18 16:56:16,624 [  12439]   INFO - ge.ExternalProjectsDataStorage - Load external projects data in 9 millis (read time: 2) 
2020-06-18 16:56:16,898 [  12713]   INFO -  #git4idea.commands.GitHandler - [.] git version 
2020-06-18 16:56:16,978 [  12793]   WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.android.tools.idea.sdk.AndroidSdks) 
2020-06-18 16:56:17,049 [  12864]   INFO -  #git4idea.commands.GitHandler - git version 2.17.1.windows.2 
2020-06-18 16:56:17,063 [  12878]   INFO - CompilerWorkspaceConfiguration - Available processors: 8 
2020-06-18 16:56:17,100 [  12915]   INFO - ea.config.GitExecutableManager - Git version for C:\cmder\vendor\git-for-windows\bin\git.exe : 2.17.1 
2020-06-18 16:56:17,394 [  13209]   INFO - ProjectRootPostStartUpActivity - C:/Users/---/Documents/Studium/Bachelor/.idea case-sensitivity: expected=false actual=false 
2020-06-18 16:56:17,494 [  13309]   INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 1151ms; general responsiveness: ok; EDT responsiveness: ok 
2020-06-18 16:56:18,504 [  14319]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Problems View) or icon jar:file:/C:/Users/---/AppData/Local/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.7846.76/lib/icons.jar!/general/warning.svg 
2020-06-18 16:56:19,805 [  15620]   INFO - rationStore.ComponentStoreImpl - Registering unknown macros a.b.c in component DatabaseSettings 
2020-06-18 16:56:20,038 [  15853]   INFO - cloudConfig.CloudConfigManager - === StatusBar.start create === 
2020-06-18 16:56:20,399 [  16214]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 10860 ms 
2020-06-18 16:56:22,696 [  18511]   INFO - j.ide.plugins.RepositoryHelper - Couldn't load plugins from : java.net.MalformedURLException: Malformed URL:  

I also have a folder with threadDumps, if you need them.

PHPirates commented 4 years ago

Thanks, I don't see anything unusual in there. I have no idea, since you said you already reinstalled IntelliJ. Perhaps removing some configuration folders could help besides reinstalling, as you don't have the problem on your other system with (I assume) the same files. At least you now know how to edit the run configuration directly in the xml....

PHPirates commented 4 years ago

Do you still have this issue? If so, can you reproduce it yourself on the other machine? I haven't seen any similar issue since this was reported. You could also try updating to IntelliJ 2020.2 Beta.

PHPirates commented 4 years ago

Please reopen if the issue reappears.