Unable to open terminal in pycharm
Unable to open terminal in pycharm. I tried to follow solutions mentioned in several of the related tickets but none of them worked. I tried to change the terminal from regular cmd terminal to powershell & changed back but nothing worked. I get the error as below when I open the terminal.
terminal settings
These are the errors I observed in the “show log in explorer ” option
2024-07-24 20:39:06,985 [96973068] INFO - #o.j.p.t.AbstractTerminalRunner - Cannot open Local
java.util.concurrent.ExecutionException: Failed to start [powershell.exe, -NoExit, -ExecutionPolicy, Bypass, -File, C:\Program Files\JetBrains\PyCharm Community Edition 2020.3.5\plugins\terminal\shell-integrations\powershell\powershell-integration.ps1] in S:/sujiths/python/qa_auto_python_cumulus, [columns=207, rows=17], envs={Upgrade=>True, CommonProgramFiles=>C:\Program Files\Common Files, =::=>::\, CLIENTNAME=>sujiths-mlt-2, USERDOMAIN=>NVIDIA.COM, ProgramData=>C:\ProgramData, COMPUTERNAME=>R-QA-WINVDI-011, OneDriveCommercial=>C:\Users\sujiths.NVIDIA.COM\OneDrive - NVIDIA Corporation, SystemDrive=>C:, IJ_RESTARTER_LOG=>C:\Users\sujiths.NVIDIA.COM\AppData\Local\JetBrains\PyCharmCE2024.1\log\restarter.log, OneDrive=>C:\Users\sujiths.NVIDIA.COM\OneDrive - NVIDIA Corporation, CommonProgramFiles(x86)=>C:\Program Files (x86)\Common Files, TMP=>C:\Users\sujiths.NVIDIA.COM\AppData\Local\Temp, TEMP=>C:\Users\sujiths.NVIDIA.COM\AppData\Local\Temp, STAFCONVDIR=>C:\STAF\codepage, ProgramFiles=>C:\Program Files, USERDOMAIN_ROAMINGPROFILE=>NVIDIA.COM, windir=>C:\Windows, CLASSPATH=>C:\STAF\samples\demo\STAFDemo.jar;C:\STAF\bin\JSTAF.jar, PROCESSOR_LEVEL=>23, ComSpec=>C:\Windows\system32\cmd.exe, NUMBER_OF_PROCESSORS=>4, PROCESSOR_ARCHITECTURE=>AMD64, USERDNSDOMAIN=>NVIDIA.COM, OS=>Windows_NT, JETBRAINS_INTELLIJ_COMMAND_END_MARKER=>t5FMDZxCudF4fXhCGSaBdxNM0y10fdZ9xTexMJxBzhIzzvEqmKAsP6QxQlqnNrY8, ProgramFiles(x86)=>C:\Program Files (x86), mySourcePath=>\\labs.mlnx\SYSVOL\labs.mlnx\scripts\MDEDeploy, PSModulePath=>C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules, PATHEXT=>.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_IDENTIFIER=>AMD64 Family 23 Model 49 Stepping 0, AuthenticAMD, APPDATA=>C:\Users\sujiths.NVIDIA.COM\AppData\Roaming, LOCALAPPDATA=>C:\Users\sujiths.NVIDIA.COM\AppData\Local, myDestPath=>C:\Windows\Temp\MDE, SystemRoot=>C:\Windows, HOMEPATH=>\Users\sujiths.NVIDIA.COM, TERMINAL_EMULATOR=>JetBrains-JediTerm, LOGONSERVER=>\\RNDC197, SESSIONNAME=>RDP-Tcp#52, HOMEDRIVE=>C:, DriverData=>C:\Windows\System32\Drivers\DriverData, Path=>C:\Scripts\;C:\;C:\app\client\sujiths\product\12.1.0\client_1\bin;C:\STAF\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Mozilla Firefox;C:\Program Files (x86)\Git\cmd;C:\Program Files\VanDyke Software\SecureCRT\;C:\Users\sujiths.NVIDIA.COM\AppData\Local\Microsoft\WindowsApps;, PUBLIC=>C:\Users\Public, IDEA_INITIAL_DIRECTORY=>C:\Users\sujiths.NVIDIA.COM, Offboard=>True, PROCESSOR_REVISION=>3100, USERPROFILE=>C:\Users\sujiths.NVIDIA.COM, ALLUSERSPROFILE=>C:\ProgramData, USERNAME=>sujiths, ProgramW6432=>C:\Program Files, CommonProgramW6432=>C:\Program Files\Common Files, TERM_SESSION_ID=>0c680408-c4cd-44ab-ad9c-9b540c656501}
at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:257)
at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:58)
at org.jetbrains.plugins.terminal.AbstractTerminalRunner.lambda$openSessionInDirectory$2(AbstractTerminalRunner.java:220)
at com.intellij.openapi.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: com.pty4j.windows.conpty.LastErrorExceptionEx: UpdateProcThreadAttribute failed: GetLastError() returned 50: The request is not supported.
at com.pty4j.windows.conpty.ProcessUtils.prepareStartupInformation(ProcessUtils.java:68)
at com.pty4j.windows.conpty.ProcessUtils.startProcess(ProcessUtils.java:24)
at com.pty4j.windows.conpty.WinConPtyProcess.<init>(WinConPtyProcess.java:42)
at com.pty4j.PtyProcessBuilder.start(PtyProcessBuilder.java:139)
at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:251)
... 12 more
2024-07-24 20:40:00,825 [97026908] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-07-24 20:40:00,825 [97026908] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
2024-07-24 20:40:00,825 [97026908] INFO - #c.i.a.o.PathMacrosImpl - Saved path macros: {}
2024-07-24 20:40:00,841 [97026924] INFO - #c.i.c.ComponentStoreImpl - Saving appTerminalUiSettingsManager took 16 ms
2024-07-24 20:40:01,023 [97027106] INFO - #o.j.p.t.a.TerminalCommandHistoryManager - Old terminal/ directory does not exist or not a directory: C:\Users\sujiths.NVIDIA.COM\AppData\Roaming\JetBrains\PyCharmCE2024.1\terminal
2024-07-24 20:40:01,025 [97027108] INFO - #o.j.p.t.a.TerminalCommandHistoryManager - Deleting [qa_auto_python_cumulus-history] (closed sessions)
2024-07-24 20:40:01,558 [97027641] INFO - #c.j.r.f.FollowMeManager - Unregister user (name: 'sujiths', clientId: Host)
2024-07-24 20:40:01,573 [97027656] INFO - #c.i.o.w.i.WindowManagerImpl - === Release(true) frame on closed project ===
2024-07-24 20:40:01,637 [97027720] WARN - #c.i.o.v.i.LineStatusTrackerManager - Tracker is being held on dispose by EditorImpl[LightVirtualFile: \a.py]; file: /a.py
2024-07-24 20:40:01,637 [97027720] WARN - #c.i.o.v.i.LineStatusTrackerManager - Tracker is being held on dispose by EditorImpl[LightVirtualFile: \Python Console.py]; file: /Python Console.py
2024-07-24 20:40:01,684 [97027767] SEVERE - #c.i.u.m.i.MessageBusImpl - Bus is already disposed
java.lang.Throwable: Bus is already disposed
Please sign in to leave a comment.
This solution helped me - https://www.reddit.com/r/pycharm/comments/14r6mdf/changing_terminal_shell/
registry
, Enterterminal.use.conpty.on.windows