GVKun编程网logo

无法将 github 存储库克隆到 Windows(无法将grub)

3

如果您对无法将github存储库克隆到Windows和无法将grub感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解无法将github存储库克隆到Windows的各种细节,并对无法将grub进行

如果您对无法将 github 存储库克隆到 Windows无法将grub感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解无法将 github 存储库克隆到 Windows的各种细节,并对无法将grub进行深入的分析,此外还有关于angular-infinite-list 地址:https://github.com/a-jie/angular-infinite-list例子:无法将 github 存储库克隆到 Windows(无法将grub)

  • https://github.com/a-jie/angular-infinite-list例子:angular-infinite-list 地址:https://github.com/a-jie/angular-infinite-list例子:c#无法将’System.Windows.Forms.Label’类型的对象强制转换为’System.Windows.Forms.TextBox’
  • CMake 和 GitHub Actions - GitHub Actions 上的 CMake 库的 Windows 构建未将库链接到测试套件
  • GitHub - 无法连接到 github 443 windows/ 无法连接到 gitHub - 没有错误
  • 无法将 github 存储库克隆到 Windows(无法将grub)

    无法将 github 存储库克隆到 Windows(无法将grub)

    如何解决无法将 github 存储库克隆到 Windows

    我不久前做了一个项目。项目是在 Ubuntu Linux 上制作的。现在自从我的操作系统崩溃以来,我正在使用 Windows 操作系统。我尝试将项目从 github 克隆到我的本地计算机并运行它,但它显示**以下错误

    错误:无效路径''.next/dist/ethereum/build/:CampaignFactory.json'' 致命:无法签出工作树警告:克隆成功,但 结帐失败。您可以检查使用 ''git 签出的内容 status'' 并使用 ''git restore --source=HEAD :/''**

    重试

    https://github.com/a-jie/angular-infinite-list例子:https://github.com/a-jie/angular-infinite-list例子:

    https://github.com/a-jie/angular-infinite-list例子:angular-infinite-list 地址:https://github.com/a-jie/angular-infinite-list例子:

    Using npm:

    npm install angular-infinite-list --save
    

    Import angular Infinite list module into your app module

    import { InfiniteListModule } from ''angular-infinite-list'';
    
    @NgModule({
      imports: [
        browserModule,
        FormsModule,
        InfiniteListModule,
        ...
    

    Wrap Infinite list tag around list items

    <infinitelist
        [width]=''"100%"'' 
        [height]=''500'' 
        [data]=''data'' 
        [itemSize]=''50'' 
        (update)=''event = $event''>
            <div *ngFor="let item of event?.items; let i=index;" [ngStyle]="event.getStyle(i)">
                item{{event.start + i}} : {{item|json}}
            </div>
    </infinitelist>
    
    or directive usage
    <div infinitelist [width]=''"100%"'' ...</div>
    

    angular-infinite-list 地址:<a href="https://github.com/a-jie/angular-infinite-list">https://github.com/a-jie/angular-infinite-list</a>例子:<a href="https://a-jie.github.io/angular-infinite-l 官网

    https://github.com/a-jie/angular-infinite-list例子:https://github.com/a-jie/angular-infinite-list

    c#无法将’System.Windows.Forms.Label’类型的对象强制转换为’System.Windows.Forms.TextBox’

    c#无法将’System.Windows.Forms.Label’类型的对象强制转换为’System.Windows.Forms.TextBox’

    我无法找到解决此错误的任何内容:/我尝试将2个字母组合(例如aa,ba,cb)设置为乘数(aa * 3 = 4 * 3 ba * 2 = 3,5 * 2).
     我的代码是;

    string[] dersler = new string[9];
        double[] kredi = new double[9];
        double[] kredisonuclari = new double[9];
    
        double derscarp(double s1,double s2)
        {
            return s1 * s2;
        }
        private void button1_Click(object sender,EventArgs e)
        {
    
            int i=0;
            int j = 0;
            foreach (TextBox item in Controls)
            {
                if (item.Name.Substring(0,7)=="txtders")
                {
                    dersler[i] = Convert.ToString(item.Text);
                    i++;
                }
            }
            foreach (TextBox item in Controls)
            {
                if (item.Name.Substring(0,8) == "txtkredi")
                {
                    kredi[j] = Convert.Todouble(item.Text);
                    j++;
                }
            }
    
            double toplam =0;
            for (int k = 0; k < 9; k++)
            {

    解决方法

    foreach (TextBox item in Controls)

    控件包含一些不是文本框的控件.
    您的foreach语句告诉编译器将集合中的每个项目转换为TextBox,这将无法正常工作.

    相反,您可以调用.OfType< TextBox>(),它将返回仅包含TextBox实例的集合的已过滤子序列.

    CMake 和 GitHub Actions - GitHub Actions 上的 CMake 库的 Windows 构建未将库链接到测试套件

    CMake 和 GitHub Actions - GitHub Actions 上的 CMake 库的 Windows 构建未将库链接到测试套件

    如何解决CMake 和 GitHub Actions - GitHub Actions 上的 CMake 库的 Windows 构建未将库链接到测试套件

    我有一个在 Linux 上运行良好的开源 CMake 项目。但是,为了使其更便携,我决定添加 Windows 构建选项。为了对此进行测试,我设置了基于 GitHub Actions CMake 的应用程序,并设置了在 ubuntu-latestwindows-latestmacos-latest 上构建的条件。

    我的工作流文件如下:

    1. name: CMake
    2. on: [push]
    3. env:
    4. # Customize the CMake build type here (Release,Debug,RelWithDebInfo,etc.)
    5. BUILD_TYPE: Release
    6. jobs:
    7. build:
    8. # The CMake configure and build commands are platform agnostic and should work equally
    9. # well on Windows or Mac. You can convert this to a matrix build if you need
    10. # cross-platform coverage.
    11. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
    12. runs-on: ${{ matrix.os }}
    13. strategy:
    14. matrix:
    15. os: [ubuntu-latest,windows-latest,macos-latest]
    16. steps:
    17. - uses: actions/checkout@v2
    18. - name: Create Build Environment
    19. # Some projects don''t allow in-source building,so create a separate build directory
    20. # We''ll use this as our working directory for all subsequent commands
    21. run: cmake -E make_directory ${{github.workspace}}/build
    22. - name: Configure CMake
    23. # Use a bash shell so we can use the same Syntax for environment variable
    24. # access regardless of the host operating system
    25. shell: bash
    26. working-directory: ${{github.workspace}}/build
    27. # Note the current convention is to use the -S and -B options here to specify source
    28. # and build directories,but this is only available with CMake 3.13 and higher.
    29. # The CMake binaries on the Github Actions machines are (as of this writing) 3.12
    30. run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
    31. - name: Build
    32. working-directory: ${{github.workspace}}/build
    33. shell: bash
    34. # Execute the build. You can specify a specific target with "--target <NAME>"
    35. run: cmake --build . --config $BUILD_TYPE
    36. - name: Test
    37. working-directory: ${{github.workspace}}/build
    38. shell: bash
    39. # Execute tests defined by the CMake configuration.
    40. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
    41. run: ctest -C $BUILD_TYPE

    它非常标准并且运行良好。当我尝试在 Windows 上构建时,问题就出现了,而且只在 Windows 上构建。为了增加 Windows 的可移植性,我将它添加到我的 CMakeLists.txt:

    1. if(WIN32)
    2. set(FETCHCONTENT_BASE_DIR "C:/Users/$ENV{USERNAME}/AppData/Local/Temp")
    3. endif()

    这很好地将我获取的依赖项保留在源目录之外(CMake 会抱怨)。但是当我尝试使用 Windows 构建时,该库会构建得很好,但找不到与测试套件 (Catch2 + CTest) 的链接。

    1. Link:
    2. C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64\\link.exe /ERRORREPORT:QUEUE /OUT:"D:\\a\\libeztp\\libeztp\\build\\tests\\Release\\tests.exe" /INCREMENTAL:NO /NOlogo ..\\Release\\libeztp.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level=''asInvoker'' uiAccess=''false''" /manifest:embed /PDB:"D:/a/libeztp/libeztp/build/tests/Release/tests.pdb" /SUBSYstem:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/a/libeztp/libeztp/build/tests/Release/tests.lib" /MACHINE:X64 /machine:x64 tests.dir\\Release\\mainTest.obj
    3. LINK : Fatal error LNK1181: cannot open input file ''..\\Release\\libeztp.lib'' [D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj]
    4. Done Building Project "D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj" (default targets) -- Failed.
    5. Done Building Project "D:\\a\\libeztp\\libeztp\\build\\ALL_BUILD.vcxproj" (default targets) -- Failed.
    6. Build Failed
    7. ...
    8. D:\\a\\libeztp\\libeztp\\build\\ALL_BUILD.vcxproj" (default target) (1) ->
    9. "D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj" (default target) (5) ->
    10. (Link target) ->
    11. LINK : Fatal error LNK1181: cannot open input file ''..\\Release\\libeztp.lib'' [D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj]

    我正在拔头发,发现 this SO post 似乎有一些相关的问题。因此,对于我的 CMakeLists.txt,我将 Windows 更改为:

    1. if(WIN32)
    2. set(FETCHCONTENT_BASE_DIR "C:/Users/$ENV{USERNAME}/AppData/Local/Temp")
    3. set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE) # I did try commenting out this line,but it was the same error from before.
    4. set(BUILD_SHARED_LIBS TRUE)
    5. endif()

    现在库链接正确(或者看起来是这样),但现在它找不到一些导出的符号。

    1. Link:
    2. C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.28.29910\\bin\\HostX64\\x64\\link.exe /ERRORREPORT:QUEUE /OUT:"D:\\a\\libeztp\\libeztp\\build\\tests\\Release\\tests.exe" /INCREMENTAL:NO /NOlogo ..\\Release\\libeztp.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level=''asInvoker'' uiAccess=''false''" /manifest:embed /PDB:"D:/a/libeztp/libeztp/build/tests/Release/tests.pdb" /SUBSYstem:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/a/libeztp/libeztp/build/tests/Release/tests.lib" /MACHINE:X64 /machine:x64 tests.dir\\Release\\mainTest.obj
    3. mainTest.obj : error LNK2019: unresolved external symbol "class std::map<int,class eztp::Die,struct std::less<int>,class std::allocator<struct std::pair<int const,class eztp::Die> > > eztp::dice" (?dice@eztp@@3V?$map@HVDie@eztp@@U?$less@H@std@@V?$allocator@U?$pair@$$CBHVDie@eztp@@@std@@@4@@std@@A) referenced in function "void __cdecl ____C_A_T_C_H____T_E_S_T____0(void)" (?____C_A_T_C_H____T_E_S_T____0@@YAXXZ) [D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj]
    4. D:\\a\\libeztp\\libeztp\\build\\tests\\Release\\tests.exe : Fatal error LNK1120: 1 unresolved externals [D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj]
    5. Done Building Project "D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj" (default targets) -- Failed.
    6. Done Building Project "D:\\a\\libeztp\\libeztp\\build\\ALL_BUILD.vcxproj" (default targets) -- Failed.
    7. ...
    8. "D:\\a\\libeztp\\libeztp\\build\\ALL_BUILD.vcxproj" (default target) (1) ->
    9. "D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj" (default target) (5) ->
    10. (Link target) ->
    11. mainTest.obj : error LNK2019: unresolved external symbol "class std::map<int,class eztp::Die> > > eztp::dice" (?dice@eztp@@3V?$map@HVDie@eztp@@U?$less@H@std@@V?$allocator@U?$pair@$$CBHVDie@eztp@@@std@@@4@@std@@A) referenced in function "void __cdecl ____C_A_T_C_H____T_E_S_T____0(void)" (?____C_A_T_C_H____T_E_S_T____0@@YAXXZ) [D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj]
    12. D:\\a\\libeztp\\libeztp\\build\\tests\\Release\\tests.exe : Fatal error LNK1120: 1 unresolved externals [D:\\a\\libeztp\\libeztp\\build\\tests\\tests.vcxproj]

    此时,我已经筋疲力尽,只想结束这一切,因为我已经有一段时间没有计划在 Windows 上进行开发了。有人可以指出我正确的方向并帮助我弄清楚我错过了什么吗?此时我只是在向墙上扔东西,希望有什么东西能粘住。


    编辑:

    这里是导出符号的实现:

    dice.hpp

    1. namespace eztp {
    2. class Die {
    3. //Implementation probably irrelevant
    4. };
    5. extern std::map<int,Die> dice;
    6. }

    dice.cpp

    1. std::map<int,eztp::Die> eztp::dice = {
    2. {0,eztp::Die(0)},{1,eztp::Die(1)},{2,eztp::Die(2)},{4,eztp::Die(4)},{6,eztp::Die(6)},{8,eztp::Die(8)},{10,eztp::Die(10)},{12,eztp::Die(12)},{20,eztp::Die(20)},{100,eztp::Die(100)}
    3. };

    GitHub - 无法连接到 github 443 windows/ 无法连接到 gitHub - 没有错误

    GitHub - 无法连接到 github 443 windows/ 无法连接到 gitHub - 没有错误

    Q - 我安装了 git 来获取最新版本的 Angular。当我试图跑

    git clone https://github.com/angular/angular-phonecat.git

    我无法连接到 github 443 错误

    我什至试过

    git clone git://github.com/angular/angular-phonecat.git

    这让我无法连接没有错误消息。

    我在公司防火墙后面。我去的时候看不到我的代理详细信息control panel->Internet Options -> connections ->LAN setting。IT 人员不会与我共享代理信息。我不知道该怎么办 ??

    我终于设法做到了。我将更新我为了让它工作而采取的所有步骤只是想编译我所做的所有步骤

    答案1

    小编典典

    好吧,我做了以下步骤

    1. 谷歌错误

    2. 转到 SO Links(这里,这里) 建议同样的事情,我必须更新 Git Config 以进行代理设置

    3. 该死的,从控制面板看不到代理信息。IT人一定把它藏起来了。我什至无法将设置更改为不使用代理。

    4. 找到了这个查找您连接到哪个代理的精彩教程

    5. 通过以下命令更新http.proxygit config 中的密钥

      git config --global http.proxy http[s]://userName:password@proxyaddress:port
    6. 错误 - “无法解析代理some@proxyaddress:port”。原来我的密码@里面有一个符号。

    7. 将您的密码编码@%40,因为 git 通过 @ 分割代理设置

    8. 如果您的 userName 是一个电子邮件地址,它有@,也将其编码为%40.

       git config --global http.proxy http[s]://userName(encoded):password(encoded)@proxyaddress:port

    呸!有效!

    注意 - 我只是想为像我这样的灵魂回答这个问题,他们会来寻找答案:D

    关于无法将 github 存储库克隆到 Windows无法将grub的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于angular-infinite-list 地址:https://github.com/a-jie/angular-infinite-list例子:

    本文标签: