Giter VIP home page Giter VIP logo

atom-titanium's Introduction

[DEPRECATED] This package will not updated. I recommend Appcelerator official Package for developing titanium on Atom.

All-in-One package for Titanium Alloy

This is a Atom package for Titanium Alloy

$ apm install titanium-alloy

Conflict & Requires Notice

  • Alloy 1.8.x setting
  • Requires
    • Hyperclick package for Jump to definition
      (Now It will be installed automatically. After relaunch atom, Hyperclick works. Thanks @HazemKhaled #16)
  • Conflict
    • If you using other tss grammar package, such as language-tss. It makes this package doesn't work.

Features

Autocomplete

jump-to-definition

  • Titanium properties
    • such as 'Ti.UI.SIZE', true, 'black', Ti.UI.TEXT_ALIGNMENT_CENTER.
  • id and class name
    • based on current controller's tss and app.tss.
  • module name
    • all of controller/widget/model name on XML and JS
    • on XML : After <Require src=', you can see the suggestions.
    • on JS : After Alloy.create[Controller|Widget|Model], you can see the suggestions.
  • Image path
    • image path in app/assets/images directory.
    • When you type '/i', you can see the suggestions.
  • i18n
    • i18n key base on app/i18n/{language}/strings.xml
    • After L(', you can see the suggestions

Jump to definition

This feature is a hyperclick provider.

  • Jump to tss definition from xml [class|id|tag] name
  • Jump to event handler definition from xml onEventName property
  • Jump to i18n key definition from [js|tss] file.
  • If not exists, Generate a code based on template.
    • Now, you can change template on ~/.atom/config.cson. (#42 Thanks @ DouglasHennrich)

Hyperclick is triggered by two events:

  • <cmd> or <cmd-mousemove> underlines clickable text under the mouse.
  • <cmd-mousedown> performs the action associated with the clickable text.
  • <cmd-alt-enter> performs the action on the text under the cursor.

jump-to-definition

Open related file depend on current focused file

Key Bindings Command Desc
ctrl-alt-a Toggle(open or close) relative files. When close, current file is remained.
ctrl-alt-shift-a Close all relative files. Current file is closed also.
ctrl-alt-v Open view
ctrl-alt-s Open style
ctrl-alt-c Open controller

On package setting, there is an option to change layout of "Open All related files" command. (2 columns or 3columns)

TSS Sytax Highlight

refer to language-css and language-json, language-tss
tss-highlight
This hightlight use css color your current theme. So tss file looks like css file.

Snippet

See snippets/tialloy.cson

Reference

Release note

See github repo release page.

Contribution?

  • Any issue, sugestion, PR makes me happy.

Analytics

atom-titanium's People

Contributors

douglashennrich avatar hansemannn avatar haraldsvik avatar hazemkhaled avatar m1ga avatar yomybaby avatar yuchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

atom-titanium's Issues

file path completions

This is a suggestion.

File path typing is sooooooooo boring and annoying.

For example,

  • image property of <Image> : `"images/whatever.png"
  • ...

Autocomplete controllers with `/` prefix

Ti SDK introduced the full NodeJS require-spec. This also includes the recommendation to use / for all require-prefixes, including Alloy controllers. So when I create a new controller using Alloy.createController('my/controller'), it suggests the correct controller, great! But when using Alloy.createController('/my/controller'), it doesn't detect my autocomplete flow. It would be great if it could!

P.S.: The hyperlinking already works!

Suggested Feature

Possibility to change/add controller auto complete to other key match(Alloy.createController)... something like:

App.Navigation.open( "TRIGGER CONTROLLERS AUTO COMPLETE" )

Uncaught TypeError: Cannot read property 'type' of undefined

Hey @yomybaby, awesome plugin!

I was running into this error while editing:

"ItemTemplate": {
  selectionStyle: Ti.UI.iPhone.ListViewCellSelectionStyle.NONE,
  canEdit: true,
  editActions: [
    {
      title: 'All',
      style: Ti.UI.iOS.ROW_ACTION_STYLE_NORMAL
    }, {
      title: '+ Thumbnail',
      color: '#ccc'
    }, {
      title: 'Meta',
      style: Ti.UI.iOS.ROW_ACTION_STYLE_NORMAL
    }
  ]
}

Atom Version: 1.3.0
System: Mac OS X 10.11.2
Thrown From: titanium-alloy package, v0.6.9

Stack Trace

Uncaught TypeError: Cannot read property 'type' of undefined

At /Users/fokkezb/.atom/packages/titanium-alloy/lib/styleProvider.coffee:220

TypeError: Cannot read property 'type' of undefined
    at Object.module.exports.getPropertyValueCompletions (/Users/fokkezb/.atom/packages/titanium-alloy/lib/styleProvider.coffee:220:36)
    at Object.module.exports.getSuggestions (/Users/fokkezb/.atom/packages/titanium-alloy/lib/styleProvider.coffee:32:22)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:286:56
    at Array.forEach (native)
    at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:265:17)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:252:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

     -1:04.6.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
     -1:04.6.0 editor:newline (atom-text-editor.editor.is-focused)
     -1:03.5.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
     -1:03.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -1:02.5.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
     -1:02.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:54.2.0 core:save (atom-text-editor.editor.is-focused)
  3x -0:40.1.0 core:select-right (atom-text-editor.editor.is-focused)
  6x -0:37.9.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:36.6.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -0:35.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:34.5.0 core:save (atom-text-editor.editor.is-focused)
     -0:02.7.0 core:move-left (atom-text-editor.editor.is-focused)
  5x -0:02.3.0 core:select-right (atom-text-editor.editor.is-focused)
  2x -0:00.6.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:00.0 editor:select-to-end-of-line (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
atom-beautify, v0.28.19
docblockr, v0.7.3
hyperclick, v0.0.35
linter, v1.11.3
linter-jshint, v1.2.1
titanium-alloy, v0.6.9

# Dev
No dev packages

Controller into a sub folder

On Ti-slack titanium_atom channel,

buje [3:06 PM]
+1 @yomybaby it will be awesome if you integrated ternjs with alloy atom package :simple_smile:

[3:11]
@yomybaby: an issue : when you have a controller into a folder, the hyperclick doesn’t work eg
Alloy.createController('book/passenger')`(edited)

Check other features also ..

Some improvements

I tried the plugin today and found some issues that prevent me from using it as a Studio replacement:

  • Automate autocomplete: Read the available tags automatically like the Studio does it to support new API's on the fly instead of mapping them manually
  • Hyperlinking: When clicking on a function or style class inside the xml, the referenced function / style definition should appear in the upper visible area of the file (not at the bottom -> scroll related line to top)
  • TiApp editor: Support a visual editor to edit the name, version, embedded modules and watchkit profiles like Appc Studio. Maybe that would make more sense as an own module.

TextEditor.get is deprecated.

TextEditor.prototype.displayBuffer has always been private, but now
it is gone. Reading the displayBuffer property now returns a reference
to the containing TextEditor, which now provides some of the API of
the defunct DisplayBuffer class.

TextEditor.get (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:101:14)
Object.getFileEditor (/Users/vsantana/.atom/packages/titanium-alloy/lib/ti-pkg-util.js:15:55)
findDefinition (/Users/vsantana/.atom/packages/titanium-alloy/lib/clickProvider.js:366:27)
<unknown> (/Users/vsantana/.atom/packages/titanium-alloy/lib/clickProvider.js:444:38)
Function._.each._.forEach (/Users/vsantana/.atom/packages/titanium-alloy/node_modules/underscore/underscore.js:153:9)
Object.getSuggestionForWord (/Users/vsantana/.atom/packages/titanium-alloy/lib/clickProvider.js:443:9)

Autocomplete on XML

Autocomplete is not working as your gif shows...
I try to start to type <Button then press tab and nothing happens =/

the syntax are marked as ALLOY.XML

  • package v0.6.1

Color TSS properties

It would be good to show the valid properties in another color:
color
e.g. keyword.other.tss

Make sure Alloy is installed and on your path

When I installed the "atom-titanium" i have this error in Atom :
/Users/aurelienhuet/Desktop/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:262 Uncaught BufferedProcessError: Failed to spawn command alloy. Make sure alloy is installed and on your PATH

capture d ecran 2016-08-07 a 22 16 56

Uncaught Error: app/app/assets/images does not exist.

I removed the whole auto-error message :)
The problem: I don't have /assets/images/ in my project and when I start typing in an image/backgroundImage property I get this error message:

Stack Trace

Uncaught Error: /app/app/assets/images does not exist.

At .atom/packages/titanium-alloy/node_modules/find/index.js:194

Problem starts in
https://github.com/yomybaby/atom-titanium/blob/master/lib/alloyCompletionRules.coffee#L63

Possible solution:
check for the /images/ folder first or start at /assets/

Uncaught TypeError: Cannot read property 'prefix' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.5.4
System: Mac OS X 10.10.5
Thrown From: titanium-alloy package, v0.9.0

Stack Trace

Uncaught TypeError: Cannot read property 'prefix' of undefined

At /Users/developer/.atom/packages/titanium-alloy/lib/viewProvider.coffee:118

TypeError: Cannot read property 'prefix' of undefined
    at Object.module.exports.getTagNameCompletions (/Users/developer/.atom/packages/titanium-alloy/lib/viewProvider.coffee:118:27)
    at Object.module.exports.getSuggestions (/Users/developer/.atom/packages/titanium-alloy/lib/viewProvider.coffee:39:22)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:290:56
    at Array.forEach (native)
    at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:269:17)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:256:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

  2x -8:52 core:backspace (atom-text-editor.editor.is-focused)
     -8:41.7.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
  3x -7:18.8.0 core:undo (atom-text-editor.editor.is-focused)
     -7:17.3.0 core:save (atom-text-editor.editor.is-focused)
     -5:16.5.0 titanium:openView (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:08.4.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
     -0:08.4.0 editor:newline (atom-text-editor.editor.is-focused)
  6x -0:05.3.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "related-split-view",
      "terminal-plus"
    ],
    "themes": [
      "one-dark-ui",
      "oceanic-next"
    ]
  }
}

