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

The $PROJECT_DIR gets the full path to platformio.ini, not the dirname. #4086

Closed
mikisama opened this issue Oct 21, 2021 · 1 comment
Closed

Comments

@mikisama
Copy link

mikisama commented Oct 21, 2021

Configuration

Operating system: WIN10 21H1

PlatformIO Version (platformio --version): PlatformIO Core, version 5.2.2

Description of problem

The $PROJECT_DIR gets the full path to platformio.ini, not the dirname.

Steps to Reproduce

  1. open the project with vscode
  2. launch debugging
  3. the error message is in DEBUG CONSOLE.
    image

Actual Results

The DEBUG CONSOLE shows that the path to custom start debug server is d:/stm32f207/platformio.ini/debug.exe

Expected Results

The path to custom start debug server is d:/stm32f207/debug.exe

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:nucleo_f207zg]
platform = ststm32
framework = libopencm3
board = nucleo_f207zg

build_type = debug
; debug_tool = cmsis-dap
; upload_protocol = cmsis-dap

debug_tool = custom
debug_server =
    $PROJECT_DIR/debug.exe

Source file to reproduce issue:

int main(void) { return 0; }

Additional info

stm32f207.zip

@mikisama mikisama changed the title The $PROJECT_DIR gets the full path to platformio.ini, not the path name. The $PROJECT_DIR gets the full path to platformio.ini, not the dir name. Oct 21, 2021
@mikisama mikisama changed the title The $PROJECT_DIR gets the full path to platformio.ini, not the dir name. The $PROJECT_DIR gets the full path to platformio.ini, not the dirname. Oct 21, 2021
@ivankravets ivankravets added this to the 5.2.3 milestone Oct 22, 2021
@ivankravets
Copy link
Member

Thanks for the report! Please re-test with pio upgrade --dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants