Coder Social home page Coder Social logo

cybercog / laravel-whoops-editor Goto Github PK

View Code? Open in Web Editor NEW
84.0 7.0 5.0 27 KB

Laravel Whoops Editor helps to open your code editor from exception stack trace.

Home Page: https://komarev.com/sources/laravel-whoops-editor

License: MIT License

PHP 100.00%
cybercog cog laravel whoops exception-handling ide phpstorm intellij idea sublime-text

laravel-whoops-editor's Introduction

Laravel Whoops Editor

cog-laravel-whoops-editor

Build Status StyleCI Releases License

Introduction

Laravel Whoops Editor helps to open your code editor from exception stack trace. Go to code editor in a blink of an eye!

This feature was introduced in Laravel 5.5.25, but unfortunately has issues on Linux machines. Laravel Whoops Editor fixes PHPStorm, IDEA and SublimeText Linux support.

Additionally allows you to open editor when using Homestead.

For Atom support you can use Mike Bronner's laravel-whoops-atom package or publish config and specify launch path in editors config section.

Contents

Features

Requirements

  • PHP >= 7.0.0
  • Laravel >= 5.5.25

Installation

First, pull in the package through Composer:

$ composer require cybercog/laravel-whoops-editor --dev

Configuration

Package designed to work right out of the box, but you could publish configuration file to tweak settings:

$ php artisan vendor:publish --provider="Cog\Laravel\WhoopsEditor\Providers\WhoopsEditorServiceProvider" --tag="config"

Usage

Specify your editor by adding APP_EDITOR=phpstorm in .env file.

Optionally you can specify editor by adding editor key to the ./config/app.php configuration file.

'editor' => 'phpstorm',

This package provides extended Linux support for editors: phpstorm, idea, sublime.

Complete list of supported editors could be found in Whoops documentation.

Protocol Handlers

If your OS trying to open file in web browser instead of code editor you should install Protocol Handler.

Editor Protocol Linux MacOS Windows
SublimeText subl:// thecotne/subl-protocol - -
Atom atm:// eclemens/atom-url-handler WizardOfOgz/atom-handler -

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Testing

Run the tests with:

$ vendor/bin/phpunit

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributors

@antonkomarev
Anton Komarev

Laravel Whoops Editor contributors list

Alternatives

License

About CyberCog

CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion.

CyberCog

laravel-whoops-editor's People

Contributors

antonkomarev 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  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  avatar

laravel-whoops-editor's Issues

[Request] Atom Support

Any idea if we can support Atom, I took a look but didn't find any atom:// helper available

[Request] Variable project path

Thanks for setting up the Linux support, I appreciate it.

I am having trouble however, opening phpstorm since the filename it tries to open doesnt exist on my machine. I use a Docker container for my development environment and the "open" url refers to the virtual filesystem, not to the one on my host machine.

Is there a way of setting the project path so I can map it to my host machine?

Thanks!

can't cache config

This is related to using a closure in this function

$this->overwriteAppEditor(function ($filePath, $line) use ($editorConfig) {
            $filePath = $this->resolveFilePath($filePath);

            if (is_string($editorConfig)) {
                return $this->buildUri($editorConfig, $filePath, $line);
            }

            $editorConfig['url'] = $this->buildUri($editorConfig['url'], $filePath, $line);

            return $editorConfig;
        });

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.