Closed zhpt closed 2 years ago
What does pio --version
return in cmd.exe and VSCode CLI?
What does
pio --version
return in cmd.exe and VSCode CLI? cmd return "PlatformIO Core, version 5.1.1" vscode terminal also return this "PlatformIO Core, version 5.1.1" but vscode PlatformIO IDE version is v2.3.2![]()
![]()
but vscode PlatformIO IDE version is v2.3.2
Yes, the extension version is different from the core version, that's expected.
What about that Microsoft_PowerShell_profile.ps1
error? You have custom profile scripts for the shell, and that might influence it?
Also, can you, in the cmd.exe
, do a pio upgrade --dev
and try pio run
again? I don't yet see why it would work in the IDE but on in the cmd.exe
.
Oh wait, I take that back. The path of the project folder in H:.....
seems to be extremely long. Windows has limitations on maximum path length.
Please move the folder to a shorter path, like H:\Marlin
, and try pio run
in there from cmd.exe
. Does it work now?
@maxgerhardt Thank you for your help. Follow your step is compiled successful on cmd.exe. And this error mainly beacuse my program modified the platformio.ini file unexpectedly . Thanks again.
What kind of issue is this?
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system:Windows10
PlatformIO Version (
platformio --version
):5.1.1Description of problem
I want to compile Marlin sources files (version 2.0.7.2). I try to compile on cmd with "platformio run", but it was error about "Marlin\src\module/stepper/trinamic.h:29:10: fatal error: TMCStepper.h: No such file or directory".
But when I try on VS Code , it can compile success.
What's wrong with it? Thank you.
Steps to Reproduce
1.open cmd 2.platformio run
Actual Results
compile success
Expected Results
Marlin\src\module/stepper/trinamic.h:29:10: fatal error: TMCStepper.h: No such file or directory
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info