Giter VIP home page Giter VIP logo

Comments (10)

Mahfa avatar Mahfa commented on May 11, 2024 1

hey @felangel thanks for the update.
the new version did solve the problem with dart_frog dev but the project still won't build if it is not located in drive C

from dart_frog.

felangel avatar felangel commented on May 11, 2024 1

hey @felangel thanks for the update. the new version did solve the problem with dart_frog dev but the project still won't build if it is not located in drive C

Awesome, yeah we'll plan to address the drive location issue in the next sprint šŸ‘

from dart_frog.

felangel avatar felangel commented on May 11, 2024

Hi @Mahfa šŸ‘‹
Thanks for opening an issue!

Can you please provide the exact version of windows you're running on? Thanks!

from dart_frog.

Mahfa avatar Mahfa commented on May 11, 2024

hi @felangel
ur welcome
this is my windows version

Edition	Windows 10 Pro
Version	21H2
Installed on	ā€Ž2/ā€Ž27/ā€Ž2022
OS build	19044.1766
Experience	Windows Feature Experience Pack 120.2212.4180.0

I fixed the issue with dart_frog build by moving my project to drive C
but there is another issue when running dart_frog dev

C:\Users\madi\Documents\projects\tests\my_first_frog>dart_frog dev
āœ“ Running on http://localhost:8080 (3.7s)
The Dart VM service is listening on http://127.0.0.1:8181/7XjAwm6iFgE=/

The Dart DevTools debugger and profiler is available at: http://127.0.0.1:8181/7XjAwm6iFgE=/devtools/#/?uri=ws%3A%2F%2F127.0.0.1%3A8181%2F7XjAwm6iFgE%3D%2Fws

.dart_frog/server.dart:7:8: Error: Error when reading '.dart_frog/..%0Doutesindex.dart': The filename, directory name, or volume label syntax is incorrect.

import '..\routes\index.dart' as index;
       ^
.dart_frog/server.dart:29:22: Error: Undefined name 'onRequest'.
    ..all('/', index.onRequest);
                     ^^^^^^^^^

from dart_frog.

felangel avatar felangel commented on May 11, 2024

hi @felangel ur welcome this is my windows version

Edition	Windows 10 Pro
Version	21H2
Installed on	ā€Ž2/ā€Ž27/ā€Ž2022
OS build	19044.1766
Experience	Windows Feature Experience Pack 120.2212.4180.0

I fixed the issue with dart_frog build by moving my project to drive C but there is another issue when running dart_frog dev

C:\Users\madi\Documents\projects\tests\my_first_frog>dart_frog dev
āœ“ Running on http://localhost:8080 (3.7s)
The Dart VM service is listening on http://127.0.0.1:8181/7XjAwm6iFgE=/

The Dart DevTools debugger and profiler is available at: http://127.0.0.1:8181/7XjAwm6iFgE=/devtools/#/?uri=ws%3A%2F%2F127.0.0.1%3A8181%2F7XjAwm6iFgE%3D%2Fws

.dart_frog/server.dart:7:8: Error: Error when reading '.dart_frog/..%0Doutesindex.dart': The filename, directory name, or volume label syntax is incorrect.

import '..\routes\index.dart' as index;
       ^
.dart_frog/server.dart:29:22: Error: Undefined name 'onRequest'.
    ..all('/', index.onRequest);
                     ^^^^^^^^^

Hi @Mahfa have you tried updating to the latest version of dart_frog_cli?

dart pub global activate dart_frog_cli

This should be resolved on v0.0.2-dev.9. Let me know if that helps šŸ‘

from dart_frog.

hotdang-ca avatar hotdang-ca commented on May 11, 2024

I also get this error, while running a dart_frog build from within Google cloud shell.

Dart SDK version: 2.17.6 (stable) (Tue Jul 12 12:54:37 2022 +0200) on "linux_x64"
$HOME/.pub-cache/bin/dart_frog build
āœ“ Bundling sources (0.1s)
An exception occurred while executing hook: pre_gen.dart.
Error: FileSystemException: Rename failed, path = '/tmp/JMWDTL' (OS Error: Invalid cross-device link, errno = 18)

The directory is there... and seems to be a copy of the root folder of my project, without the build folder.

james@cloudshell:~/budvue_api (api2-clickspace-tv)$ ls -l /tmp/JMWDTL/
total 44
-rw-r--r-- 1 james james   139 Aug 17 02:24 analysis_options.yaml
-rw-r--r-- 1 james james  1577 Aug 17 02:24 deployment.yaml
drwxr-xr-x 6 james james  4096 Aug 17 02:24 lib
-rw-r--r-- 1 james james 13604 Aug 17 02:24 pubspec.lock
-rw-r--r-- 1 james james   335 Aug 17 02:24 pubspec.yaml
-rw-r--r-- 1 james james  1745 Aug 17 02:24 README.md
drwxr-xr-x 3 james james  4096 Aug 17 02:24 routes
drwxr-xr-x 3 james james  4096 Aug 17 02:24 test

Any pointers on having me chip in on this?

from dart_frog.

felangel avatar felangel commented on May 11, 2024

@hotdang-ca planning to look more closely at this very soon. In the meantime, are you able to do the build locally and deploy the artifacts to google cloud as outlined in our docs?

from dart_frog.

hotdang-ca avatar hotdang-ca commented on May 11, 2024

I cannot on a Mac M1 host -- causes unrelated docker issues with the executable. I could try on an Intel Mac host; cannot do the build on a Windows host, for the same original reason:

āœ“ Bundling sources (1.5s)
An exception occurred while executing hook: pre_gen.dart.
Error: FileSystemException: Rename failed, path = '/tmp/QJSAAC' (OS Error: Invalid cross-device link, errno = 18)
dart_frog --version
0.1.0

THAT's actually inside of a Ubuntu 20.04 box through Windows Subsystem for Linux. I'll try right now from straight windows.

I took a look at the source code... you do Directory.rename(...), it could be related to a dart version.

dart --version
Dart SDK version: 2.17.6 (stable) (Tue Jul 12 12:54:37 2022 +0200) on "linux_x64"

I'll play around some more and figure something out.

I need the image in the Artifact Registry for GKE to pick it up. The project we are working on are part of a kubernetes cluster. maybe I'm using this for more than what it was designed. I've been in the dart + google world for 3+ years, but our reliance on firebase-interop and dart2js is impacting the creation of new projects. So, dart_frog is our new platform which we are slowly migrating over legacy (pre-sound null safe) code.

from dart_frog.

hotdang-ca avatar hotdang-ca commented on May 11, 2024

Windows is fine:

flutter --version
Flutter 3.0.5 ā€¢ channel stable ā€¢ https://github.com/flutter/flutter.git
Framework ā€¢ revision f1875d570e (5 weeks ago) ā€¢ 2022-07-13 11:24:16 -0700
Engine ā€¢ revision e85ea0e79c
Tools ā€¢ Dart 2.17.6 ā€¢ DevTools 2.12.2
dart_frog --version
0.1.0

Just those linux hosts (including WSL) it seems.

from dart_frog.

felangel avatar felangel commented on May 11, 2024

@hotdang-ca thanks for providing the additional context. Iā€™m planning to spend some time on this tomorrow and will provide an update shortly.

from dart_frog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.