Hello,
I have noticed, in the Arduino IDE 2.1.1 (but can also affect earlier versions) if you dwell with the mouse briefly on a variable, function or the like, various info etc. are displayed. I have no question about this either.
I only noticed that if the sketch folder is not under C:\Users\xxxxxx\Documents\Arduino\ this function is missing.
Is there a workaround for this?
Does the F12 keypress work ?
Hello UKHeliBob,
F12 works with sketches in Path C:\Users\xxxxxx\Documents\Arduino
but it dont work in a other path.
The conditions for the fault to occur is when the sketch is on a drive other than C:\
, rather than anywhere outside the Arduino
folder.
This is a known bug:
opened 05:19AM - 24 Apr 23 UTC
closed 09:40AM - 02 May 23 UTC
os: windows
conclusion: resolved
topic: code
type: imperfection
### Describe the problem
Under the following conditions:
- A custom build … path is set via the `--build-path` flag.
- The build path is on a different drive from the sketch.
compilation fails:
```text
Error during build: Cannot find build path: Rel: can't make C:\Users\per\AppData\Local\Temp\build-path relative to E:\FooSketch
```
### To reproduce
```text
$ arduino-cli version
arduino-cli.exe Version: git-snapshot Commit: 2c2a5cc6 Date: 2023-04-24T05:04:04Z
$ arduino-cli sketch new "e:/FooSketch"
Sketch created in: e:\FooSketch
$ arduino-cli compile --build-path "c:/Users/per/AppData/Local/Temp/build-path" --fqbn arduino:avr:uno "e:/FooSketch"
Error during build: Cannot find build path: Rel: can't make c:\Users\per\AppData\Local\Temp\build-path relative to E:\FooSketch
```
### Expected behavior
Compilation is possible when custom build path is on a different drive from sketch.
### Arduino CLI version
2c2a5cc6
### Operating system
Windows
### Operating system version
11
### Additional context
I bisected the regression to 78bfa744dc0fbdd04d385e56545027e824a3102f
---
I was not able to reproduce the fault on Linux or macOS
---
The fault does not occur when `--build-path` is not used in the command even when that command uses a default build path on a different drive from the sketch.
---
The fault also occurs when using the gRPC interface.
---
Although the use of `--build-path` in command line commands is probably not so common, custom build paths are used for the compile operations ran by Arduino IDE 2.x to generate the compilation database for Arduino Language Server, which makes the regression more impactful.
---
Originally reported at: https://forum.arduino.cc/t/data-item-properties-in-ide-2-1/1118282
#### Additional reports
- https://forum.arduino.cc/t/data-item-properties-in-ide-2-1/1118282/9
- https://forum.pjrc.com/threads/72643-Issues-with-Arduino-IDE-2-1-and-Teensy-4-1#post_324742
- https://forum.arduino.cc/t/code-hints-missing/1119231
- https://forum.arduino.cc/t/upgrading-2-0-3-to-2-1-0-function-f12-and-alt-f12-not-present-on-menu/1118731
- https://forum.arduino.cc/t/f12-qui-ne-fonctionne-pas/1119169/1
- https://forum.arduino.cc/t/f12-qui-ne-fonctionne-pas/1119169/6
- https://forum.arduino.cc/t/code-hints-missing/1119231/4
- https://github.com/arduino/arduino-ide/issues/2034
- https://forum.arduino.cc/t/auto-completion-not-working-on-arduino-2-1/1120524
- https://forum.arduino.cc/t/hover-tips-context-help-depend-on-sketch-location/1124524
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-cli/issues?q=)
- [X] I verified the problem still occurs when using the [nightly build](https://arduino.github.io/arduino-cli/dev/installation/#nightly-builds)
- [X] My report contains all necessary details
That bug has already been fixed, but there hasn't been a new release of Arduino IDE 2.x since the time of the fix so users of Arduino IDE 2.1.1 are still affected.
The simple workaround for the bug is to store your sketches under your C:\
drive. If that is not convenient to you, you can use the nightly build of Arduino IDE, which does contain the fix. The nightly build download links are listed here:
https://www.arduino.cc/en/software#nightly-builds
Thank you very much for the info
You are welcome. I'm glad if I was able to be of assistance.
Regards,
Per
system
Closed
January 21, 2024, 8:36pm
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.