roy111

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • roy111
    Participant

    It worked, thanks!!!

    in reply to: VisualDGCmake with environment variable #20543
    roy111
    Participant

    Thanks! now everything works perfect.

    I modified the Remote X11 windows option  to “Shown on the remote co9mputer (Display=:0) and it works fine.

    Thanks !!!

     

    in reply to: VisualDGCmake with environment variable #20497
    roy111
    Participant

    Hi,

    Based on the above reply I moved the source from the guest Ubuntu to the host Windows. As a result I can now build, run, debug, and search for functions in the entire solution.

    When I right click the mouse and search for a function definition, then sometimes the CLang intellisense crash, but it’s not a show stopper and I can keep working while having most of the benefits of VisualGDB.

     

    After moving the source to the Windows host, for some reason the application fails to open a window (using OpenCV’s imshow(…) function).

    The window does open properly if I run the application from a command line from a console within the Ubuntu host.

    The message I get is:

    (process:3762): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback ‘C’ locale.
    (input preprocessed image:3762): Gtk-WARNING **: cannot open display:

    Any ideas? Why does the window fail to open when I run it from VisualGDB on windows but works OK when I run from a command line from within the Ubuntu ?

    Thanks!

     

    in reply to: VisualDGCmake with environment variable #20486
    roy111
    Participant

    Found something which may shed some light on the problem: Whenever I reload the CMake file into the VisualGDB project, I get an error about missing files. (See attached screen capture of the error).

    It turns out that those are files indirectly required required by an included path of a library called Eigen. Now, whenever I comment out that included library path the intellisense starts to work (searching for a function name in the entire solution still does not work). However I cannot build the project without that library.

    So, I need to comment out that include of that library in CMake in order to get intellisense, and to uncomment it in order to build and run.

    Any way to tell Intellisense to ignore a few missing files and make use of the rest ? Any other solution ? (See also the above two comments with screen shots representing the problem)

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    in reply to: VisualDGCmake with environment variable #20485
    roy111
    Participant

    In addition to the above message and screen captures, the problem may be related to a bigger issue: The search utility does not work !!! Edit->Find and replace -> Find in files (search in entire solution) does not seem to find anything outside the current open file. There seems to be a major issue with the CMake file and source files located on the Ubuntu docker machine (mounted into the docker machine from the windows host).

    in reply to: VisualDGCmake with environment variable #20482
    roy111
    Participant

    Hi,

    1. I attached two screenshots of intellisense options and CLang disgnostics console. (I blacked out names of files in order to maintain company’s propriety)
    2. I could not find the “agressive mode” checkbox.
    3. When I click Ctl+Space NOTHING happens. No popup, no icon, no intellisense lighting icon.
    4. Please note that the files structures is as follows:
      1. Windows folder with CMake root and source files are mounted into the Linux machine (I build inside a docker, but that should not be different than a regular Linux guest on top ov VBox). Build, run, stopping at break points using VisualGDB works well.
      2. The intellisense source files (.cpp and .h) are cached by VisualGDB on the host.
      3. For some reason Intellisense does not even respond to “Ctrl+Space”. 
    Attachments:
    You must be logged in to view attached files.
    in reply to: VisualDGCmake with environment variable #20468
    roy111
    Participant

    Also, in addition to the above message, I could not find the view->Default CFLAGS.

    In the VisualStudio I opened “View” –> “CLang IntelliSense Status” which opened a window called “Clang IntelliSense Diagnostics Console”, and when I click on the “Projects” I get a long list of the project’s file, where the “.cpp” files are next to a wheel icon and the “.h” files are are next to a red “X” icon (is that bad ???), but no CFLAGS are found.

    in reply to: VisualDGCmake with environment variable #20467
    roy111
    Participant

    Doesn’t work:

    1. For some reasons all my libraries which are includes in the CMake project using add_subdirectory(…) where not added to the “IntelliSense Directories”. Only after I added them explicitly into the CMake using “include_directories(…) “ IntelliSense Directories”, and I verified that the .cpp and .h files were added to the local cache (on windows), using the path indicated in the “IntelliSense Directories” screen. Note that the project builds properly using VisualGDB, run, and stop at breakpoint without adding those additional “include_directories(…) “ commands).
    2. Even after adding the “include_directories(…) “, and even thought all the .h and .cpp files are included in the local cache, autocompletion and intellisense find functionality (go to definition, go to declaration…) doen’t even try to find anything nor autocomplete the names.
    3. Even a local integer variable is not auto-completed when i try to use it just a line below where it is declared in a .cpp file.

    Any ideas ?

    in reply to: VisualDGCmake with environment variable #20459
    roy111
    Participant

    Hi,

    I managed to go around the environment problem by manually defining all the environment variables in the CMake file. The project now builds and runs well both manually (from Ubuntu console) and by using VisualGDB on Linux. I can even add break points and view their values !

    But now, the intelli-sense and auto complete do not work at all. (I verified that I’m using the correct keyboard shortcut: Ctrl+Space).

    Just a reminder: My source code is on the linux machine (mounted from the windows, but available to VisualGDB only from Linux).

    I attached an image with the VisualGDB intellisense screen.

    Thanks!

     

     

    Attachments:
    You must be logged in to view attached files.
    in reply to: VisualDGCmake with environment variable #20384
    roy111
    Participant

    Hi,

    Could not make it work.  Regarding the solution mentioned in the link found in the answer above ( http://visualgdb.com/support/fixenv/ )

    1. I could not get to the screen which warns about “Mismatching environment detected”.  I remember I’ve seen it once, but it doesn’t reappear, even if I create new project, and clean caches, reload CMake project.
    2. In the “SSH Manager” on tab “Host-wide Settings” I get an empty white text square, and not the one shown in the above link with “Extra Environments” text line and more.
    3. It is not clear to me: If I will eventually manage to get to the above message and/or text screen, should I choose the “fix” option or fill all the extra environment variables manually myself?

    Thanks!

    in reply to: How can i view content of shared pointers #12681
    roy111
    Participant

    Hi,

    Now during runtime I can view shared pointers, however I cannot view the content boost::optional .

    I do have the visualizers installed for Visual Studio 2017.

    Any ideas ?

     

    in reply to: How can i view content of shared pointers #12655
    roy111
    Participant

    Solved the problem by going to “VisualGDB ProjectProperties”, then selected “InteliSense directories” tab, and then clicked on “Reload all directories”.

    It took a while but for some reason this refresh was needed.

    Now it seems to work perfectly.

    Thanks!

    in reply to: How can i view content of shared pointers #12626
    roy111
    Participant

    It turns out that the new version (see link in message above) enables to view the content of shared pointers during runtime, but now the intellisense stopped auto completing their content.

    Any idea?

    in reply to: How can i view content of shared pointers #12617
    roy111
    Participant

    Works great – thanks !

    in reply to: Hard time with CMake imported file #12571
    roy111
    Participant

    Problem solved.

    The “advanced CMake subsystem active” was on.

    I think the solution was to upgrade the CMake on the linux (the ubuntu package installer does not keep up with the CMake versions) and to install it as a server.

    Why do I think and not sure ? Because It worked after some time of going back and forth installing, purging, etc… on the Linux machine. It seems that working under Linux has

    some inherent randomness in results …

    Anyway, very glad problem resolved, most likely will buy the VisualDGB after trial month expires.

    All that is left is to be able to view the content of std::shared_ptr using the debugger.

    Thanks !

Viewing 15 posts - 1 through 15 (of 15 total)