Sysprogs forums › Forums › VisualGDB › Add FastSemihosting without hardcoding users name in path?
- This topic has 7 replies, 2 voices, and was last updated 7 years, 6 months ago by support.
-
AuthorPosts
-
June 8, 2017 at 18:49 #11426SeidleroniParticipant
I am creating a project that is used on two different computers, each with a different username. When I compile the project from a different computer than the one where FastSemihosting was added, I get an error “FastSemihosting.cpp: no such file or directory” because it is looking for the users folder that was in effect when fast semihosting was added to the project. Is it possible to have VisualGDB have the files be referenced to the %APPDATA% path variable rather than a path relative to the current directory? It makes it difficult to compile the project on different users machines or with a build server.
June 9, 2017 at 05:54 #11431supportKeymasterHi,
Normally VisualGDB should use the $(LOCALAPPDATA) syntax in the Makefile. If not, can you confirm that you are using the latest VisualGDB 5.2r9?
June 9, 2017 at 13:41 #11434SeidleroniParticipantYes I am using the latest version, and I’m using msbuild, not makefiles. If I click on the fastsemihosting files in visual studio, it shows the paths as relative to the project, not the localappdata. Please let me know if there is a way to fix this.
June 9, 2017 at 18:59 #11438supportKeymasterHi,
This is a known issue. The automation interfaces used by Visual Studio do not support specifying paths like $(LOCALAPPDATA), so VisualGDB has to hardcode the path in the project file. Normally if you open the file on a different machine with a different user name, VisualGDB should automatically adjust the references (this may sometimes not work if the project and the $(LOCALAPPDATA) directory are located under the same drive letter).
June 12, 2017 at 15:59 #11457SeidleroniParticipantUnfortunately on the machines I’m using, the drive letters are the same and I am running into this issue. Is it likely that this will be fixed with the next release or should I just go ahead and copy the fast semihosting files into my project?
June 13, 2017 at 02:33 #11462supportKeymasterHi,
As a part of a workaround to a different VS bug, we have experimented with editing the .vcxproj files directly instead of using the VS APIs. This mechanism seems to work, although it is not 100% stable yet. If you are interested to try it out, we could send you a preliminary build with this feature in the next 1-2 weeks.
June 14, 2017 at 15:22 #11480SeidleroniParticipantWill this feature be available as part of 5.3? I really love VisualGDB, but not having this feature work makes it difficult to work with multiple developers as well as using a build server.
June 15, 2017 at 00:22 #11483supportKeymasterHi,
We will include it in v5.3 if it proves stable enough. The drawback of the new mechanism is that it unloads the VS project, edits it and then reloads it back, that might cause unforeseen side effects. We will definitely include this in either the first or the second v5.3 preview and decide whether to include it in the final build based on the feedback we get.
-
AuthorPosts
- You must be logged in to reply to this topic.