JulianH93

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: VisualGDB is hanging #24455
    JulianH93
    Participant

    I’m using this https://nopaste.xyz/?76f04193b9c86ebd#QrzWidqOpbeaEvvSisiSklCik0e5L3PPfsf1WnEPUBw= timer implementation. Set the timer interval small enought (~5ms) will make Visual Studio hanging after a few seconds.

     

    But I understand that it’s a implementaion thing and you can’t simply hotfix it.

     

    Thank you for the reply.

    • This reply was modified 5 years, 8 months ago by JulianH93.
    in reply to: VisualGDB is hanging #24374
    JulianH93
    Participant

    I was generating a new thread each few milliseconds. Doing this task synchronous solved the problem for me.

     

    But I think it’s still a bug.

    in reply to: VisualGDB is hanging #24371
    JulianH93
    Participant

    The CPU usage of Visua Studio in the hanging state is relativly high ~50%.

    The CPU usage of the program executing on the target maschine (while Visual Studio hangs) of gdb is ~50% too, the usage of my program launched from the command line on the target maschine is ~20%.

     

     

    I guess gdb is doing some weird shit and so in a chained way VisualGDB too.

    • This reply was modified 5 years, 8 months ago by JulianH93.
    • This reply was modified 5 years, 8 months ago by JulianH93.
    in reply to: Fixing Intellisense #22310
    JulianH93
    Participant

    I replaced each gnu++17 which I could find with notepad++ with gnu++1z – now it’s working. I don’t understnad where VisualGDB took the flags from…

     

    But I am really happy now, thanks.

    in reply to: Fixing Intellisense #22304
    JulianH93
    Participant

    For instance in this code

    std::atomic<bool> done{false};

    { get redly unerlined with the error message: [Clang IntelliSense] Error: expected ‘;’ after top level declarator

     

    PS. And may be the not found header error flew away cause I replaced the std::filesystem with boost::filesystem dependencies .

    • This reply was modified 6 years, 1 month ago by JulianH93.
    in reply to: Fixing Intellisense #22302
    JulianH93
    Participant

    No, this is working, if I make a new project, vector gets found.

    Vector also gets found in my problem solution. Thats not the problem (anymore?), the problem always was, the redly underlined code, which should be redly underlined. And I still don’t know which part of code is causing the red underlining.

    I found a error message in the IntelliSense-Error log:

    Schweregrad Code Beschreibung Projekt Datei Zeile
    Fehler [Clang IntelliSense] Error: invalid value ‘gnu++17’ in ‘-std=gnu++17’

    • This reply was modified 6 years, 1 month ago by JulianH93.
    in reply to: Fixing Intellisense #22283
    JulianH93
    Participant

    The error is still remaining.

    in reply to: Fixing Intellisense #22262
    JulianH93
    Participant

    No, I am using the native one and activating C Lang intellisense does not fix it. In the beginning VisualGDB always complained that something is missing, those errors are gone (I don’t know why and since when). Is there a ways to completly reinitialize VisualGDBs IntelliSense?

    Do you support by remote access? So I could give you access to the devolpment maschine…

    Greets.

    • This reply was modified 6 years, 1 month ago by JulianH93.
    in reply to: Fixing Intellisense #21992
    JulianH93
    Participant

    vector on Windows maschine is in: \VisualGDB\RemoteSourceCache\192.168.0.138\0000\include\c++\8\vector

    vector on Linux maschine is in: /usr/include/c++/8/profile/vector

    And here is the IntelliSense Directory:

    right click on vector and try to open it:

    It says: “vector couldnt’t be found in the actual source directory or in the build system path. Actual source path: “source to the root path of my project” Buildsystempath is empty.

    • This reply was modified 6 years, 2 months ago by JulianH93.
    • This reply was modified 6 years, 2 months ago by JulianH93.
    in reply to: Fixing Intellisense #21975
    JulianH93
    Participant

    Now I replaced std::filesystem by boost::filesystem, but the errors are still there. Intellisense even can’t find #include <vector> in the stdafx.h (it’s the upper most header included, no more code before #include <vector>). In the meantime I switched my maschine, but the error still exists.

    “stdafx.h”:
    #pragma once

    #include <vector>
    #include <string>
    #include <cstdint>
    #include <memory>
    #include <iostream>
    #include <mutex>
    #include <thread>
    #include <iomanip>
    #include <atomic>
    #include <ctime>
    #include <queue>
    #include <ctime>
    #include <cstdio>
    #include <unordered_map>
    #include <chrono>
    #include <fstream>
    #include <utility>
    #include <optional>
    #include <boost/filesystem.hpp>
    #include <boost/asio.hpp>
    #include <boost/algorithm/string.hpp>
    #include <boost/program_options.hpp>
    #include <assert.h>
    #include <string.h>
    #include <unistd.h>
    #include <linux/can.h>
    #include <linux/can/raw.h>
    #include <signal.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <sys/ioctl.h>
    #include <net/if.h>

    • This reply was modified 6 years, 2 months ago by JulianH93.
    in reply to: Fixing Intellisense #21761
    JulianH93
    Participant

    Now the __cplusplus values are set correctly, but nothing changed. Intellisense is still not working correctly.

    in reply to: Fixing Intellisense #21701
    JulianH93
    Participant

    No, __cplusplus value does not hit my expecations.

    The highest I could find are:

    … <ItemGroup>
     <ClCompile Condition="'%(ClCompile.CPPLanguageStandard)' == 'CPP1Z'">
     <PreprocessorDefinitions>%(ClCompile.PreprocessorDefinitions);__cpp_attributes=200809;__cpp_aggregate_nsdmi=201304;__cpp_static_assert=200410;__cpp_variadic_templates=200704;__cpp_variable_templates=201304;__GXX_EXPERIMENTAL_CXX0X__=1;__cpp_delegating_constructors=200604;__STDC_UTF_16__=1;__cpp_raw_strings=200710;__STRICT_ANSI__=1;__cplusplus=201500L;__cpp_ref_qualifiers=200710;__cpp_rvalue_reference=200610;__cpp_nsdmi=200809;__cpp_initializer_lists=200806;__cpp_lambdas=200907;__cpp_unicode_characters=200704;__cpp_decltype_auto=201304;__cpp_digit_separators=201309;__cpp_unicode_literals=200710;__cpp_sized_deallocation=201309;__cpp_range_based_for=200907;__cpp_return_type_deduction=201304;__cpp_decltype=200707;__cpp_inheriting_constructors=200802;__GNUC_STDC_INLINE__=1;__STDC_UTF_32__=1;__cpp_alias_templates=200704;__cpp_constexpr=201304;__cpp_generic_lambdas=201304;__cpp_user_defined_literals=200809;__cpp_init_captures=201304</PreprocessorDefinitions>
     </ClCompile>
     </ItemGroup>
    
     <ItemGroup>
     <ClCompile Condition="'%(ClCompile.CPPLanguageStandard)' == 'GNUPP1Z'">
     <PreprocessorDefinitions>%(ClCompile.PreprocessorDefinitions);__cpp_attributes=200809;__cpp_aggregate_nsdmi=201304;__cpp_static_assert=200410;__cpp_variadic_templates=200704;__cpp_variable_templates=201304;__GXX_EXPERIMENTAL_CXX0X__=1;__cpp_delegating_constructors=200604;__STDC_UTF_16__=1;__cpp_raw_strings=200710;__cplusplus=201500L;__cpp_ref_qualifiers=200710;__cpp_rvalue_reference=200610;__cpp_nsdmi=200809;__cpp_initializer_lists=200806;__cpp_lambdas=200907;__cpp_unicode_characters=200704;__cpp_decltype_auto=201304;unix=1;__cpp_digit_separators=201309;__GLIBCXX_BITSIZE_INT_N_0=128;__cpp_unicode_literals=200710;__cpp_sized_deallocation=201309;linux=1;__cpp_range_based_for=200907;__cpp_return_type_deduction=201304;__cpp_decltype=200707;__cpp_inheriting_constructors=200802;__GNUC_STDC_INLINE__=1;__STDC_UTF_32__=1;__cpp_alias_templates=200704;__cpp_constexpr=201304;__GLIBCXX_TYPE_INT_N_0=__int128;__cpp_generic_lambdas=201304;__cpp_user_defined_literals=200809;__cpp_init_captures=201304</PreprocessorDefinitions>
     </ClCompile>
     </ItemGroup>
    
    I created the project before I installed the GCC 8.2 Toolchain on the target machine. Maybe I somehow have to reconfigure the VisualGDB settings?
    • This reply was modified 6 years, 3 months ago by JulianH93.
    • This reply was modified 6 years, 3 months ago by JulianH93.
    • This reply was modified 6 years, 3 months ago by JulianH93.
    in reply to: Fixing Intellisense #21662
    JulianH93
    Participant

    I don’t really know how I may capture the whole error in one image. So here are some pictures.

    Where I suspect the error is in the filesystem-header, cause Intellisense isn’t parsing the header correctly:

    I estimate after I included this header, Intellisense bugged up:

    stdafx.h:

    The cpp file:

    IntelliSense Settings:

    • This reply was modified 6 years, 3 months ago by JulianH93.
Viewing 13 posts - 1 through 13 (of 13 total)