Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #337 - Command fix for project path with spaces #355

Merged

Conversation

SuparnaSuresh
Copy link
Contributor

@SuparnaSuresh SuparnaSuresh commented Oct 22, 2024

Fixes #337
Fix for the issue - 'No such file or directory' raised for the start, start in container and start .. action of LTV dashboard for a project opened from the directory with space and project name with space.

gilbysunil14
gilbysunil14 previously approved these changes Nov 7, 2024
gilbysunil14
gilbysunil14 previously approved these changes Nov 18, 2024
Copy link
Contributor

@TrevCraw TrevCraw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update the copyright date for libertyProject.ts.

This is not a requirement for this issue, but as a general note, if you notice you are writing the same lines of code in multiple places and the pattern looks similar in those areas, it is good to consider if there is a chance to reuse common code from those areas. For instance, the startDevMode, startContainerDevMode and customDevMode functions.

src/liberty/devCommands.ts Outdated Show resolved Hide resolved
src/liberty/devCommands.ts Outdated Show resolved Hide resolved
src/liberty/devCommands.ts Outdated Show resolved Hide resolved
src/liberty/devCommands.ts Outdated Show resolved Hide resolved
src/liberty/devCommands.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@TrevCraw TrevCraw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! There are some new comments to address, though.

I particularly like the new way that you structured the code for building the various commands and the fact that you reused the "command building" code for common shell types and across both Maven and Gradle. It really cuts down on code duplication. Moving the common code for creating a new terminal to its own method was also a nice touch. Nice job!

Did you re-test with the newly structured code to confirm it behaves the same?

src/util/commandUtils.ts Show resolved Hide resolved
src/util/commandUtils.ts Show resolved Hide resolved
src/util/commandUtils.ts Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
@SuparnaSuresh
Copy link
Contributor Author

Thanks for the review. I have tested all the scenarios with updated code. It is working as expected.

src/util/commandUtils.ts Outdated Show resolved Hide resolved
src/util/commandUtils.ts Outdated Show resolved Hide resolved
@SuparnaSuresh SuparnaSuresh merged commit f1d507e into OpenLiberty:main Nov 22, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mvnCmd and gradleCmd should quote executable paths
4 participants