yomybaby / atom-titanium

[DEPRECATED] Atom package for Titanium Alloy
https://atom.io/packages/titanium-alloy
MIT License
49 stars 11 forks source link

Uncaught TypeError: Path must be a string. Received null #33

Closed DouglasHennrich closed 8 years ago

DouglasHennrich commented 8 years ago

[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
yomybaby commented 8 years ago

Thanks for reporting. Can you descibe when you got this error?

DouglasHennrich commented 8 years ago

I getting this error when I was on Snippets window from Atom... I was just typing snippets and keep getting this error

Thanks =)

jasonkneen commented 8 years ago

Any fix for this? or workaround -- keep getting errors popping up

yomybaby commented 8 years ago

Did you open a file individually or open a root folder of project?

jasonkneen commented 8 years ago

I open atom from the project folder so "atom ."

yomybaby commented 8 years ago

Thanks for letting me know.

I need need more detail.

For example : When did you get this error? Which file and what key was pressed? ...

2016년 4월 29일 (금) 오전 2:56, Jason Kneen notifications@github.com님이 작성:

I open atom from the project folder so "atom ."

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/yomybaby/atom-titanium/issues/33#issuecomment-215510408

yomybaby commented 8 years ago

v0.9.12 version available. Update and try. Please let me know it work properly. 😄

Colemack commented 8 years ago

For me it works, I don't get the error anymore.

jasonkneen commented 8 years ago

me too -- looks good

yomybaby commented 8 years ago

@NLKok @jasonkneen Great news! 😄

DouglasHennrich commented 8 years ago

Yea the bug are fixed but now something else came up... when I use the hot-keys to open Controllers, Views, Styles, it lead me to projectDic/app/controllers/(controllers, views, styles) it's add /controllers after /app

yomybaby commented 8 years ago

Sorry for bothering. There is a mistake. I'll fix in a few days.

DouglasHennrich commented 8 years ago

Don't need to apologize, you're doing an awesome work!