Installed Packages

# User
atom-backbone, v0.6.1
atom-beautify, vundefined
atom-pair, v2.0.10
atom-ternjs, v0.13.2
autocomplete-modules, v1.4.1
autocomplete-paths, v1.0.2
build, v0.57.0
emmet, v2.4.2
highlight-selected, v0.11.2
hyperclick, v0.0.35
javascript-snippets, v1.2.1
linter, v1.11.3
linter-jshint, v2.0.3
linter-jsonlint, v1.2.1
livereload, v0.4.4
minimap, v4.21.0
oceanic-next, v0.1.2
project-manager, v2.7.6
release-notes, v0.53.0
sync-settings, v0.7.2
titanium-alloy, v0.9.0
titanium-build, v0.8.1

# Dev
No dev packages

Error if no File opended

Hello everyone,

if i press:
'ctrl-alt-v' or
'ctrl-alt-s' or
'ctrl-alt-c' or
'ctrl-alt-a'
with no file opended an Error occurres

Thank you in advance

Jonah

Related files not opening on Windows 7

Hi.

I'm not able to open related files on a Windows 7 machine with CTRL+ALT+A/S/C/V.

No errors in console and Keybinding resolver is showing the right binds, so no clues. I thought that could be because Atoms was in C: and files was in W: but trying both in C: still doesn't work.

