esp-exception-decoder icon indicating copy to clipboard operation
esp-exception-decoder copied to clipboard

Shift+Cmnd+P does not find the decode

Open matsekberg opened this issue 1 year ago • 8 comments

Installed on a Mac as per instructions.

matsekberg avatar Jul 01 '24 10:07 matsekberg

I am having the same issue.

It was working for me last month, but recently it seems like the plugin is not being loaded.

vegasje avatar Jul 10 '24 21:07 vegasje

Thanks for reporting it. Since there were no new releases, something has probably changed in Arduino IDE. Can you provide details? What OS? What is the Arduino IDE version? You can get the logs from the IDE and attach them to this issue.

Please search the official Arduino forum on how to get the IDE logs: https://forum.arduino.cc/c/software/ide-2-x/93.

dankeboy36 avatar Jul 11 '24 18:07 dankeboy36

OS: macOS 13.6.7 Arduino IDE: 2.3.2

I am attaching the beginning of the logs generated by Arduino IDE during launch, rather than the entire set of logs (which contain sensitive information). I believe I am attaching the relevant portion of the logs.

vegasje@vegasje-MacBook-Air-22 ~ % "/Applications/Arduino IDE.app/Contents/MacOS/Arduino IDE"
Arduino IDE 2.3.2
Checking for frontend application configuration customizations. Module path: /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js, destination 'package.json': /Applications/Arduino IDE.app/Contents/Resources/app/package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.2" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.3" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-20T09:53:59.281Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.2","cliVersion":"0.35.3","buildDate":"2024-02-20T09:53:59.281Z"}
Starting backend process. PID: 25948
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/vegasje/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-07-15T16:48:03.349Z root INFO Backend Object.initialize: 2.2 ms [Finished 0.281 s after backend start]
2024-07-15T16:48:03.351Z root INFO Backend Object.configure: 1.8 ms [Finished 0.281 s after backend start]
2024-07-15T16:48:03.351Z root INFO Backend s.onStart: 0.8 ms [Finished 0.281 s after backend start]
2024-07-15T16:48:03.351Z root INFO Backend s.configure: 0.1 ms [Finished 0.294 s after backend start]
2024-07-15T16:48:03.352Z root INFO Backend d.onStart: 0.1 ms [Finished 0.294 s after backend start]
2024-07-15T16:48:03.352Z root INFO Backend d.configure: 0.0 ms [Finished 0.295 s after backend start]
2024-07-15T16:48:03.352Z root INFO Backend d.initialize: 13.1 ms [Finished 0.295 s after backend start]
2024-07-15T16:48:03.352Z root INFO Backend c.onStart: 0.1 ms [Finished 0.295 s after backend start]
2024-07-15T16:48:03.352Z root INFO Backend a.configure: 2.0 ms [Finished 0.297 s after backend start]
2024-07-15T16:48:03.353Z config INFO >>> Initializing CLI configuration...
2024-07-15T16:48:03.353Z root INFO Backend c.initialize: 0.3 ms [Finished 0.297 s after backend start]
2024-07-15T16:48:03.353Z root INFO Backend R.onStart: 0.4 ms [Finished 0.297 s after backend start]
2024-07-15T16:48:03.353Z config INFO Loading CLI configuration from /Users/vegasje/.arduinoIDE/arduino-cli.yaml...
2024-07-15T16:48:03.353Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-07-15T16:48:03.353Z root INFO Backend a.initialize: 0.2 ms [Finished 0.297 s after backend start]
2024-07-15T16:48:03.353Z root INFO Backend w.onStart: 0.5 ms [Finished 0.298 s after backend start]
2024-07-15T16:48:03.353Z root INFO Backend r.configure: 0.7 ms [Finished 0.298 s after backend start]
2024-07-15T16:48:03.354Z discovery-log INFO start
2024-07-15T16:48:03.354Z discovery-log INFO start new deferred
2024-07-15T16:48:03.354Z root INFO Backend d.initialize: 0.1 ms [Finished 0.298 s after backend start]
2024-07-15T16:48:03.354Z root INFO Backend y.onStart: 0.7 ms [Finished 0.299 s after backend start]
2024-07-15T16:48:03.354Z root INFO Backend r.configure: 0.6 ms [Finished 0.299 s after backend start]
2024-07-15T16:48:03.354Z root INFO Backend a.onStart: 0.2 ms [Finished 0.299 s after backend start]
2024-07-15T16:48:03.354Z root INFO Backend h.configure: 0.2 ms [Finished 0.299 s after backend start]
2024-07-15T16:48:03.354Z root INFO Backend s.configure: 0.0 ms [Finished 0.299 s after backend start]
2024-07-15T16:48:03.354Z root INFO Backend l.configure: 0.0 ms [Finished 0.299 s after backend start]
2024-07-15T16:48:03.355Z root INFO Theia app listening on http://127.0.0.1:64007.
2024-07-15T16:48:03.355Z root INFO Finished starting backend application: 1.2 ms [Finished 0.300 s after backend start]
2024-07-15T16:48:03.355Z root WARN The local plugin referenced by local-dir:/Users/vegasje/.arduinoIDE/extensions does not exist.
2024-07-15T16:48:03.357Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://espressif.github.io/arduino-esp32/package_esp32_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"/Users/vegasje/Library/Arduino15/libraries"},"data":"/Users/vegasje/Library/Arduino15","downloads":"/Users/vegasje/Library/Arduino15/staging","user":"/Users/vegasje/Programming/Arduino"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-07-15T16:48:03.357Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-07-15T16:48:03.357Z config INFO Loaded the CLI configuration.
2024-07-15T16:48:03.358Z root INFO [esp-exception-decoder-1.0.2.vsix]: trying to decompress into "/private/var/folders/sn/752fhytn69q9m5fjqqg44s340000gn/T/vscode-unpacked/esp-exception-decoder-1.0.2.vsix"...
2024-07-15T16:48:03.360Z root INFO [esp-exception-decoder-1.0.2.vsix]: already found
2024-07-15T16:48:03.361Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/vegasje/Library/Arduino15","sketchDirUri":"file:///Users/vegasje/Programming/Arduino","additionalUrls":["https://espressif.github.io/arduino-esp32/package_esp32_index.json"],"network":"none","locale":"en"}
2024-07-15T16:48:03.361Z config INFO Validating the CLI configuration...
2024-07-15T16:48:03.361Z root ERROR Failed to load plugin dependencies from '/private/var/folders/sn/752fhytn69q9m5fjqqg44s340000gn/T/vscode-unpacked/esp-exception-decoder-1.0.2.vsix' path Error: ENOENT: no such file or directory, open '/private/var/folders/sn/752fhytn69q9m5fjqqg44s340000gn/T/vscode-unpacked/esp-exception-decoder-1.0.2.vsix/package.json'
2024-07-15T16:48:03.366Z config INFO The CLI config is valid.
2024-07-15T16:48:03.366Z config INFO <<< Initialized the CLI configuration.
2024-07-15T16:48:03.372Z root INFO Resolve plugins list: 19.2 ms [Finished 0.318 s after backend start]
...

