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

Shift+Cmnd+P does not find the decode #22

Open
matsekberg opened this issue Jul 1, 2024 · 7 comments
Open

Shift+Cmnd+P does not find the decode #22

matsekberg opened this issue Jul 1, 2024 · 7 comments

Comments

@matsekberg
Copy link

Installed on a Mac as per instructions.

@vegasje
Copy link

vegasje commented Jul 10, 2024

I am having the same issue.

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

@dankeboy36
Copy link
Owner

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.

@vegasje
Copy link

vegasje commented Jul 15, 2024

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]
...

@dankeboy36
Copy link
Owner

dankeboy36 commented Jul 15, 2024

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.

@vegasje
Copy link

vegasje commented Jul 15, 2024

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

@hipotenusa
Copy link

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

@per1234
Copy link
Collaborator

per1234 commented Nov 16, 2024

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".


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

No branches or pull requests

5 participants