hello,
I want to start IDE 2.0 with sketch that I double click(It opens with old sketch whatever sketch I try). How do I set IDE ?
in0
August 20, 2021, 11:17pm
2
Hi @bogdan546 . There is no support for file associations in Arduino IDE 2.x at the moment. This deficiency is being tracked here:
opened 12:39PM - 11 Jan 21 UTC
closed 03:39PM - 23 Feb 22 UTC
conclusion: resolved
topic: code
os: macos
type: imperfection
criticality: high
**Describe the bug**
On macOS it is not possible to open a file directly from t… he Finder.
This possible with the classic Arduino IDE.
On double click or right click / open with... starts the Pro IDE but not with right file
**To Reproduce**
Steps to reproduce the behavior:
1. Go to Finder
2. Open a folder with an .ino file inside
3. Double click for opening
4. IDE opens but not with the file you clicked
**Expected behavior**
It should possible to open an .ino file directly from the Finder, like on Classic IDE.
Also with a message when there is no right folder -> auto create a folder
**Desktop (please complete the following information):**
- OS: macOS 10.15.7
- Version: Alpha 0.1.3
(the reporting user was on macOS, but it also affects other operating systems)
There is a proposed fix, but it has not yet been accepted. If you are up to compiling the IDE from source, you could try applying the patch to see how it works:
arduino:main
← arduino:atl-372--file-association
opened 12:19PM - 31 Mar 21 UTC
### Motivation
We want to add 2 functionalities to the ide
- associate a file … type (namely, `.ino` files)
- allow the drag and drop of a file over the icon (macOS only) and open the relevant files
### Change description
DRAFT: the following changes are just a proposal;
- file association is done via electronBuilder + `template-package.json` configuration
- files to be opened are handled in `electron-main-applicatoin.ts`
### Additional Notes
See comments in the attached [Jira Task](https://arduino.atlassian.net/browse/ATL-372)
### Reviewer checklist
* [ ] PR address a single concern.
* [ ] PR title and description are properly filled.
* [ ] History is clean, commit messages are meaningful.
Thanks , I returned to IDE 1.8.15
system
Closed
December 19, 2021, 4:24am
4
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.