Skip to content

esp8266FS using wrong Hardware path, because it is hard coded #71

Open
@arnold-b

Description

@arnold-b

Hello,
If i try to Upload to SPIFFS i get error. And after Debugging your Code i found:

  1. You should print out the path before you stop
    case "esp32": {
    const esp32Path = path.join(arduinoUserPath, "hardware", target.package, target.architecture);
    logImportant(Found ESP32 packages: ${esp32Path}); This reached even on error
    if (!dirExists(esp32Path))
    throw ESP32 has not been installed correctly - see https://github.com/espressif/arduino-esp32.;

THIS never reached on error logImportant(Found ESP32 packages: ${esp32Path});

        return esp32Path;

If i try to pack then i get this path from Hardware

  • Found ESP32 packages: C:\Users\braun\Documents\Arduino\hardware\espressif\esp32
    // This path is fixed in your script. Normaly you should get it from the selected Sourcecode.
    // If this is not posible. it´s may be better to use preferences.txt\sketchbook.path or extract from board
    This path is wrong. The real path is J:\PRJArduino\Hardware....

At least you should log the Vars before Termination. That makes the error correction more easy

board: include path:
"board": "espressif:arduino-esp32-master:esp32", Path=value[0]+''+value[1]
"board": "espressif:esp32:esp32",

By the way i found second error.
If i choose ESP wrover, your script tell. it is not esp. esp32wrover
May just check if it is espressif and not the type

I don´t know much About programming vscode extensions. I´m wondering where you find ESP8266FS_ARDUINO_USER_PATH
I just took from prefference the sketchbook.path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions