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

FIX: changed path separator to standard slash to enable usage in non MS OSs too #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhgue
Copy link

@mhgue mhgue commented Jun 17, 2021

Using e2studio on Linux will throw an error if starting the debugger:
Unable to find full path for "/home/*/.eclipse/com.renesas.platform_1464714110/DebugComp//RAe2-server-gdb"
This is due to a wrong (non standard MS only) path separator in Debug.launch that can be found by grep -r "\}\\\\" and fixed by
find -type f -name *Debug*.launch -exec sed -i 's#\}\\#\}/#g' {} \;
After changing '\' to '/' debugging with Linux is Ok.
Greetings

@ra-fsp-systems
Copy link
Collaborator

Hi @mhgue ,

It seems that there are a few more files with .elf.launch in the Debug launch name. Have you looked at those files? Do these files also need a change?

For e.g.: example_projects/ek_ra2a1/iic_master/iic_master_ek_ra2a1_ep/e2studio/iic_master_ek_ra2a1_ep.elf.launch

P.S.: Optionally, We would love to hear the background of your use-case for the example projects.

@mhgue
Copy link
Author

mhgue commented Jul 13, 2021

Hi @ra-fsp-systems ,
my use-case was just to run the EK-RA2E1 with debugger on some of your examples using linux (see Renesas Rulz). The backslash on POSIX systems is interpreted in a way preventing e2studio from finding the debug application. I only had a look at *Debug*.launch files and that fixed the problem for me. There may be other *.launch with similar problems, not sure. I do not have a EK-RA2A1 so I can not try your example. But looking inside shows the same bug value="${renesas.support.targetLoc:com.renesas.ide.supportfiles.ra.debug.debugSupportFileTarget}\e2-server-gdb"/>
So my commit seems to be not complete. The imageFileame e.g. given by value="${workspace_loc:\iic_master_ek_ra2a1_ep\Debug/iic_master_ek_ra2a1_ep.elf}"/> contains a mixture of slash an backslash and has good chances to fail too.

Greetings

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.

2 participants