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

Double clicking any .ino file won't open IDE window #2209

Closed
3 tasks done
pacastro opened this issue Aug 31, 2023 · 4 comments · Fixed by #2288
Closed
3 tasks done

Double clicking any .ino file won't open IDE window #2209

pacastro opened this issue Aug 31, 2023 · 4 comments · Fixed by #2288
Assignees
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@pacastro
Copy link

pacastro commented Aug 31, 2023

Describe the problem

After upgrading from IDE 2.1.1 to 2.2.1, double clicking on any .ino file won't open IDE window anymore. Arduino IDE icon appears on the bottom dock, so it seems to be running but no IDE window with the .ino file open appears.

Opening Arduino IDE app directly from launchpad works OK, and it opens the last .ino file on the IDE window. Once you have the IDE window opened this way, further double clicking any .ino file works OK and opens a new IDE window.

The problem exists when no IDE window is previously opened, then double clicking any .ino file won't open an IDE window.

To reproduce

With no previous instance of IDE2.2.1 running, double click on any .ino file. No IDE window opens.

Expected behavior

With no previous instance of IDE2.2.1 running, after double clicking any .ino file an IDE window should open with the file clicked opened in it.

Arduino IDE version

2.2.1

Operating system

macOS

Operating system version

Ventura 13.4

Additional context

arduino-ide_2.2.1_macOS_arm64

Additional reports

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@pacastro pacastro added the type: imperfection Perceived defect in any part of project label Aug 31, 2023
@per1234 per1234 self-assigned this Aug 31, 2023
@per1234
Copy link
Contributor

per1234 commented Aug 31, 2023

Hi @pacastro. Thanks for your report. Arduino IDE automatically generates log files while it is running. I'm going to ask you to provide the latest log file from your computer. It might contain information that will help us to identify the problem.

Please do this:

  1. Attempt to open a .ino file in Arduino IDE, just as you did before.
  2. Wait some time to be sure any activity by the triggered non-functional Arduino IDE process has finished.
  3. Open the issue page here on GitHub:
    Double clicking any .ino file won't open IDE window #2209 (comment)
  4. Click the "Attach files by dragging & dropping, selecting or pasting them" at the bottom of the "Leave a comment" field.
  5. Select the latest .log file from this folder (the files are named according to the date):
    /Users/<username>/Library/Logs/Arduino IDE/
    
    (where <username> is your macOS username)
  6. Click the "Open" button to attach the file to the comment.
  7. You will now see an "Uploading your files... (1/1)" status indicator at the bottom of the "Leave a comment" field. Wait until that disappears.
  8. Click the "Comment" button to publish the comment.

Please let me know if you have any questions or problems while following those instructions.

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Aug 31, 2023
@per1234 per1234 changed the title macOS Arduino IDE2.2.1 double clicking any .ino file won't open IDE window Double clicking any .ino file won't open IDE window Aug 31, 2023
@per1234 per1234 added the topic: code Related to content of the project itself label Aug 31, 2023
@pacastro
Copy link
Author

2023-08-31_log.log

@per1234 per1234 removed the status: waiting for information More information must be provided before work can proceed label Sep 28, 2023
@per1234
Copy link
Contributor

per1234 commented Sep 28, 2023

Thanks @pacastro. I am able to reproduce the fault on my macOS machine.

I'll provide my own logs that were generated from starting the IDE by double clicking the .ino file of a valid sketch:

2023-09-27_log.log

They will be easier to read through because they only contain the content from a single launch (rather than the accumulation of content from previous sessions as the logs usually contain). I don't see any "smoking gun" in the logs.

The fault does not occur if I start the IDE from the terminal, passing the path to the .ino file as a command line argument.

@ulrichloose
Copy link

ulrichloose commented Oct 15, 2023

The same on MacOS:

Since 2.1.1, double clicking on a .ino file opens the IDE but not the .ino file itself. If the IDE is already running, then a double click on a .ino file opens. In version 2.1.1 the IDE starts AND opens the double clicked .ino file.

in the log file:

2023-10-15 15:26:52 (node:5278) UnhandledPromiseRejectionWarning: Error: You have to start the application first.
    at get config [as config] (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js:2:1000475)
    at M.getDefaultOptions (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js:2:1002914)
    at M.getDefaultOptions (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js:2:65675)
    at M.getLastWindowOptions (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js:2:1002598)
    at M.openSketch (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js:2:63572)
    at App.<anonymous> (/Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js:2:62395)
(Use `Arduino IDE --trace-warnings ...` to show where the warning was created)

@kittaakos kittaakos assigned kittaakos and unassigned per1234 Nov 20, 2023
kittaakos pushed a commit that referenced this issue Jan 15, 2024
Use a fallback frontend app config when starting IDE2 from an ino file
(from Explorer, Finder, etc.) and the app config is not yet set.

Closes #2209

Signed-off-by: Akos Kitta <[email protected]>
@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants