I am having a Strange Problem where code hints doesn't show, when the sketch is Outside the User/Documents Folder in windows, on v 2.0.1 this was not an issue, then after I updated to this version, this happens. Now I have to jump between files just to know what I am doing with.
Additionally Information is also not shown on the hints
Which version are you using now ?
Hi @atomtech . There is a known bug in Arduino IDE 2.1.0 that causes this to happen when the sketch is on a drive other than C:\
:
opened 05:19AM - 24 Apr 23 UTC
os: windows
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.pjrc.com/threads/72643-Issues-with-Arduino-IDE-2-1-and-Teensy-4-1
- https://forum.arduino.cc/t/data-item-properties-in-ide-2-1/1118282/9
### 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
The workaround is to store your sketches on your C:\
drive.
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
All my files are stored on a different drive and always have been, when will there be a fix? Restructuring and or moving my files is a PIMA. Seems like a quick fix version update is in order?
system
Closed
October 22, 2023, 4:30pm
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.