Uncaught TypeError: path.relative is not a function

[Enter steps to reproduce below:]

  1. Open all related files via keyboard shortcut. (ctrl+alt+a)

Atom Version: 1.7.4
System: Mac OS X 10.10.5
Thrown From: titanium-alloy package, v0.10.1

Stack Trace

Uncaught TypeError: path.relative is not a function

At /Users/vsantana/.atom/packages/titanium-alloy/lib/related.coffee:27

TypeError: path.relative is not a function
    at getRelatedFilePath (/Users/vsantana/.atom/packages/titanium-alloy/lib/related.coffee:27:20)
    at Object.module.exports.openAllFiles (/Users/vsantana/.atom/packages/titanium-alloy/lib/related.coffee:68:24)
    at atom-workspace.atom.commands.add.titanium:openAllRelatedFiles (/Users/vsantana/.atom/packages/titanium-alloy/lib/related.coffee:56:77)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -1:46.6.0 vim-mode-plus:delete-right (atom-text-editor.editor.vim-mode-plus.normal-mode.is-focused)
     -1:38.6.0 command-palette:toggle (atom-text-editor.editor.vim-mode-plus.is-focused.normal-mode)
     -1:38.4.0 blur (atom-text-editor.editor.vim-mode-plus.is-focused.normal-mode)
     -1:32.4.0 core:move-down (atom-text-editor.editor.mini.is-focused)
  6x -1:27.4.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -1:10.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:10.6.0 blur (atom-text-editor.editor.mini.is-focused)
     -1:10.6.0 titanium:openAllRelatedFiles (atom-text-editor.editor.vim-mode-plus.normal-mode)
  3x -1:03.8.0 blur (atom-text-editor.editor.vim-mode-plus.normal-mode.is-focused)
     -0:20.5.0 settings-view:show-keybindings (atom-text-editor.editor.vim-mode-plus.normal-mode.is-focused)
  5x -0:19.9.0 blur (atom-text-editor.editor.vim-mode-plus.normal-mode.is-focused)
  2x -0:16.4.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:08.7.0 blur (atom-text-editor.editor.mini.is-focused)
  2x -0:06.5.0 core:cancel (table.native-key-bindings.table.text)
  4x -0:04.3.0 blur (table.native-key-bindings.table.text)
     -0:00.7.0 titanium:openAllRelatedFiles (atom-text-editor.editor.vim-mode-plus.normal-mode.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "titanium-build",
      "multi-highlight-selected",
      "tidy-markdown",
      "ever-notedown",
      "markdown-preview-plus"
    ]
  },
  "titanium-alloy": {
    "defaultI18nLanguage": "pt"
  }
}

Installed Packages

# User
build, v0.63.0
build-make, v0.10.0
git-commit, v1.5.2
git-diff-details, v1.3.0
hyperclick, v0.0.36
indent-guide-improved, v1.4.8
jslint, v1.5.1
merge-conflicts, v1.4.2
minimap, v4.24.0
minimap-highlight-selected, v4.4.0
open-recent, v5.0.0
pigments, v0.26.3
titanium-alloy, v0.10.1
todo-show, v1.6.0
vim-mode-plus, v0.42.0

# Dev
No dev packages

Support multi target files in clickProvider

In some case, click provider should have multi callback from multi files.

For example,

  • class definition : controllername.tss and app.tss
  • js definition : controllername.js and alloy.js

Missing Autocomplete properties

Please let me know a missing properties for autocompletion.

on XML

  • ItemTemplete : name
    • Any Tag under ItemTemplate : bindId
  • ListItem : template,
  • ListSection : HeaderView, FooterView
  • ListItem : HeaderView, FooterView

This is so cool :-)

This is not an issue report.

I just want to leave a note that I love this package. Keep up the good work. You rock!

Uncaught TypeError: Cannot read property 'properties' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: titanium-alloy package, v0.11.3

Stack Trace

Uncaught TypeError: Cannot read property 'properties' of undefined

At /Users/luisperezgil/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:133

TypeError: Cannot read property 'properties' of undefined
    at /Users/luisperezgil/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:133:51
    at Function._.each._.forEach (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jasmine-tagged/node_modules/jasmine-focused/node_modules/jasmine-node/node_modules/underscore/underscore.js:153:9)
    at Object.alloyCompletionRules.getCompletions (/Users/luisperezgil/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:129:11)
    at Object.module.exports.getSuggestions (/Users/luisperezgil/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:204:27)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:310:56
    at Array.forEach (native)
    at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:289:17)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:276:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

  4x -0:43.4.0 core:close (atom-text-editor.editor.is-focused)
     -0:08.7.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:04.1.0 core:copy (atom-text-editor.editor.is-focused)
     -0:03.1.0 core:paste (atom-text-editor.editor.is-focused)
     -0:02.1.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:01.9.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-material-ui",
      "atom-dark-syntax"
    ]
  }
}

Installed Packages

# User
Remote-FTP, v0.8.3
atom-icons, v0.2.2
atom-material-ui, v1.2.13
build, v0.64.0
busy, v0.5.0
highlight-selected, v0.11.2
hyperclick, v0.0.36
pretty-json, v1.4.1
titanium-alloy, v0.11.3
titanium-build, v0.8.1

# Dev
No dev packages

Failed to load the titanium-alloy package

Atom Version: 1.0.3
System: Mac OS X 10.10.4
Thrown From: titanium-alloy package, v0.3.3

Stack Trace

Failed to load the titanium-alloy package

At ENOENT: no such file or directory, open '/usr/local/lib/node_modules/alloy/docs/api.jsca'

Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/alloy/docs/api.jsca'
    at Error (native)
    at Object.fs.openSync (fs.js:544:18)
    at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:118:20)
    at Object.fs.readFileSync (fs.js:396:15)
    at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:369:29)
    at Object.<anonymous> (/Users/nickdenengelsman/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:6:23)
    at Object.<anonymous> (/Users/nickdenengelsman/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:66:4)
    at Module._compile (module.js:452:26)
    at Object.requireCoffeeScript (/opt/homebrew-cask/Caskroom/atom/latest/Atom.app/Contents/Resources/app.asar/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
    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)
    at Object.<anonymous> (/Users/nickdenengelsman/.atom/packages/titanium-alloy/lib/main.coffee:8:16)
    at Object.<anonymous> (/Users/nickdenengelsman/.atom/packages/titanium-alloy/lib/main.coffee:21:4)
    at Module._compile (module.js:452:26)

Commands

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "railscast-theme"
    ]
  }
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.3.0
build, v0.42.0
go-to-view, v0.3.0
linter, v1.2.4
linter-reek, v2.0.0
linter-rubocop, v0.2.7
linter-ruby, v0.1.6
railscast-theme, v0.3.0
ruby-block-converter, v3.5.0
titanium-alloy, v0.3.3

# Dev
No dev packages

Autocompletion outdated?

Hey @yomybaby,

thanks for this great plugin again! Helps organizing a looot of files and projects every day 🚀

So I noticed that some of the autocompletion hints are a bit outdated. Examples

  • Ti.UI.iOS.NavigationWindow won't be suggested
  • Ti.UI.KEYBOARD_EMAIL (deprecated) would be suggested, but Ti.UI.KEYBOARD_TYPE_EMAIL (replacement) won't
  • Newer API's like Ti.UI.iOS.PreviewContext won't be suggested in any kind
    Is there a jsca you are working with? Would be cool to have this updated, thx!

Hans

EDIT: Looking at this line, it takes the API's from the Alloy-bundled jsca. So that one might be outdated. That's only the Alloy one, and the Titanium one should be up to date.

Support Jade

I love jade! So autocomplete and "go to definition" for Jade are coming!

Show unused styles

Would it be possible to scan the tss file for unused objects (not used in xml) and highlight them?

Make space between new generated style and controller method

Hey @yomybaby,

would be nice to generate new TSS styles with a space (new line) between the brackets:
Before:

"#myStyle": {
}

After:

"#myStyle": {

}

It's a really really minor change, so maybe you can check it in between other stuff you work on. Thanks man!

EDIT: Same for controller methods:

Before:

function doStuff(e) {
}

After:

function doStuff(e) {

}

Add support to create TSS file in theme

If we have one or several themes in our Alloy app, it will be great if we can generate a tss file in folder theme.
Maybe you can hook the alloy command and add an option -theme :
alloy generate controller demo -theme
to add the tss file on the theme folder.

Failed to spawn command alloy. Make sure alloy is installed and on your PATH

Right when starting Atom I get the following error message (it started after updating the package):

Failed to spawn command alloy. Make sure alloy is installed and on your PATH

I tried removing Atom completely (including all settings, packages) and downloaded everything again but still getting this.

When I open Atom it shows that error message and open chrom dev tools with the follwoing:

/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:262 Uncaught BufferedProcessError: Failed to spawn command alloy. Make sure alloy is installed and on your PATH
/Users/ophir/.atom/packages/titanium-alloy/node_modules/atom-package-dependencies/index.js:53 hyperclick is already installed.
/Users/ophir/.atom/packages/titanium-build/node_modules/atom-package-dependencies/index.js:53 build is already installed.

Uncaught Error: /Users/fokkezb/dev/projects/ComeEmpty.Me/app/controllers does not exist.

