arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.07k stars 353 forks source link

when i turn it on,it still beats with the icon and does not take off the installation files,what caused the problem?? #2403

Open NaseebHelali opened 2 months ago

NaseebHelali commented 2 months ago

Describe the problem

Arduino IDE 2.2.1
Checking for frontend application configuration customizations. Module path: C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.2.1" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.34.0" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2023-08-31T14:35:44.802Z" (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.2.1","cliVersion":"0.34.0","buildDate":"2023-08-31T14:35:44.802Z"}
Starting backend process. PID: 13360
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/helali/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-03-14T10:26:46.583Z root INFO Backend Object.initialize: 6.3 ms [Finished 0.624 s after backend start]
2024-03-14T10:26:46.583Z root INFO Backend Object.configure: 5.4 ms [Finished 0.624 s after backend start]
2024-03-14T10:26:46.584Z root INFO Backend a.onStart: 2.6 ms [Finished 0.624 s after backend start]
2024-03-14T10:26:46.584Z root INFO Backend a.configure: 0.4 ms [Finished 0.656 s after backend start]
2024-03-14T10:26:46.585Z root INFO Backend u.onStart: 0.3 ms [Finished 0.656 s after backend start]
2024-03-14T10:26:46.586Z root INFO Backend d.configure: 0.1 ms [Finished 0.657 s after backend start]
2024-03-14T10:26:46.587Z root INFO Backend d.initialize: 32.3 ms [Finished 0.657 s after backend start]
2024-03-14T10:26:46.588Z root INFO Backend c.onStart: 0.3 ms [Finished 0.657 s after backend start]
2024-03-14T10:26:46.588Z root INFO Backend s.configure: 1.2 ms [Finished 0.658 s after backend start]
2024-03-14T10:26:46.590Z config INFO >>> Initializing CLI configuration...
2024-03-14T10:26:46.590Z root INFO Backend c.initialize: 0.6 ms [Finished 0.659 s after backend start]
2024-03-14T10:26:46.590Z root INFO Backend P.onStart: 1.3 ms [Finished 0.660 s after backend start]
2024-03-14T10:26:46.591Z config INFO Loading CLI configuration from c:\Users\helali\.arduinoIDE\arduino-cli.yaml...
2024-03-14T10:26:46.592Z daemon INFO Starting daemon from C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-03-14T10:26:46.592Z root INFO Backend s.initialize: 0.4 ms [Finished 0.661 s after backend start]
2024-03-14T10:26:46.592Z root INFO Backend w.onStart: 1.2 ms [Finished 0.662 s after backend start]
2024-03-14T10:26:46.592Z root INFO Backend r.configure: 2.1 ms [Finished 0.662 s after backend start]
2024-03-14T10:26:46.592Z discovery-log INFO start
2024-03-14T10:26:46.592Z discovery-log INFO start new deferred
2024-03-14T10:26:46.592Z root INFO Backend d.initialize: 0.5 ms [Finished 0.662 s after backend start]
2024-03-14T10:26:46.592Z root INFO Backend y.onStart: 2.3 ms [Finished 0.664 s after backend start]
2024-03-14T10:26:46.592Z root INFO Backend r.configure: 2.1 ms [Finished 0.665 s after backend start]
2024-03-14T10:26:46.593Z root INFO Backend s.onStart: 0.6 ms [Finished 0.666 s after backend start]
2024-03-14T10:26:46.593Z root INFO Backend h.configure: 0.5 ms [Finished 0.666 s after backend start]
2024-03-14T10:26:46.593Z root INFO Backend a.configure: 0.2 ms [Finished 0.666 s after backend start]
2024-03-14T10:26:46.593Z root INFO Backend s.configure: 0.1 ms [Finished 0.667 s after backend start]
2024-03-14T10:26:46.593Z root INFO Backend l.configure: 0.1 ms [Finished 0.667 s after backend start]
2024-03-14T10:26:46.597Z root INFO Theia app listening on http://localhost:3139.
2024-03-14T10:26:46.598Z root INFO Finished starting backend application: 4.8 ms [Finished 0.671 s after backend start]
2024-03-14T10:26:46.610Z root WARN The local plugin referenced by local-dir:/c%3A/Users/helali/.arduinoIDE/plugins does not exist.
2024-03-14T10:26:46.611Z root WARN The local plugin referenced by local-dir:/c%3A/Users/helali/.arduinoIDE/extensions does not exist.
2024-03-14T10:26:46.611Z root WARN The local plugin referenced by local-dir:C:\Users\helali\.arduinoIDE\plugins does not exist.
2024-03-14T10:26:46.650Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\helali\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\helali\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\helali\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"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-03-14T10:26:46.650Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-03-14T10:26:46.650Z config INFO Loaded the CLI configuration.
2024-03-14T10:26:46.651Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/helali/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/helali/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-03-14T10:26:46.651Z config INFO Validating the CLI configuration...
2024-03-14T10:26:46.653Z config INFO The CLI config is valid.
2024-03-14T10:26:46.654Z config INFO <<< Initialized the CLI configuration.
2024-03-14T10:26:46.671Z root INFO Resolve plugins list: 79.6 ms [Finished 0.744 s after backend start]
2024-03-14T10:26:46.686Z daemon INFO time="2024-03-14T13:26:46+03:00" level=info msg="Using config file: c:\\Users\\helali\\.arduinoIDE\\arduino-cli.yaml"
time="2024-03-14T13:26:46+03:00" level=info msg="arduino-cli.exe version 0.34.0"
time="2024-03-14T13:26:46+03:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:3140
{"IP":"127.0.0.1","Port":"3140"}
2024-03-14T10:26:46.686Z daemon INFO Daemon is running.
2024-03-14T10:26:46.722Z daemon INFO time="2024-03-14T13:26:46+03:00" level=info msg="Updating libraries index"
2024-03-14T10:26:46.730Z daemon INFO time="2024-03-14T13:26:46+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-03-14T10:26:47.875Z root INFO Deploy plugins list: 79.6 ms [Finished 1.949 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-03-14T10:26:48.531Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 285.6 ms [Finished 1.790 s after frontend start]
2024-03-14T10:26:48.540Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-03-14T10:26:49.660Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp 104.18.10.21:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2024-03-14T10:26:49.661Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\helali\AppData\Local\Arduino15\package_index.json: open C:\Users\helali\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-03-14T10:26:49.661Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Loading hardware from: C:\\Users\\helali\\AppData\\Local\\Arduino15\\packages"
time="2024-03-14T13:26:49+03:00" level=info msg="Loading libraries index file" index="C:\\Users\\helali\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-03-14T13:26:49+03:00" level=info msg="Adding libraries dir" dir="C:\\Users\\helali\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-03-14T13:26:49+03:00" level=info msg="Adding libraries dir" dir="C:\\Users\\helali\\Documents\\Arduino\\libraries" location=user
2024-03-14T10:26:49.662Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2024-03-14T10:26:49.662Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2024-03-14T10:26:49.663Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\helali\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-03-14T10:26:49.667Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\helali\AppData\Local\Arduino15\package_index.json: open C:\Users\helali\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\helali\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-03-14T10:26:49.668Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Updating libraries index"
2024-03-14T10:26:49.668Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-03-14T10:26:49.669Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-03-14T10:26:49.670Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-03-14T10:26:49.671Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-03-14T10:26:49.673Z root ERROR Failed to update platform, library indexes. Error: 13 INTERNAL: Some indexes could not be updated.
    at t.callErrorFromStatus (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:726940)
    at Object.onReceiveStatus (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:754480)
    at Object.onReceiveStatus (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:747504)
    at C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:833048
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:754247)
    at a.updateIndex (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:818456)
    at C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587141
    at C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587489
    at new Promise (<anonymous>)
    at _.doUpdateIndex (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587468)
    at _.updatePlatformIndex (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:587113)
    at _.updateIndex (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586481)
    at _.initInstanceWithFallback (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:584725)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-14T10:26:49.674Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-03-14T10:26:49.675Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Updating libraries index"
