dart-atom / dart

A Dart plugin for Atom.
http://dart-atom.github.io/dart/
BSD 3-Clause "New" or "Revised" License
154 stars 44 forks source link

How do use plugin with application inside docker/vm/etc.? #1091

Closed mehaase closed 7 years ago

mehaase commented 7 years ago

Is anybody using this plugin while they develop an application inside a container or VM? I use Docker and so all of my dart stuff is inside the container. It would be cool if I could run the analyzer inside the container and have Atom connect to it. Is this possible without modifying the plugin?

mehaase commented 7 years ago

Answering my own question: I looked into the analyzer and it seems the analyzer server is actually part of this Atom plugin, not the Dart SDK, so it's not even running inside my container. My work around is to mount the host's /var/pub to the container's /var/pub, set export PUB_CACHE=/var/pub, run pub get --packages-dir, and then fix permissions on the pub cache. Now the package symlinks resolve correctly inside the container as well as on the host.