Hi @yomybaby, no idea who this started but I get it all the time now :(

Atom Version: 1.7.4
System: Mac OS X 10.11.5
Thrown From: titanium-alloy package, v0.10.1

Stack Trace

Uncaught Error: /Users/fokkezb/dev/projects/ComeEmpty.Me/app/controllers does not exist.

At /Users/fokkezb/.atom/packages/titanium-alloy/node_modules/find/index.js:194

Error: /Users/fokkezb/dev/projects/ComeEmpty.Me/app/controllers does not exist.
    at Object.error.notExist (/Users/fokkezb/.atom/packages/titanium-alloy/node_modules/find/index.js:68:12)
    at traverseSync (/Users/fokkezb/.atom/packages/titanium-alloy/node_modules/find/index.js:194:38)
    at Object.find.(anonymous function) [as fileSync] (/Users/fokkezb/.atom/packages/titanium-alloy/node_modules/find/index.js:336:5)
    at Object.alloyCompletionRules.getCompletions (/Users/fokkezb/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:28:22)
    at Object.module.exports.getSuggestions (/Users/fokkezb/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:138:27)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:310:56
    at Array.forEach (native)
    at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:289:17)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:276:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

     -0:32.7.0 core:paste (atom-text-editor.editor.is-focused)
  3x -0:29.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:25.6.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
  3x -0:25.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:20.1.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:19.9.0 core:copy (atom-text-editor.editor.is-focused)
     -0:16.7.0 core:select-up (atom-text-editor.editor.is-focused)
     -0:16.2.0 core:paste (atom-text-editor.editor.is-focused)
     -0:15.4.0 atom-beautify:beautify-editor (atom-text-editor.editor.is-focused)
     -0:13.5.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  2x -0:13.2.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
  2x -0:12.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:06.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:05.6.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  3x -0:01.8.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:01.2.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-ternjs"
    ]
  },
  "titanium-alloy": {
    "numberOfSplitPane": 3
  }
}

Installed Packages

# User
atom-beautify, v0.29.7
docblockr, v0.7.3
hyperclick, v0.0.36
linter, v1.11.4
linter-jshint, v2.1.0
titanium-alloy, v0.10.1

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'functions' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.4.3
System: Mac OS X 10.10.5
Thrown From: titanium-alloy package, v0.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'functions' of undefined

At /Users/developer/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:64

TypeError: Cannot read property 'functions' of undefined
    at Object.module.exports.getSuggestions (/Users/developer/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:64:30)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:290:56
    at Array.forEach (native)
    at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:269:17)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:256:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

     -1:24.6.0 core:paste (atom-text-editor.editor.is-focused)
     -1:21.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:16.9.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
  5x -1:16.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:04.6.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -1:04.6.0 core:cancel (atom-text-editor.editor.is-focused)
  3x -1:00.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:43.4.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:43.4.0 core:cancel (atom-text-editor.editor.is-focused)
     -0:40 editor:newline (atom-text-editor.editor.is-focused)
  6x -0:29.5.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:17 core:save (atom-text-editor.editor.is-focused)
     -0:11 linter:next-error (atom-workspace.workspace.scrollbars-visible-always.theme-oceanic-next.theme-one-dark-ui)
     -0:08.8.0 core:undo (atom-text-editor.editor.is-focused)
     -0:05.4.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:05.4.0 core:cancel (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "related-split-view"
    ],
    "themes": [
      "one-dark-ui",
      "oceanic-next"
    ]
  }
}

Installed Packages

# User
atom-backbone, v0.6.1
atom-beautify, v0.28.21
atom-pair, v2.0.10
atom-ternjs, v0.13.2
autocomplete-modules, v1.3.1
autocomplete-paths, v1.0.2
build, v0.54.1
emmet, v2.4.1
highlight-selected, v0.11.2
hyperclick, v0.0.35
javascript-snippets, v1.2.0
linter, v1.11.3
linter-jshint, v1.3.0
linter-jsonlint, v1.1.5
minimap, v4.19.0
oceanic-next, v0.1.2
project-manager, v2.7.6
release-notes, v0.53.0
sync-settings, v0.6.0
terminal-plus, v0.14.5
titanium-alloy, v0.8.1
titanium-build, v0.8.1

# Dev
No dev packages

Error

Hello. I really want to use this package but there is an issue so that I can't
I'm getting an error message: Failed to spawn command alloy. Make sure alloy is installed and on your PATH
on Mac. I'm trying to do anything with the package but I keep getting error messages. And I can't uninstall it to reinstall again

New feature "image search" working wrong on Windows

Hi Yomy.

The last amazing feature you introduced is not working right on Windows. It offers always the full path to the image, instead the relative, e.g.:

C:\appc\EPOC\app\assets\images\start.png

instead

/images/start.png

