Sysprogs forums › Forums › VisualGDB › Referenced Libraries lost
Tagged: Library, Referenced Libraries lost, visualgdb
- This topic has 3 replies, 2 voices, and was last updated 7 years ago by
support.
-
AuthorPosts
-
June 26, 2019 at 15:12 #25206
Yonk
ParticipantHello again,
I run in to another Problem and can’t figure out how to fix. I’m still on the Arduino project.
after a while I suddenly lost all Referenced Libraries. I re added them in the Project Properties just cant get t to work again.
Output says like a hundred or even a thousand times: TF10121: The path ‘arduino:libraries’ is not found or not supported. Type or select a different path.
If i like to add an existing Library the following error message appears: VisualGDB version: 5.4.108.3212 ------------------ System.Exception ------------------ System.Exception: Arduino code model not defined at q41.d() at VisualGDB.Common_GUI.WPF.ArduinoLibrariesWindow.ControllerImpl..ctor(q41 project) at VisualGDB.Common_GUI.WPF.ArduinoLibrariesWindow..ctor(q41 project) at ji.a() at g82.a.d_2(a4 a, Object b) at m4.t2.Exec(Guid& a, UInt32 d, UInt32 b, IntPtr e, IntPtr c)
Thanks in advance for your support!
Attachments:
You must be logged in to view attached files.June 26, 2019 at 17:37 #25216support
KeymasterHi,
Arduino would normally detect the libraries automatically based on the library directories. If this is not happening, please try narrowing the problem down to a specific library:
- Ensure that your .ino file includes the correct header file.
- Ensure that the library is located in one of the library directories (i.e. global per-user library folder, or a custom folder specified via VisualGDB Project Properties -> Arduino Library Directories).
If this doesn’t help, please try reproducing the problem with the same library on a freshly created project and share the exact steps from creating the project to observing library issues.
The “‘arduino:libraries’ is not found or not supported” error looks like TFS is trying to resolve a virtual path used by VisualGDB for the “Libraries” node in Solution Explorer. It should normally not cause any side effects and can be safely ignored.
July 3, 2019 at 12:53 #25234Yonk
ParticipantIt looks like I need to put the defines of the libraries in the main.ino file. If I put it in to sub .h files I get the failure.
No idea why.
So it work if the defines are in the main.ino file
July 3, 2019 at 17:05 #25243support
KeymasterThis is by design. The Arduino build system prioritizes simplicity over flexibility and hence automatically finds libraries by scanning the main header file for missing includes and then resolving them to the libraries.
-
AuthorPosts
- You must be logged in to reply to this topic.