GithubHelp home page GithubHelp logo

hendricha / syfi Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 188 KB

Find and open file belonging selected service id, class or resource in a Symfony project

License: MIT License

PHP 34.20% CoffeeScript 65.80%

syfi's People

Contributors

hendricha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

syfi's Issues

Missing features todo list

  • Don't open empty tab if nothing is returned by syfi-cli
  • Throw a normal message if AppKernel or bootstrap.php.cache could not be found
  • app folder location should be configurable
  • locate twig shorthands
  • locate doctrine model shorthands
  • if nothing is selected get the first relevant string around the caret
  • parse 'use' for class names from the current file
  • locate where a service id is defined
  • handle translation source to target conversion somehow and open where translation is used

Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/me/.atom/packages/syfi/li...

[Enter steps to reproduce below:]

  1. Select a doctrine model shorthand i.e. AppBundle:User
  2. press ctrl + option + o

Atom Version: 1.6.2
System: Mac OS X 10.11.4
Thrown From: syfi package, v0.5.1

Stack Trace

Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/me/.atom/packages/syfi/lib/../syfi-cli 'AppBundle:User'

At /Users/me/.atom/packages/syfi/lib/symfonyFinder.coffee:30

Error: syfi exec error: Command failed: /bin/sh -c /Users/me/.atom/packages/syfi/lib/../syfi-cli 'AppBundle:User'

    at SymfonyFinder.module.exports.SymfonyFinder.openResult (/Users/me/.atom/packages/syfi/lib/symfonyFinder.coffee:30:17)
    at /Users/me/.atom/packages/syfi/lib/symfonyFinder.coffee:1:1
    at ChildProcess.exithandler (child_process.js:222:5)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Commands

  3x -2:57.9.0 click (div.close.icon.icon-x)
     -2:48.2.0 syfi:find (atom-text-editor.editor.is-focused)
  4x -2:46 click (div.close.icon.icon-x)
     -2:28.1.0 core:undo (atom-text-editor.editor.is-focused)
     -2:26.5.0 syfi:find (atom-text-editor.editor.is-focused)
     -2:24.8.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -2:24.8.0 core:cancel (atom-text-editor.editor.is-focused)
  9x -2:23.6.0 click (atom-text-editor.editor.is-focused)
     -0:50.8.0 syfi:find (atom-text-editor.editor.is-focused)
     -0:46.7.0 click (atom-text-editor.editor.is-focused)
     -0:45.4.0 syfi:find (atom-text-editor.editor.is-focused)
  8x -0:43.3.0 click (a.btn-issue.btn.btn-error)
     -0:28.4.0 syfi:find (atom-text-editor.editor.is-focused)
  3x -0:26.5.0 click (atom-text-editor.editor.is-focused)
     -0:11 syfi:find (atom-text-editor.editor.is-focused)
 14x -0:08.7.0 click (a.btn-issue.btn.btn-error)

Config

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

Installed Packages

# User
atom-autocomplete-php, v0.18.7
atom-beautify, v0.29.2
atom-symfony2, v0.2.1
atom-ternjs, v0.13.2
browser-plus, v0.0.60
color-picker, v2.1.1
doctrine, v0.3.0
drunken-php, v0.2.1
file-icons, v1.7.1
filesize, v0.4.2
highlight-selected, v0.11.2
linter, v1.11.4
linter-csslint, v1.3.2
linter-htmlhint, v1.1.1
linter-js-standard, v3.3.0
linter-php, v1.2.0
linter-sass-lint, v1.3.0
linter-twig, v0.1.1
minimap, v4.21.0
php-cs-fixer, v2.5.6
php-debug, v0.2.2
php-extract-method, v0.2.1
php-hyperclick, v0.3.1
pigments, v0.26.0
rest-client, v1.0.0
set-syntax, v0.3.0
syfi, v0.5.1
terminal-plus, v0.14.5
wakatime, v5.0.8

# Dev
No dev packages

Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/echansen/.atom/packages/syfi/l...

  1. Install package
  2. Restart Atom
  3. Open Symfony project root
  4. Hit default key binding of ctrl+alt+o
  5. See error

Atom Version: 1.0.15
System: Mac OS X 10.10.3
Thrown From: syfi package, v0.4.0

Stack Trace

Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/echansen/.atom/packages/syfi/lib/../syfi-cli ''

At /Users/echansen/.atom/packages/syfi/lib/symfonyFinder.coffee:25

Error: syfi exec error: Command failed: /bin/sh -c /Users/echansen/.atom/packages/syfi/lib/../syfi-cli ''

  at SymfonyFinder.module.exports.SymfonyFinder.openResult (/Users/echansen/.atom/packages/syfi/lib/symfonyFinder.coffee:25:17)
  at /Users/echansen/.atom/packages/syfi/lib/symfonyFinder.coffee:1:1
  at ChildProcess.exithandler (child_process.js:215:5)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:172:7)
  at maybeClose (internal/child_process.js:764:16)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Commands

     -0:01.3.0 syfi:find (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "projectHome": "/Users/echansen/Projects",
    "themes": [
      "one-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  },
  "syfi": {}
}

Installed Packages

# User
aligner-php, v1.0.0
autocomplete-php, v0.3.7
file-icons, v1.6.9
highlight-line, v0.11.0
linter, v1.6.0
linter-csslint, v1.0.5
linter-htmlhint, v0.1.1
linter-js-yaml, v1.1.2
linter-jshint, v1.2.0
linter-php, v1.0.3
linter-phpcs, v1.1.0
linter-phpmd, v1.2.0
linter-scss-lint, v2.0.0
linter-tidy, v1.0.1
php-debug, v0.1.3
project-manager, v2.5.2
save-session, v0.15.7
syfi, v0.4.0
terminal-plus, v0.4.3

# Dev
No dev packages

Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/nikola/.atom/packages/syfi/lib...

[Enter steps to reproduce below:]

  1. Open folder containing a folder with symfony 2.7 project
  2. Open app/config/routing.yml
  3. Select the path to the bundle routing.yml file and click 'Find in Symfony project'

Atom Version: 1.0.19
System: Mac OS X 10.11
Thrown From: syfi package, v0.5.0

Stack Trace

Uncaught Error: syfi exec error: Command failed: /bin/sh -c /Users/nikola/.atom/packages/syfi/lib/../syfi-cli '@KapinkaShippingContainerPresentationBundle/Resources/config/routing.yml'

At /Users/nikola/.atom/packages/syfi/lib/symfonyFinder.coffee:30

Error: syfi exec error: Command failed: /bin/sh -c /Users/nikola/.atom/packages/syfi/lib/../syfi-cli '@KapinkaShippingContainerPresentationBundle/Resources/config/routing.yml'

  at SymfonyFinder.module.exports.SymfonyFinder.openResult (/Users/nikola/.atom/packages/syfi/lib/symfonyFinder.coffee:30:17)
  at /Users/nikola/.atom/packages/syfi/lib/symfonyFinder.coffee:1:1
  at ChildProcess.exithandler (child_process.js:215:5)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:172:7)
  at maybeClose (internal/child_process.js:764:16)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

Commands

     -9:48.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -7:16.1.0 application:open (atom-text-editor.editor.is-focused)
     -2:30.9.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -2:28.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:00.8.0 syfi:find (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "solarized-light-syntax"
    ]
  }
}

Installed Packages

# User
color-picker, v2.0.12
linter, v1.7.2
linter-php, v1.0.5
php-analyser, v0.2.0
php-twig, v4.0.0
syfi, v0.5.0
symfony-snippets, v0.3.0

# Dev
No dev packages

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.