rodydavis / vscode-router-generator

VSCode extension to generate a router based on file based routing and nested layouts
https://marketplace.visualstudio.com/items?itemName=rodydavis.router-generator
Apache License 2.0
9 stars 0 forks source link

Unable to clone the repository #1

Closed TahaTesser closed 2 years ago

TahaTesser commented 2 years ago

When trying to clone this repo, something goes wrong.

git clone git@github.com:rodydavis/vscode-router-generator.git or gh repo clone rodydavis/vscode-router-generator

PS C:\Users\Taha\StudioProjects> git clone git@github.com:rodydavis/vscode-router-generator.git
Cloning into 'vscode-router-generator'...
remote: Enumerating objects: 9567, done.
remote: Counting objects: 100% (9567/9567), done.
remote: Compressing objects: 100% (7066/7066), done.
remote: Total 9567 (delta 2082), reused 9540 (delta 2063), pack-reused 0 eceiving objects: 100% (9567/9567), 20.43 MiB |Receiving objects: 100% (9567/9567), 21.85 MiB | 1.46 MiB/s, done.

Resolving deltas: 100% (2082/2082), done.
error: invalid path 'examples/flutter/lib/pages/about/:id.dart'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

When I execute git status

git status ```console PS C:\Users\Taha\StudioProjects\vscode-router-generator> git status On branch main Your branch is up to date with 'origin/main'. Changes to be committed: (use "git restore --staged ..." to unstage) deleted: .eslintrc.json deleted: .gitignore deleted: .vscode/extensions.json deleted: .vscode/launch.json deleted: .vscode/settings.json deleted: .vscode/tasks.json deleted: .vscodeignore deleted: CHANGELOG.md deleted: LICENSE deleted: README.md deleted: examples/flutter/.gitignore deleted: examples/flutter/.gitmodules deleted: examples/flutter/.metadata deleted: examples/flutter/CONTRIBUTING.md deleted: examples/flutter/LICENSE deleted: examples/flutter/analysis_options.yaml deleted: examples/flutter/android/.gitignore deleted: examples/flutter/android/app/build.gradle deleted: examples/flutter/android/app/src/debug/AndroidManifest.xml deleted: examples/flutter/android/app/src/main/AndroidManifest.xml deleted: examples/flutter/android/app/src/main/kotlin/com/example/flutter_file_based_routing/MainActivity.kt deleted: examples/flutter/android/app/src/main/res/drawable-v21/launch_background.xml deleted: examples/flutter/android/app/src/main/res/drawable/launch_background.xml deleted: examples/flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted: examples/flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted: examples/flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted: examples/flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted: examples/flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted: examples/flutter/android/app/src/main/res/values-night/styles.xml deleted: examples/flutter/android/app/src/main/res/values/styles.xml deleted: examples/flutter/android/app/src/profile/AndroidManifest.xml deleted: examples/flutter/android/build.gradle deleted: examples/flutter/android/gradle.properties deleted: examples/flutter/android/gradle/wrapper/gradle-wrapper.properties deleted: examples/flutter/android/settings.gradle deleted: examples/flutter/ios/.gitignore deleted: examples/flutter/ios/Flutter/AppFrameworkInfo.plist deleted: examples/flutter/ios/Flutter/Debug.xcconfig deleted: examples/flutter/ios/Flutter/Release.xcconfig deleted: examples/flutter/ios/Runner.xcodeproj/project.pbxproj deleted: examples/flutter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted: examples/flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted: examples/flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted: examples/flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted: examples/flutter/ios/Runner.xcworkspace/contents.xcworkspacedata deleted: examples/flutter/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted: examples/flutter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted: examples/flutter/ios/Runner/AppDelegate.swift deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json deleted: examples/flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png deleted: examples/flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png deleted: examples/flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md deleted: examples/flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard deleted: examples/flutter/ios/Runner/Base.lproj/Main.storyboard deleted: examples/flutter/ios/Runner/Info.plist deleted: examples/flutter/ios/Runner/Runner-Bridging-Header.h deleted: examples/flutter/lib/main.dart deleted: examples/flutter/lib/pages/about.dart deleted: examples/flutter/lib/pages/about/:id.dart deleted: examples/flutter/lib/pages/about/guest.dart deleted: examples/flutter/lib/pages/about/index.dart deleted: examples/flutter/lib/pages/index.dart deleted: examples/flutter/lib/pages/root.dart deleted: examples/flutter/lib/pages/settings.dart deleted: examples/flutter/lib/router.dart deleted: examples/flutter/linux/.gitignore deleted: examples/flutter/linux/CMakeLists.txt deleted: examples/flutter/linux/flutter/CMakeLists.txt deleted: examples/flutter/linux/flutter/generated_plugin_registrant.cc deleted: examples/flutter/linux/flutter/generated_plugin_registrant.h deleted: examples/flutter/linux/flutter/generated_plugins.cmake deleted: examples/flutter/linux/main.cc deleted: examples/flutter/linux/my_application.cc deleted: examples/flutter/linux/my_application.h deleted: examples/flutter/macos/.gitignore deleted: examples/flutter/macos/Flutter/Flutter-Debug.xcconfig deleted: examples/flutter/macos/Flutter/Flutter-Release.xcconfig deleted: examples/flutter/macos/Flutter/GeneratedPluginRegistrant.swift deleted: examples/flutter/macos/Runner.xcodeproj/project.pbxproj deleted: examples/flutter/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted: examples/flutter/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme deleted: examples/flutter/macos/Runner.xcworkspace/contents.xcworkspacedata deleted: examples/flutter/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted: examples/flutter/macos/Runner/AppDelegate.swift deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png deleted: examples/flutter/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png deleted: examples/flutter/macos/Runner/Base.lproj/MainMenu.xib deleted: examples/flutter/macos/Runner/Configs/AppInfo.xcconfig deleted: examples/flutter/macos/Runner/Configs/Debug.xcconfig deleted: examples/flutter/macos/Runner/Configs/Release.xcconfig deleted: examples/flutter/macos/Runner/Configs/Warnings.xcconfig deleted: examples/flutter/macos/Runner/DebugProfile.entitlements deleted: examples/flutter/macos/Runner/Info.plist deleted: examples/flutter/macos/Runner/MainFlutterWindow.swift deleted: examples/flutter/macos/Runner/Release.entitlements deleted: examples/flutter/pubspec.lock deleted: examples/flutter/pubspec.yaml deleted: examples/flutter/routes.json deleted: examples/flutter/web/favicon.png deleted: examples/flutter/web/icons/Icon-192.png deleted: examples/flutter/web/icons/Icon-512.png deleted: examples/flutter/web/icons/Icon-maskable-192.png deleted: examples/flutter/web/icons/Icon-maskable-512.png deleted: examples/flutter/web/index.html deleted: examples/flutter/web/manifest.json deleted: examples/flutter/windows/.gitignore deleted: examples/flutter/windows/CMakeLists.txt deleted: examples/flutter/windows/flutter/CMakeLists.txt deleted: examples/flutter/windows/flutter/generated_plugin_registrant.cc deleted: examples/flutter/windows/flutter/generated_plugin_registrant.h deleted: examples/flutter/windows/flutter/generated_plugins.cmake deleted: examples/flutter/windows/runner/CMakeLists.txt deleted: examples/flutter/windows/runner/Runner.rc deleted: examples/flutter/windows/runner/flutter_window.cpp deleted: examples/flutter/windows/runner/flutter_window.h deleted: examples/flutter/windows/runner/main.cpp deleted: examples/flutter/windows/runner/resource.h deleted: examples/flutter/windows/runner/resources/app_icon.ico deleted: examples/flutter/windows/runner/runner.exe.manifest deleted: examples/flutter/windows/runner/utils.cpp deleted: examples/flutter/windows/runner/utils.h deleted: examples/flutter/windows/runner/win32_window.cpp deleted: examples/flutter/windows/runner/win32_window.h deleted: examples/lit/.gitignore deleted: examples/lit/LICENSE deleted: examples/lit/index.html deleted: examples/lit/package-lock.json deleted: examples/lit/package.json deleted: examples/lit/routes.json deleted: examples/lit/src/classes/user.ts deleted: examples/lit/src/components/menu-button.ts deleted: examples/lit/src/favicon.svg deleted: examples/lit/src/generated-app.ts deleted: examples/lit/src/pages/404.ts deleted: examples/lit/src/pages/custom.not.nested.route.ts deleted: examples/lit/src/pages/dashboard.ts deleted: examples/lit/src/pages/dashboard/account.ts deleted: examples/lit/src/pages/dashboard/account/:userId.ts deleted: examples/lit/src/pages/dashboard/account/index.ts deleted: examples/lit/src/pages/dashboard/index.ts deleted: examples/lit/src/pages/dashboard/overview.ts deleted: examples/lit/src/pages/index.ts deleted: examples/lit/src/pages/root.ts deleted: examples/lit/src/pages/settings.ts deleted: examples/lit/src/pages/settings/admin.ts deleted: examples/lit/src/pages/settings/index.ts deleted: examples/lit/src/pages/test.:page.multiple.:args.ts deleted: examples/lit/src/router.ts deleted: examples/lit/src/server.ts deleted: examples/lit/src/vite-env.d.ts deleted: examples/lit/tsconfig.json deleted: examples/lit/vite.config.js deleted: examples/react/.gitignore deleted: examples/react/package-lock.json deleted: examples/react/package.json deleted: examples/react/public/favicon.ico deleted: examples/react/public/index.html deleted: examples/react/public/logo192.png deleted: examples/react/public/logo512.png deleted: examples/react/public/manifest.json deleted: examples/react/public/robots.txt deleted: examples/react/routes.json deleted: examples/react/src/components/Header.tsx deleted: examples/react/src/index.css deleted: examples/react/src/index.tsx deleted: examples/react/src/logo.svg deleted: examples/react/src/pages/404.tsx deleted: examples/react/src/pages/index.tsx deleted: examples/react/src/pages/projects.tsx deleted: examples/react/src/pages/projects/:id.tsx deleted: examples/react/src/pages/projects/index.tsx deleted: examples/react/src/pages/root.tsx deleted: examples/react/src/reportWebVitals.js deleted: examples/react/src/router.tsx deleted: examples/react/src/setupTests.js deleted: examples/react/tsconfig.json deleted: examples/react/webpack.config.js deleted: images/icon.png deleted: package-lock.json deleted: package.json deleted: src/web/commands/base.ts deleted: src/web/commands/flutter/analyze.ts deleted: src/web/commands/flutter/generate.ts deleted: src/web/commands/json/generate.ts deleted: src/web/commands/lit/analyze.ts deleted: src/web/commands/lit/component.ts deleted: src/web/commands/lit/generate.ts deleted: src/web/commands/lit/ssr.ts deleted: src/web/commands/react/analyze.ts deleted: src/web/commands/react/generate.ts deleted: src/web/commands/utils/comments.ts deleted: src/web/commands/utils/index.ts deleted: src/web/commands/utils/meta-data.ts deleted: src/web/commands/utils/string-builder.ts deleted: src/web/extension.ts deleted: tsconfig.json deleted: vsc-extension-quickstart.md deleted: webpack.config.js ```