2024-03-14T10:26:49.676Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-03-14T10:26:49.677Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp 104.18.10.21:443: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
2024-03-14T10:26:49.677Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\helali\AppData\Local\Arduino15\package_index.json: open C:\Users\helali\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
2024-03-14T10:26:49.678Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
2024-03-14T10:26:49.678Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
2024-03-14T10:26:49.679Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\helali\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.
2024-03-14T10:26:49.679Z daemon INFO time="2024-03-14T13:26:49+03:00" level=info msg="Loading hardware from: C:\\Users\\helali\\AppData\\Local\\Arduino15\\packages"
time="2024-03-14T13:26:49+03:00" level=info msg="Loading libraries index file" index="C:\\Users\\helali\\AppData\\Local\\Arduino15\\library_index.json"
time="2024-03-14T13:26:49+03:00" level=info msg="Adding libraries dir" dir="C:\\Users\\helali\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-03-14T13:26:49+03:00" level=info msg="Adding libraries dir" dir="C:\\Users\\helali\\Documents\\Arduino\\libraries" location=user
2024-03-14T10:26:49.680Z root ERROR Uncaught Exception:  Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\helali\AppData\Local\Arduino15\package_index.json: open C:\Users\helali\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\helali\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-03-14T10:26:49.680Z root ERROR Error: The index of the cores and libraries must be updated before initializing the core gRPC client.
The following problems were detected during the gRPC client initialization:
[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\helali\AppData\Local\Arduino15\package_index.json: open C:\Users\helali\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found
[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found
[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\helali\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

    at C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586285
    at _.evaluateErrorStatus (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:586301)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async s.<anonymous> (C:\Users\helali\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\main.js:2:585971)

Arduino IDE version

2.2.1

Operating system

Windows

Operating system version

21H2

Issue checklist