Skip to content

Fix workspace path newline causing new project creation failure#469

Open
NehaDINNOV wants to merge 1 commit intoFOSSEE:masterfrom
NehaDINNOV:fix-workspace-newline
Open

Fix workspace path newline causing new project creation failure#469
NehaDINNOV wants to merge 1 commit intoFOSSEE:masterfrom
NehaDINNOV:fix-workspace-newline

Conversation

@NehaDINNOV
Copy link

Related Issues

N/A

Purpose

While running eSim from source, creating a new project fails even when a valid project name is provided.
This occurs because the workspace path read from ~/.esim/workspace.txt contains a trailing newline character (\n).
The newline becomes part of the workspace path, resulting in invalid paths such as:

/home/user/eSim-Workspace\n/.projectExplorer.txt

which prevents project creation.

Approach

The trailing newline is removed from the workspace path before it is used.

Updated code in src/configuration/Appconfig.py:

workspace_check, home = file.readline().split(' ', 1)
home = home.strip()

This ensures the workspace path is correctly formatted and allows new projects to be created successfully.

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.

1 participant