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

[csolution] CMSIS Solution project fails to be processed when it is located in a directory containing $ (dollar) character #294

Open
1 task done
andbararm opened this issue Feb 20, 2025 · 1 comment
Assignees

Comments

@andbararm
Copy link

andbararm commented Feb 20, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using a project in Keil Studio/MDK6, that is located in a path that contains a dollar sign '$', for example building the project fails:

error csolution: malformed access sequence: '/$test/Blinky_FRDM-K32L3A6
error csolution: processing context 'FRDM-K32L3A6.Debug+FRDM-K32L3A6' failed
Completed: cbuild failed with exit code 1`

Maybe the dollar sign collides with [Access Sequences](https://github.com/Open-CMSIS-Pack/cmsis-toolbox/blob/main/docs/YML-Input-Format.md).

### Expected Behavior

Despite the the dollar sign in the path, the project could still be usable, as the dollar sign is no reserved character in file paths.

### Steps To Reproduce

Simply put a project into a path that contains a dollar sign and try to use it.

### Affected tools

- [ ] cbuild
- [ ] cbuild2cmake
- [ ] cpackget
- [x] csolution
- [ ] packchk
- [ ] svdconv

### Affected operating systems

- [x] all

### Environment

CLI and VS Code CMSIS Solution extension
@andbararm andbararm added the bug Something isn't working label Feb 20, 2025
@jkrech jkrech moved this to Backlog in CMSIS-Toolbox 2.9.0 Feb 21, 2025
@jkrech
Copy link
Member

jkrech commented Feb 21, 2025

High level investigation shows, that this error is related to the output path. If the output is redirected (-O) to a path where the resulting absolute path does not contain $ the command is successful.

Workaround:
a) do not use $ in your directory names
b) use -O to redirect all output to a directory without $

@jkrech jkrech changed the title csolutuion based project in folder containing '$' (dollar) sign not working csolution based project in folder containing '$' (dollar) sign not working Feb 21, 2025
@jkrech jkrech removed the bug Something isn't working label Feb 25, 2025
@jkrech jkrech changed the title csolution based project in folder containing '$' (dollar) sign not working [csolution] CMSIS Solution project fails to be processed when it is located in a directory containing $ (dollar) character Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants