Comments (10)
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.
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.
Hi @Mahfa š
Thanks for opening an issue!
Can you please provide the exact version of windows you're running on? Thanks!
from dart_frog.
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.
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 runningdart_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.
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.
@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.
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.
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.
@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)
- fix: Test cases failing in dart_frog_cli while running dart test(OS errors)
- fix: need clarity around static files HOT 6
- chore: Dart Frog CLI 1.2.0 release
- max number of websockets HOT 3
- fix: Concurrency Issues HOT 2
- CI / CD Workflow Examples HOT 2
- Dart frog support Isolates ? HOT 1
- docs: Add Globe to Deployment section in Docs
- How to inject variables into context in a certain route HOT 4
- feat: allow $ in `new` commands
- fix: `dart_frog build` fails with "name" field doesn't match expected name HOT 1
- feat: Scheduled Tasks / Cron Jobs
- feat: add global exception catching HOT 6
- fix: Error parsing request HOT 2
- fix: zsh: command not found: dart_frog HOT 4
- chore: Release for Dart Frog CLI and Package HOT 1
- fix: When deploying to globe getting issue as: A directory corresponding to fileSystemPath "public" could not be found HOT 5
- docs: an overview document for dart_frog_cli
- fix: dart_frog dev -H HOT 1
- fix: ClientException with SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = 127.0.0.1, port = 57735, uri=http://127.0.0.1:57715/status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart_frog.