tomkadwill / atom-rails Goto Github PK
View Code? Open in Web Editor NEWCommands for Ruby on Rails development
License: MIT License
Commands for Ruby on Rails development
License: MIT License
atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace)
,
which returns an HTMLElement.
Atom.Object.defineProperty.get (/usr/share/atom/resources/app/src/atom.js:54:11)
Object.activate (/home/skhattri/.atom/packages/atom-rails/lib/atom-rails.coffee:9:9)
All deprecated APIs will be removed on June 1st
Use activationCommands
instead of activationEvents
in your package.json
Commands should be grouped by selector as follows:
"activationCommands": {
"atom-workspace": ["foo:bar", "foo:baz"],
"atom-text-editor": ["foo:quux"]
}
Package.getActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:808:9)
Package.hasActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:733:20)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:24)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)
PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:355:14)
i've got this error trying to install on Ubuntu 16.04
No available version compatible with the installed Atom version: 1.17.2
atom-rails should ignore tags file in most, if not all, cases
Start working on ':R' command with jumping from model to db/schema.rb
All deprecated APIs will be removed on June 1st
This is the output I get from Atom:
Store package style sheets in the styles/
directory instead of stylesheets/
in the atom-rails
package
Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)
Relaying these on from the Deprecation Cop
feature in Atom 0.199.0.
Use activationCommands instead of activationEvents in your package.json Commands should be grouped by selector as follows:
"activationCommands": {
"atom-workspace": ["foo:bar", "foo:baz"],
"atom-text-editor": ["foo:quux"]
}
Called 1 time
Package.getActivationCommands - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:806:9
Package.hasActivationCommands - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:731:20
<unknown> - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:24
Package.measure - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15
Package.load - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12
PackageManager.loadPackage - /Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:355:14
Related to #13 only enable this feature when user does not have ctags installed.
Suppose I have given code
# ...
def foo
Bar.baz
end
# ...
It would be awesome to open app/models/baz.rb file by clicking on "Bar" word
If controller is admin/some_controller.rb then it should search for model in models/admin but then figure out to look in admin
Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.4.0
) of this package:
styles/
directory instead of stylesheets/
in the <pack-name>
packageactivationCommands
instead of activationEvents
in your package.json Commands should be grouped by selector as follows: json "activationCommands": { "atom-workspace": ["foo:bar", "foo:baz"], "atom-text-editor": ["foo:quux"] }
atom.views.getView(atom.workspace)
, which returns an HTMLElement.Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.
If this package has been replaced by another package or functionality in core, please reply with this information.
See atom/atom#6867 for more info. Thanks!
[Enter steps to reproduce below:]
Atom Version: 0.201.0
System: Mac OS X 10.10.3
Thrown From: atom-rails package, v0.4.0
Uncaught TypeError: Cannot read property 'getPath' of undefined
At /Users/evrei/.atom/packages/atom-rails/lib/atom-rails.coffee:13
TypeError: Cannot read property 'getPath' of undefined
at Object.module.exports.switchToModel (/Users/evrei/.atom/packages/atom-rails/lib/atom-rails.coffee:13:51)
at atom-workspace.<anonymous> (/Users/evrei/.atom/packages/atom-rails/lib/atom-rails.coffee:9:66)
at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app.asar/src/space-pen-extensions.js:115:32)
at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4681:9)
at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4359:46)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:153:19)
at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:71:30)
at emitOne (events.js:77:13)
at EventEmitter.emit (events.js:166:7)
-0:01.9.0 atom-rails:switch-to-model (a.)
{
"core": {
"themes": [
"seti-ui",
"one-dark-syntax"
],
"disabledPackages": [
"vim-mode",
"goto",
"goto",
"html2jade",
"html2jade",
"html2jade",
"git-blame",
"gitignore-snippets"
]
}
}
# User
atom-jshint, v2.0.0
atom-rails, v0.4.0
auto-update-packages, v0.2.2
color-picker, v1.7.0
compass, v0.9.1
emmet, v2.3.10
gitter, v0.6.2
html2haml, v0.10.0
language-gitignore, v0.2.0
language-haml, v0.20.0
language-jade, v0.4.0
linter-haml, v0.4.0
markdown-preview-plus, v1.4.0
meteor-api, v2.19.0
project-manager, v1.15.7
seti-ui, v0.7.1
tabs-to-spaces, v0.11.0
terminal-status, v1.6.7
trailing-spaces, v0.2.5
# Dev
No dev packages
When installed from the command line using "apm install atom-rails", the issue quoted in the header shows up.
Atom Version: 0.190.0
System: Mac OS X 10.10.2
Thrown From: atom-rails package, v0.4.0
Failed to activate the atom-rails package
At Cannot read property 'command' of undefined
TypeError: Cannot read property 'command' of undefined
at Object.module.exports.activate (/Users/luisrobles/.atom/packages/atom-rails/lib/atom-rails.coffee:13:25)
at Package.module.exports.Package.activateNow (/Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package.js:225:19)
at /Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package.js:206:30
at Package.module.exports.Package.measure (/Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package.js:152:15)
at Package.module.exports.Package.activate (/Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package.js:199:14)
at PackageManager.module.exports.PackageManager.activatePackage (/Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package-manager.js:435:21)
at /Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package-manager.js:419:29
at Config.module.exports.Config.transact (/Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/config.js:302:16)
at PackageManager.module.exports.PackageManager.activatePackages (/Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package-manager.js:414:19)
at PackageManager.module.exports.PackageManager.activate (/Users/luisrobles/Downloads/Atom.app/Contents/Resources/app/src/package-manager.js:395:46)
{}
# User
atom-rails, v0.4.0
# Dev
No dev packages
When trying to open a file that does not exist atom-rails should give the option to create the file (as well as the beep sound)
Relaying these on from the Deprecation Cop
feature in Atom 0.199.0.
Store package style sheets in the styles/ directory instead of stylesheets/ in the atom-rails package
Called 1 time
Package.getStylesheetsPath - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9
Package.getStylesheetPaths - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32
Package.loadStylesheets - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38
<unknown> - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19
Package.measure - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15
Package.load - /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12
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.