Uncaught TypeError: Path must be a string. Received null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.2
System: Mac OS X 10.11.4
Thrown From: titanium-alloy package, v0.9.11

Stack Trace

Uncaught TypeError: Path must be a string. Received null

At /Users/Odin/.atom/packages/titanium-alloy/lib/ti-pkg-util.js:6

TypeError: Path must be a string. Received null
    at assertPath (path.js:8:11)
    at Object.posix.join (path.js:479:5)
    at Object.getAlloyRootPath (/Users/Odin/.atom/packages/titanium-alloy/lib/ti-pkg-util.js:58:17)
    at Object.alloyCompletionRules.getCompletions (/Users/Odin/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:24:28)
    at Object.module.exports.getSuggestions (/Users/Odin/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:138:27)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:310:56
    at Array.forEach (native)
    at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:289:17)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:276:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

     -0:57.6.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:57.6.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:43.2.0 emmet:toggle-comment (atom-text-editor.editor.is-focused)
     -0:43.2.0 editor:toggle-line-comments (atom-text-editor.editor.is-focused)
     -0:38.8.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:38.2.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:38.2.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:36.8.0 core:undo (atom-text-editor.editor.is-focused)
  3x -0:36 core:backspace (atom-text-editor.editor.is-focused)
     -0:34.8.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:34.8.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:33.2.0 core:undo (atom-text-editor.editor.is-focused)
  5x -0:29.9.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:25.1.0 core:move-down (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:24.4.0 core:move-up (atom-text-editor.editor.is-focused.autocomplete-active)
  9x -0:21.5.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active)

Config

{
  "core": {
    "disabledPackages": [
      "autocomplete-atom-api"
    ],
    "openEmptyEditorOnStart": false,
    "themes": [
      "atom-material-ui",
      "atom-material-syntax"
    ]
  },
  "titanium-alloy": {
    "isAlloy1_8later": false
  }
}

Installed Packages

# User
atom-material-syntax, v0.3.3
atom-material-ui, v1.2.10
color-picker, v2.1.1
emmet, v2.4.3
file-icons, v1.7.7
highlight-selected, v0.11.2
hyperclick, v0.0.36
jshint, v1.8.5
jsonlint, v1.1.2
language-javascript-jsx, v0.3.7
pigments, v0.26.0
pretty-json, v1.0.3
titanium-alloy, v0.9.11

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'apiName' of undefined

[Enter steps to reproduce below:]

Every now and then as I start editing I run into these errors all the time. No idea why.

Atom Version: 1.5.3
System: Mac OS X 10.11.3
Thrown From: titanium-alloy package, v0.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'apiName' of undefined

At /Users/fokkezb/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:62

TypeError: Cannot read property 'apiName' of undefined
    at Object.module.exports.getSuggestions (/Users/fokkezb/.atom/packages/titanium-alloy/lib/controllerProvider.coffee:62:50)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:290:56
    at Array.forEach (native)
    at AutocompleteManager.module.exports.AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:269:17)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61)
    at AutocompleteManager.module.exports.AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:256:19)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/autocomplete-plus/lib/autocomplete-manager.js:3:61

Commands

 14x -4:51.5.0 core:close (atom-text-editor.editor.is-focused)
  3x -0:16 core:undo (atom-text-editor.editor.is-focused)
     -0:14.5.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:13.6.0 editor:toggle-line-comments (atom-text-editor.editor.is-focused)
     -0:13.1.0 core:save (atom-text-editor.editor.is-focused)
     -0:01.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:00.3.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-ternjs"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.28.22
dash, v1.6.0
docblockr, v0.7.3
hyperclick, v0.0.35
linter, v1.11.3
linter-jshint, v1.3.1
titanium-alloy, v0.8.1

# Dev
No dev packages

open controller enhancement

I think this.
code for createContoller method, hyperclick to controller.js

example)

Alloy.createController('photoViewer',params);

in this case, link for 'photoViewer' to open 'controllers/photoViewer.js'

Support Classic Titanium Project ?

Dear Jong Eun Lee ,

First Thank You for Create this Package this is so Cool . Code without Appcelerator Studio .

I have a Classic Titanium Project Build by Appcelerator Studio. Is atom-titanium support the Classic Titanium Project ? or i need to convert to Alloy Project ?

If not support do you plan to add this in your list ?

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.