vegasje avatar Jul 15 '24 16:07 vegasje

Thank you!

Please delete the corrupted folder from your temp location and restart the Arduino IDE:

rm -rf /private/var/folders/sn/752fhytn69q9m5fjqqg44s340000gn/T/vscode-unpacked/esp-exception-decoder-1.0.2.vsix

This process should resolve the issue. Please let me know if it was successful. After corrupting things, I could reproduce the problem with my local setup and found that removing the folder from the temporary location resolved the issue.


This could be a bug in the Theia version of the Arduino IDE. When a VS Code extension is installed as a VSIX (dropped into the plugins folder), Theia framework attempts to extract the VSIX into a temporary location and runs the JavaScript code from there. A VSIX is essentially a ZIP file containing JavaScript files. If the temporary target location of the VSIX already exists, the framework will not attempt to extract it again, assuming it's already there. However, it seems that this logic has flaws. Even though the folder exists, it may be empty, possibly due to the operating system cleaning it up. This situation occurs in the temporary folder.

I will leave this issue open for visibility, but it's not a bug in the exception decoder.

dankeboy36 avatar Jul 15 '24 18:07 dankeboy36

I can confirm that deleting the temporary folder has resolved the issue.

vegasje avatar Jul 15 '24 18:07 vegasje

Hi, same problem here using W10 and Arduino IDE 2.3.3 Any idea if there is such temporary folder in W10? Thanks

