directmyfile / atom.dart Goto Github PK
View Code? Open in Web Editor NEWMake Atom Packages in Dart
License: Other
Make Atom Packages in Dart
License: Other
Add the ability to provide autocomplete providers.
It would be great if rather than running dart tool/build.dart
we could just run pub build
and have the work that is currently done by package:atom/build.dart
be done in a transformer. This should allow for use with other packages that use transformers like polymer or angular.
Perhaps in example/
? It would help people know how to create a dart plugin for atom, and perhaps serve as a way to smoke test change to the atom.dart
package.
Hey @kaendfinger,
I wrote a small bit of code to try and call addBottomPanel()
on the atom.workspace
. I get an error though. Below is the code and the stack trace.
Code
import 'dart:html';
import 'package:atom/atom.dart';
class DartFileOutline {
Element get element => _element;
void set element(val) => _element = val;
Element _element;
DartFileOutline() {
_element = new DivElement()..text = 'Hello world';
}
}
void main() {
atom.workspace.addBottomPanel(new DartFileOutline().element);
}
Stack Trace
TypeError: Cannot read property 'callMethod$2' of null
at dart.main (C:\Users\austin\Workspace\atom-dart\index.js:3608:11)
at C:\Users\austin\Workspace\atom-dart\index.js:5587:7
at init.currentScript (C:\Users\austin\Workspace\atom-dart\index.js:5567:5)
at C:\Users\austin\Workspace\atom-dart\index.js:5582:3
at Object.<anonymous> (C:\Users\austin\Workspace\atom-dart\index.js:5591:3)
at Module._compile (module.js:452:26)
at Object.loadFile [as .js] (C:\Users\austin\AppData\Local\atom\app-0.194.0\resources\app.asar\src\babel.js:162:21)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
at require (module.js:376:17)
No idea why this is happening, but the new BufferedProcess
class does not work. I have made a fork and attempted to get it working here, but that didn't work either. It seems that the process does not even get started. I'll keep looking more into this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.