Arduino IDE does not work with single quote in path

Hi,

I have installed github files to support Nucleo-144 use of the IDE but get an error message when trying to compile - 'C:\Users\Mike's Home PC' is not recognized as an internal or external command,
operable program or batch file.

It doesn't like the apostrophe. Does anyone know which file/library/whatever it is trying to reference and how I can change the path to something like c:\ArduinoIDE

Cheers

Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.

I assume you're using IDE 2.x and hence your topic has been moved to the dedicated IDE 2.x section of the forum. If this is incorrect, let us know and it will be moved to the appropriate section.


If you enable verbose output during compilation in file / preferences, I think that you should be able to see the full path.

Ok, thanks

I have never heard of a single quote ' in a directory path.
In most programming languages, the double quote " and single quote ' have special meaning. I assume that the Arduino IDE code can not deal with it.

When someone greets you, what does that person say ? "Hello Mike" or "Hello Mike's" ? So "Mike" is your name and not "Mike's" ? Can you change that on your computer ?

Maybe someone from the Arduino Team has the solution. But to get their attention, perhaps you can change the title of this topic to: "Arduino IDE does not work with single quote in path"

It is C:\Users\Mike's Home PC\ - damned annoying really. Such a silly thing that if I had known 2 years ago I would have called it something different.

Hi @touchwood.

Now please reply here on this forum thread with the answers to the following questions:

  • The link to where you obtained these "github files".
  • Which version of Arduino IDE are you using (e.g., "2.0.1")?
    The version is shown on the window title bar and also in the dialog that opens when you select Help > About (or Arduino IDE > About Arduino IDE for macOS users) from the Arduino IDE menus.

I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Check the box next to "Show verbose output during: > ☐ compilation" in the "Preferences" dialog.
  3. Click the "OK" button.
    The "Preferences" dialog will close.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. Wait for the compilation to fail.
  6. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  7. Paste the error messages in a reply here.
    In order to ensure the text is not corrupted, please use code fencing.