Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30173

Unable to create powershell terminal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 12.0.1
    • Terminal
    • None
    • Windows

    Description

      Tried:

      • Create a new powershell terminal with the create new button
      • Change the default shell path to C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

      In both cases, the window just disappeared. See the recording. Also no useful logs are shown in the debug logs.

       

      UPDATE2: Qt Creator 13.0 beta 2 does NOT solve this issue. See new video upload

      Log

      21:39:08.470 qtc.terminal: "Consolas" 10 5.48438 5.48438 QSize(98, 28)
      21:39:08.492 qtc.terminal: "Consolas" 12 6.59375 6.59375 QSize(96, 26)
      21:39:08.507 qtc.utils.process: Process 0 starting (non blocking): C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command try { . "C:\Users\Peter\AppData\Local\Temp\QtCreator-nZuEhG\shellintegration.ps1" } catch {}{1}
      21:39:08.686 qtc.utils.process: Process 0 finished: result=0, ex=0, 0 bytes stdout: "", 0 bytes stderr: "", 190 ms elapsed
      21:39:16.829 qtc.utils.process: Process 1 starting (non blocking): C:\Qt\MaintenanceTool.exe ch -g "*=false,ifw.package.*=true"
      

      UPDATE3: See my newly uploaded video for that powershell check.

      UPDATE4: Creating a custom build config with this run config

      Executable:

       

      C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 

      Command line arguments:

       

       

      -noexit -command try { . 'C:\Users\Peter\Downloads\shellintegration.ps1' } catch { Write-Host "Shell integration error:" $_ } 

      With "Run in terminal" checked, it gives me

       

       

      Terminal process exited with code 1Usage: -s [options]
      Debug helper for QtCreatorOptions:
        -?, -h, --help                 Displays help on commandline options.
        --help-all                     Displays help, including generic Qt options.
        -d, --debug                    Start inferior in debug mode
        -t, --test                     Don't start the control socket
        -s, --socket <socket>          Path to the unix socket
        -w, --workingDir <workingDir>  Working directory for inferior
        -v, --verbose                  Print debug messages
        -e, --envfile <envfile>        Path to env file
        --wait <waitmessage>           Message to display to the user while waiting
                                       for key press 

      Without it checked, it gives

      02:16:39: Starting C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command try { . 'C:\Users\Peter\Downloads\shellintegration.ps1' } catch { Write-Host "Shell integration error:" $_ }...
      PS C:\Users\Peter> 02:16:39: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe exited with code 0 

       

      Attachments

        1. 2024-01-10 00-53-15.mp4
          8.83 MB
        2. image-2024-02-06-08-27-14-590.png
          image-2024-02-06-08-27-14-590.png
          47 kB
        3. 2024-02-24 17-51-02.mp4
          14.27 MB
        4. image-2024-03-05-09-13-22-527.png
          image-2024-03-05-09-13-22-527.png
          200 kB
        5. image-2024-03-06-01-01-09-473.png
          image-2024-03-06-01-01-09-473.png
          136 kB
        6. image-2024-03-06-01-01-42-504.png
          image-2024-03-06-01-01-42-504.png
          194 kB
        7. image-2024-03-18-10-59-12-865.png
          image-2024-03-18-10-59-12-865.png
          135 kB
        8. shellintegration.ps1
          7 kB
        9. 2024-04-04 01-12-22.mp4
          6.57 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            madwinter Marcus Tillmanns
            ho-cooh Wenhao Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes