https://bugs.kde.org/show_bug.cgi?id=417778

            Bug ID: 417778
           Summary: Tools > Run Corrent Document does not actually run
                    anything in the (integrated) terminal
           Product: kate
           Version: 19.12.2
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: vielerhyl...@tuta.io
  Target Milestone: ---

SUMMARY
If you have an open file (tested with a shell and a python script) and select
Tools > Run Current document, nothing really happens.

STEPS TO REPRODUCE
1. Have a file that prints something on screen (e.g. `echo "Hello!"`)
2. Click on Tools > Run Current Document

OBSERVED RESULT
- If the integrated terminal is *not* visible, no feedback is given/nothing
happens.
- If the integrated termina *is* visible, the filename gets fed to the input as
if it were a command to run, which fails because it's missing `./`

EXPECTED RESULT
The file should be run, in theory according to the shebang of the file.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.5.3-arch1-1
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4460 CPU @ 3.20GHz
Memory: 15,3 GiB of RAM

ADDITIONAL INFORMATION
Assuming I want to run a file called "test.sh", a popup says

---
This will execute the following command,
with your user rights, in the terminal:
'test.sh
'
---

To me it's not clear which terminal it is (as stated above, without a terminal
visible, nothing really happens). Also, I guess that the string '<command><LF>'
is being sent to the terminal, but it looks weird to me to actually parse the
LF in the GUI popup.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to