Skip to content

using backslach before a variable eats the backslach #1166

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

Closed
hreintke opened this issue Apr 2, 2020 · 10 comments
Closed

using backslach before a variable eats the backslach #1166

hreintke opened this issue Apr 2, 2020 · 10 comments
Labels
domain: configuration Configuring Sloeber does not work as docummented importance: board specific OS: windows status: fixed in 4.4.0 fixed in 4.4.0

Comments

@hreintke
Copy link

hreintke commented Apr 2, 2020

In ESP32 platform.txt there is this line :
recipe.hooks.prebuild.2.pattern.windows=cmd /c if not exist "{build.path}\partitions.csv" copy "{runtime.platform.path}\tools\partitions\{build.partitions}.csv" "{build.path}\partitions.csv"

Which expanded to :

cmd /c if not exist "C:\Userdata\ESP8266\Projects\Command_32/Release\partitions.csv" copy "C:/Userdata/ESP32/arduino_esp32\tools\partitionsdefault.csv" "C:\Userdata\ESP8266\Projects\Command_32/Release\partitions.csv"

There is a missing backslash from :
{runtime.platform.path}\tools\partitions\{build.partitions}.csv
to
C:/Userdata/ESP32/arduino_esp32\tools\partitionsdefault.csv

Environment : Windows 8.1, Sloeber 4.3.2. (also seen in 4.3.1)

@jantje
Copy link
Member

jantje commented Apr 2, 2020

This is a cdt issue that won't be fixed quickly
https://bugs.eclipse.org/bugs/show_bug.cgi?id=560330
maybe you can use / to workaround

@jantje jantje changed the title Prebuild command doesn't expand correct using backslach before a variable eats the backslach Apr 2, 2020
@jantje jantje added domain: configuration Configuring Sloeber does not work as docummented importance: board specific OS: windows status: known limitation This is soimething we can live with labels Apr 2, 2020
@hreintke
Copy link
Author

hreintke commented Apr 2, 2020

Using copy "{runtime.platform.path}\tools\partitions\\{build.partitions}.csv" in platform.txt makes it work.
Pity that we need a local patch to make it work (=remark to eclipse, not to you).

@jantje
Copy link
Member

jantje commented Oct 7, 2020

This is now fixed in CDT10 !!!
Not yet released but removing this from the known limitations

@jantje jantje reopened this Oct 7, 2020
@jantje jantje added status: fixed in 4.4.0 fixed in 4.4.0 and removed status: known limitation This is soimething we can live with labels Oct 7, 2020
@jantje
Copy link
Member

jantje commented Oct 12, 2020

This is now fixed in the latest nightly

@jantje jantje closed this as completed Oct 12, 2020
@AungKL
Copy link

AungKL commented May 16, 2021

This is now fixed in the latest nightly

I have the same "partitions.csv" target 'pre-build' failed issue? It's work on 1.0.4, but not on 1.0.5, 1.0.6 and 2.0.0.
I want to update the latest nightly, my current version is

Sloeber, the Eclipse Arduino IDE (plugin version) 4.3.3.202004230915
and running on Windows 10 64-bit.

I'm not a developer, could you please show me the way to update?

Thanks

@jantje
Copy link
Member

jantje commented May 16, 2021

All the info is available on the website http://eclipse.baeyens.it
The nightly link http://eclipse.baeyens.it/nightly.php
The upgrade procedure http://eclipse.baeyens.it/how_to.shtml#/n

@AungKL
Copy link

AungKL commented May 23, 2021

Thank for reply,
I chose "method 2. upgrade current product" from http://eclipse.baeyens.it/how_to.shtml#/n
and able to update 4.3.3.202005042010
but the problem of "partitions.csv" target 'pre-build' failed issue with ESP32 v2.0.0 still not disappear.

Current Version

Sloeber_current_version

Available Version

Sloeber_available_version

Updated Version

Sloeber_Updated_version

ESP32 v2.0.0 Setup

Sloeber_ESP32_v2 0 0

ESP32 - "partitions.csv" target 'pre-build' failed issue

Sloeber_ESP32_v2 0 0_error

Is it correct way to update nightly build?

@jantje
Copy link
Member

jantje commented May 23, 2021

but the problem of "partitions.csv" target 'pre-build' failed issue with ESP32 v2.0.0 still not disappear.

That is because .3.3.202005042010 is not the latest nightly but the latest stable
Did you activate the nightly update site
Note this is a difficult upgrade as you will also have to upgrade java and cdt

@AungKL
Copy link

AungKL commented May 23, 2021

After activating the nightly update site, and jre to v11,

Nightly

then I check for the update, there is an error "No remedy found"

no remedy

Could you please help me to show the direction to nightly update?

@jantje
Copy link
Member

jantje commented May 23, 2021

From the link I have send before
afbeelding

You are hitting the disadvantages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: configuration Configuring Sloeber does not work as docummented importance: board specific OS: windows status: fixed in 4.4.0 fixed in 4.4.0
Projects
None yet
Development

No branches or pull requests

3 participants