Comments (3)
The code in question is here:
webdev/webdev/lib/src/util.dart
Lines 11 to 22 in 1602e68
We effectively assume the following structure for the SDK directory...
- version
- bin/pub
- bin/dart
Do you see this out
directory anywhere?
Are dart
and pub
in the same directory?
from webdev.
I updated my first post on this thread so you can see the link I was referring to for the guide for installing Dart.
Upon rereading that, I saw the problem.
I've been using dart-sdk/sdk/sdk
, which has bin/pub, bin/dart, but not version.
I should have been using dart-sdk/sdk/out/ReleaseX64/dart-sdk
, which has bin/pub, bin/dart, and version.
So, the solution was to change my path for Dart from
export PATH=/home/myUserName/development/dart/dart-sdk/sdk/sdk/bin:$PATH
to
export PATH=/home/myUserName/development/dart/dart-sdk/sdk/out/ReleaseX64/dart-sdk/bin:$PATH
.
After doing this, webdev serve
worked!
In conclusion, this is not a problem with webdev. I'm sorry for any inconvenience.
Potentially, we could add a more detailed error message when the above error message is triggered that automatically searches for another dart-sdk
directory in the current dart-sdk
directory and suggests you change your path to use the deeper (correct) directory. That could help a less experienced Linux user, but may be too specific of a problem to worry about adding an error message for.
Should I suggest they add a section on updating the PATH to Building Dart on CentOS, Red Hat, Fedora and Amazon Linux AMI?
Thank you for your time.
BTW (for any future/lurking readers), to change path variables in Fedora 28, it's best to make or edit a file in etc/profile.d
For example, I use /etc/profile.d/myPathVars.sh
:
# 08/16/2018
# Dart and pub:
export PATH=/home/myUserName/development/dart/dart-sdk/sdk/out/ReleaseX64/dart-sdk/bin:$PATH
from webdev.
@Jack0fAll , Can you close this Issue?
from webdev.
Related Issues (20)
- Remove uses of .__proto__ from JS code
- Batch stream tests are flaky on windows
- Trying to resume an isolate that is not paused throws the wrong error code HOT 1
- DWDS error handling should align better with `vm_service`'s error handling HOT 1
- Support running frontend server tests with --canary flag
- Support running build_daemon tests with --canary flag
- Use new DDC debugger API
- Run instance_test.dart with frontend server
- _TypeError in ChromeProxyService._setUpChromeConsoleListeners.<anonymous closure> HOT 3
- google3 updates needed for the next roll of this repo HOT 2
- debugging localhost iframe flutter window from another web server HOT 1
- Run all instance tests with ddc --canary flag
- All triggered breakpoints causing status_access_violation in Chrome HOT 3
- Some local variables (DOM elements?) do not show in the debugger when debugging web apps
- `events_test.dart` is flaky
- Variables that are DOM elements do not have their fields attached in the VMFrame
- Getters should be marked with isGetter when fetching class definitions with getObject() HOT 2
- Remove Dart Code Metrics
- Cider debugging support
- google3 updates required for version 21.0.0
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 webdev.