hipotenusa avatar Nov 15 '24 17:11 hipotenusa

Hi @hipotenusa

Any idea if there is such temporary folder in W10?

It is here:

C:\Users\<username>\AppData\Local\Temp\vscode-unpacked

(where <username> is your Windows username)


❗ If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".


per1234 avatar Nov 16 '24 02:11 per1234

This could be a bug in the Theia version of the Arduino IDE.

This issue has been resolved in Theia, as detailed in https://github.com/eclipse-theia/theia/pull/13178. Once the Arduino IDE is updated to a more recent version of the Theia IDE framework, this problem will be addressed.

I have verified the current Theia behavior, and all is working fine. There is a new theiaDeployment folder inside the config folder, and the unpacked VSIX is not under the temp folder anymore.

Theia starts without the plugins folder:

2025-02-03T10:40:01.069Z root WARN The local plugin referenced by local-dir:/Users/kittaakos/.theia/plugins does not exist.

Creating the plugins folder and moving the VSIX:

mkdir -p ~/.theia/plugins
pwd
/Users/kittaakos/.theia/plugins
tree .
.
└── my-hello-vsix-0.0.1.vsix

1 directory, 1 file

Theia starts and deploys the VSIX:

2025-02-03T10:43:38.690Z root INFO [my-hello-vsix-0.0.1]: trying to decompress "/Users/kittaakos/.theia/plugins/my-hello-vsix-0.0.1.vsix" into "/Users/kittaakos/.theia/deployedPlugins/tmp-vscode-unpacked-tV7XZc"...
[...]
2025-02-03T10:43:38.730Z root INFO [my-hello-vsix-0.0.1]: decompressed to temp dir "/Users/kittaakos/.theia/deployedPlugins/tmp-vscode-unpacked-tV7XZc"
2025-02-03T10:43:38.730Z root INFO [my-hello-vsix-0.0.1]: renaming to extension dir "/Users/kittaakos/.theia/deployedPlugins/my-hello-vsix-0.0.1"...
2025-02-03T10:43:38.730Z root INFO root path: /Users/kittaakos/.theia/deployedPlugins/my-hello-vsix-0.0.1
[...]
2025-02-03T10:43:39.908Z root INFO [b4e243ec-546a-4eb0-8918-099ed1757f00] Loading plugin contributions
2025-02-03T10:43:39.908Z root INFO [b4e243ec-546a-4eb0-8918-099ed1757f00] Load contributions of 2 plugins: 0.1 ms [Finished 0.663 s after frontend start]
2025-02-03T10:43:39.942Z root INFO [hosted-plugin: 7606] PLUGIN_HOST(7606) starting instance
2025-02-03T10:43:39.950Z root INFO [hosted-plugin: 7606] [Object: null prototype] {}
2025-02-03T10:43:40.052Z root WARN Linked preference "workbench.colorCustomizations" not found.
2025-02-03T10:43:40.125Z root INFO [hosted-plugin: 7606] PLUGIN_HOST(7606): PluginManagerExtImpl/init()
2025-02-03T10:43:40.126Z root INFO [hosted-plugin: 7606] PLUGIN_HOST(7606): initializing([email protected] with /Users/kittaakos/dev/git/theia/examples/browser/lib/backend/plugin-vscode-init)
2025-02-03T10:43:40.131Z root INFO [hosted-plugin: 7606] PLUGIN_HOST(7606): initializing([email protected] with /Users/kittaakos/dev/git/theia/examples/browser/lib/backend/plugin-vscode-init)
2025-02-03T10:43:40.132Z root INFO [b4e243ec-546a-4eb0-8918-099ed1757f00] Starting plugins.
[...]

The deployment folder:

pwd
/Users/kittaakos/.theia/deployedPlugins
tree -L 2 . 
.
├── ms-ceintl.vscode-language-pack-de-1.96.0
│   ├── [Content_Types].xml
│   ├── extension
│   └── extension.vsixmanifest
└── my-hello-vsix-0.0.1
    ├── [Content_Types].xml
    ├── extension
    └── extension.vsixmanifest

5 directories, 4 files

kittaakos avatar Feb 03 '25 11:02 kittaakos