IDE 2.0.1, on Windows 10, will not open a second file from a shortcut

Title states most of the issue. To reproduce, create shortcuts (mine are placed on my Desktop) to two different .ino files (in two different directories) and double-click one to open. Works as expected.
Then double-click the second. I get a brief hourglass, then nothing. I can use File->Open and navigate to the other file, select it, and it opens in a new window.
This behavior is unexpected and counter-intuitive.

  • Wes

Hi @weshowe. This is a known bug:

It was fixed last week. Please give the nightly build of Arduino IDE a try and let us know whether the problem still occurs:

https://www.arduino.cc/en/software/#nightly-builds

Thanks! I just figure I'll report them and if it's a known issue nothing was lost confirming it exists on yet another machine.
I am pretty busy lately USING 2.0.1 to make cool stuff, so I often don't go outside my box and happen on new oddities. I use 2.0.1 exclusively, and I have not yet found a show-stopper, code generates 100%, just a few quirks, and if they are on the list, that is good enough.
Lately, everything I know of has a workaround... sometimes as simple as restarting the program. I know for some that is a big time sink, but it happens pretty fast on my little Dell.

  • Wes

p.s. Maybe you know this. I made an array like:

#define MAX_CHANNELS 16
AudioEffectFade *Fades[MAX_CHANNELS]={&fade1, &fade2, &fade3, &fade4, &fade5, &fade6, &fade7, &fade8,
            &fade9, &fade10, &fade11, &fade12, &fade13, &fade14, &fade15};

Fade1 through fade15 are instances of AudioEffectFade (a Teensy Audio method). You will note the array is defined as 16 pointers, but only 15 have been supplied.
I seem to remember compilers warning me there were fewer initializers than array elements before, but with warnings set to max in preferences nothing was seen.
Is that an issue or due to my own ignorance on how to get strict compilation? That omission error was there for quite a while until I actually tried to use the last element, which rebooted the system (address 0). I know I could be better and not make mistakes... but then maybe not, the last guy that was flawless was not treated well.

  • Wes

Second Item:

I was going to download and test a previous build re: the Serial Port lockouts. I managed to get to a file on Arduino's support site somewhere (I have no github) and what I got from a nightly was a .zip file. I general, I know what zip files are for (since the late 1980s).

But I am not sure how you install a huge program with one. Or is there an installer inside the .zip (I admit, I didn't look). Can I run it in parallel with the release of 2.0.1 or will it overwrite the release version???

  • Wes

That is always welcome here. Your feedback has been very helpful to the development of the Arduino IDE 2.x project.

I get around in Arduino/C++ language, but I'm far from an expert so one of the other forum members can probably give a better answer to this question (it would probably be best to make a dedicated topic about it in the "Programming Questions" forum category).

I gave a minimal sketch a try:

int foo[2] = { 1 };
void setup() {}
void loop() {}

Even when compiling with -Wall -Wextra -Wpedantic, I still don't get a "too few initializers" type of warning about this code.

From a quick browse of Stack Overflow, it doesn't look like there is such a warning

No installation is needed. Just unzip the downloaded file to any convenient location and then run the executable that is in the unzipped folder (i.e., Arduino IDE.exe).

You can have and use as many of the ZIP packaged versions of Arduino IDE on your computer as you like. When you use the installer, it does overwrite the previous installation, but with the ZIP package, there is no effect on the other installations. I currently have about 200 installations of Arduino IDE on my computer, and am constantly jumping from one to another for my beta testing and support work.

I downloaded the 20221114 and used it per your instruction... worked like a charm.
I am easily able to open multiple files from shortcuts (on windows 10), including a second copy of the same sketch.
That is the behavior that I would expect of the program. Devs aced this class. :slight_smile:

  • Wes

I'm glad it is working now. Thanks for taking the time to report your results.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.