Retry with git restore --source=HEAD :/

git restore --source=HEAD :/ ```console PS C:\Users\Taha\StudioProjects\vscode-router-generator> git restore --source=HEAD :/ error: invalid path 'examples/flutter/lib/pages/about/:id.dart' error: invalid path 'examples/lit/src/pages/dashboard/account/:userId.ts' error: invalid path 'examples/lit/src/pages/test.:page.multiple.:args.ts' error: invalid path 'examples/react/src/pages/projects/:id.tsx' ```

I cannot see this issue with any other repository

rodydavis commented 2 years ago

The only thing I remember doing different on this repo is changing the master branch to main.

Got the issue happen with GitHub desktop?

TahaTesser commented 2 years ago

@rodydavis This seems to be only happening on Windows so far, I tried cloning on macOS, there was no issue

Got the issue happen with GitHub desktop?

I don't have the GitHub desktop client, I use Git Fork

Preview ![image](https://user-images.githubusercontent.com/48603081/150865477-72bb8c2f-e697-482f-bc1d-672d05620049.png) ![image](https://user-images.githubusercontent.com/48603081/150865698-8c47d34d-9e05-4ee6-9557-ee4d2460b577.png)
rodydavis commented 2 years ago

Windows must not allow for : in the path name!

TahaTesser commented 2 years ago

Since the issue seems to be with Windows not this project, i will close it for now