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

            Bug ID: 483180
           Summary: Build plugin: Working directory variables are not
                    replaced when executing "Run command"
    Classification: Applications
           Product: kate
           Version: 24.02.0
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: k...@andre4all.de
  Target Milestone: ---

SUMMARY
Placeholder variables (like %B) are not replaced when the "Run command" is
executed.

STEPS TO REPRODUCE
1. Set Working Directory to %B
2. Set a run command relative to the project dir
3. Click the "Build and run target" button

OBSERVED RESULT
The terminal has the users home directory as the current directory

EXPECTED RESULT
The working directory should be the same as for the build command.

The variables should be replaced in every code path that uses the working
directory.

ADDITIONAL INFORMATION
KateBuildView::slotRunAfterBuild() takes the working directory as is, whereas
KateBuildView::buildCurrentTarget() replaces the variables.
KateBuildView::buildCurrentTarget() also does not replace the variables if the
"Build command" is empty.

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

Reply via email to