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

Sublime/Windows .sublime-project doesn't escape project_dir properly #2857

Closed
victorpraxedes opened this issue Aug 2, 2019 · 2 comments

Comments

@victorpraxedes
Copy link

commented Aug 2, 2019

Configuration
Windows 10 Pro
Sublime Text 3, Version 3.2.1, Build 3207

PlatformIO Version (platformio --version):
PlatformIO, version 4.0.0

Description of problem
After pio init --ide sublimetext --board nodemcuv2 the Sublime Text project file platformio.sublime-project has the following under settings:

    "settings":
    {
         "sublimegdb_workingdir": "c:\maelstrom\IosTuff\unit-testing",
         "sublimegdb_exec_cmd": "",
         "sublimegdb_commandline": "C:\\Users\\victor_praxedes\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts\\platformio.exe -f -c sublimetext debug --interface=gdb --interpreter=mi -x .pioinit"
    }

When i try to open the project file Menu: Project > Open Project... and select platformio.sublime-project it prompts the error:
Error trying to parse project: Invalid escape in C:\maelstrom\IosTuff\unit-testing\platformio.sublime-project:107:35

It can be solved by manually escaping the single backslashes on sublimegdb_workingdir by adding another backslash, but that should be escaped when the file project is created.

Steps to reproduce

mkdir unit-testing
cd unit-testing
platformio init --ide sublimetext --board nodemcuv2

On Sublime Text 3, Menu: Project > Open Project... and select platformio.sublime-project

@ivankravets

This comment has been minimized.

Copy link
Member

commented Aug 17, 2019

@valeros could you reproduce it?

@ivankravets ivankravets added this to the 4.0.1 milestone Aug 17, 2019

@ivankravets ivankravets assigned ivankravets and unassigned valeros Aug 19, 2019

@ivankravets ivankravets added bug and removed help wanted labels Aug 19, 2019

@ivankravets

This comment has been minimized.

Copy link
Member

commented Aug 19, 2019

Please re-test with pio upgrade --dev.

Thanks!

@ivankravets ivankravets reopened this Aug 19, 2019

@ivankravets ivankravets referenced this issue Aug 22, 2019
5 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.