Comments (6)
i have dart sdk in PATH
My guess is that this is the same issue I had when testing; you have something like /usr/bin
in PATH
which has a dart
symlink. This means the actual Dart SDK location (/usr/lib/dart
?) is not in PATH
. I'll try and put a fix in for this today (by either searching the default install location when using Google's apt package, or detecting a dart
executable and if it's a symlink, resolving it).
configuration of sdk in settings is not possible
If you do File -> User Preferences
(or whatever the equiv is) you should get a split pain of JSON (left is defaults, right is your overrides). If you start typing dart
as a new value on the right, you don't get auto-complete for dart.sdkPath
? If you do, add "dart.sdkPath": "/usr/lib/dart"
(or whatever the real path is - it needs to be such that the folder contains bin/snapshots/analysis_server.dart.snapshot
exists inside the configured sdkPath).
from dart-code.
i did have /usr/bin AND /usr/lib/dart/bin in my PATH (but in that respective order).
after changing the order in .bashrc, so that /usr/lib/dart/bin was first, the error message did not go away.
i think the problem is that my PATH config is /usr/lib/dart/bin and you are awaiting /usr/lib/dart (without the bin).
editing the User Preferences and specifying /usr/lib/dart as sdkpath did make the error message disappear.
from dart-code.
In PATH
I assume it's to the bin
folder (else dart
wouldn't work) but assume the sdkPath
is root, but maybe something isn't working quite as expected. Glad you got it working be setting sdkPath
, but I will definitely make some improvements in this area. If Dart is on your path in any form I should be able to use it and not force you to have to enter it (though for now, specifying it will improve startup performance until I do #8).
Thanks for the feedback and responses; really appreciate it!
from dart-code.
Just occurred to me, the reason it failed to search path was nothing to do with symlinks, it's because the path delimiter on Linux is different! This will all be fixed before next release.
from dart-code.
Thanks for the report; the next preview release (which I hope to put in the store this weekend) now correctly handles Linux/Max paths and will resolve symlinks. I've just tested this on a clean Ubuntu install without the sdkPath
set and it worked fine with the apt-get
version from Google.
from dart-code.
If you remove the old version you can install a new preview from the VS Code marketplace which resolves the SDK issues (you can remove the sdkPath
and it should still work):
https://marketplace.visualstudio.com/items?itemName=DanTup.dart-code
from dart-code.
Related Issues (20)
- Dart: Sort Members - Account for sort_constructors_first lint
- Snep I'd login HOT 2
- Render large types in multiline HOT 2
- Documentation Comments: Render Table Lines HOT 3
- Show more detailed Flutter build progress HOT 9
- Documentation Comments: `Copy Code` Button HOT 5
- Destructured record fields are not shown in the completion HOT 5
- Show Why Xcode Build Failed HOT 3
- Hover and Suggest Widget: Show Tags HOT 2
- Intellisense doesn't show type information on factories HOT 1
- Support the -e flag for Flutter project creation HOT 3
- Editor Suggest: Smart Argument Insertion HOT 3
- Add integration tests for macros
- `ImpLens` - CodeLens for Implementations and Overrides
- Suggest Widget - Sort Declared / Inherited First HOT 7
- Editor Suggest and Hover - Show Symbol Source
- Cannot Scroll in Symbol Preview HOT 2
- Run test using code lens does not open Test Results view HOT 10
- Support DevTools extensions embedded inside VS Code HOT 3
- Run with custom devtools not working HOT 1
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-code.