Code Monkey home page Code Monkey logo

Comments (6)

DanTup avatar DanTup commented on May 27, 2024

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.

hentoesch avatar hentoesch commented on May 27, 2024

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.

DanTup avatar DanTup commented on May 27, 2024

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.

DanTup avatar DanTup commented on May 27, 2024

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.

DanTup avatar DanTup commented on May 27, 2024

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.

DanTup avatar DanTup commented on May 27, 2024

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)

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.