Code Monkey home page Code Monkey logo

atom-live-server-plus's People

Contributors

bfkss avatar boulabiar avatar jas-chen avatar richiksc avatar ryanwarsaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

atom-live-server-plus's Issues

link prompt not appearing

If you have a problem launching a live-server, please try the following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.✔
  2. Try launching live-server from the top menu: Package -> live-server -> Start Server to see if it works.✔

when I start up the live server, both with the dropdown menu and without, the green prompt at the top of the screen that says "live server started (link)" doesn't show up.

this doesn't seem like a major problem but it is supremely annoying, I couldn't tell you the steps to reproduce but the only thing I can say is that it worked before I added node.js to my project

Uncaught TypeError: Cannot read property 'startsWith' of undefined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.35.1 x64
Electron: 2.0.18
OS: Mac OS X 10.14.3
Thrown From: atom-live-server-plus package 3.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'startsWith' of undefined

At /Users/je10202/.atom/packages/atom-live-server-plus/lib/atom-live-server-plus.js:138

TypeError: Cannot read property 'startsWith' of undefined
    at Object.startServer (/packages/atom-live-server-plus/lib/atom-live-server-plus.js:138:59)
    at HTMLElement.atomLiveServerStartServer (/packages/atom-live-server-plus/lib/atom-live-server-plus.js:66:51)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:348492)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:694296)
    at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:701680)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

     -0:19.5.0 atom-live-server:start-server (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-clock 0.1.16 
atom-json-editor 0.5.1 
atom-live-server 2.3.0 
atom-live-server-plus 3.0.0 
Atom-SFTP-sync 2.0.1 
atom-tag-wrapper 0.2.0 
atom-wrap-in-tag 0.6.0 
base16-syntax 1.8.1 
busy-signal 2.0.1 
drag-relative-path 1.1.3 
emmet 2.4.3 
file-icons 2.1.31 
intentions 1.1.5 
jQuery 1.2.6 
language-vue 0.24.0 
linter 2.3.0 
linter-ui-default 1.7.1 
minimap 4.29.9 
minimap-titles 1.15.0 
platformio-ide-terminal 2.9.1 
remote-sync 4.1.8 
SFTP-deployment 1.0.2 
sftp-upload-on-change 0.1.0 
split-diff 1.6.0 

Failed to load the atom-live-server-plus package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.32.1 x64
Electron: 2.0.9
OS: Microsoft Windows 10 Home
Thrown From: atom-live-server-plus package 2.4.1

Stack Trace

Failed to load the atom-live-server-plus package

At Unexpected token { in JSON at position 373

SyntaxError: Unexpected token { in JSON at position 373
    at JSON.parse (<anonymous>)
    at m (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:576223)
    at c (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:576518)
    at Object.readFileSync (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:577611)
    at keymaps.getKeymapPaths.map.e (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:3036837)
    at Array.map (<anonymous>)
    at Package.loadKeymaps (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:3036825)
    at measure (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:3030379)
    at Package.measure (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:3029574)
    at Package.load (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:3030315)
    at PackageManager.loadAvailablePackage (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:378592)
    at config.transact (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:377015)
    at Config.transact (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:329551)
    at PackageManager.loadPackages (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:11:376953)
    at t.loadState.then (~/AppData/Local/atom/app-1.32.1/resources/app/static/<embedded>:1:642340)
    at <anonymous>

Commands

     -0:22.8.0 core:backspace (input.hidden-input)
     -0:21.6.0 core:save (input.hidden-input)

Non-Core Packages

atom-auto-prettier 0.1.1 
atom-auto-resize 0.5.1 
atom-autocomplete-php 0.25.6 
atom-html-preview 0.2.5 
atom-live-server 2.3.0 
atom-live-server-plus 2.4.1 
emmet 2.4.3 
file-icons 2.1.26 

# Errorserver is not defined

If you have a problem launching a live-server, please try following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.
  2. Try launching live-server from top menu: Package -> live-server -> Start Server to see if it works.

Add support for serving different projects in multi-project workspaces.

When multiple project folders are open in Atom, currently, atom-live-server-plus only serves the first project in the project list. This is undesirable behavior and creates user friction when working with multiple projects.

Possible new behaviors:

  • Serve the project of the currently opened tab, otherwise fallback to first project in projects list
  • Dropdown selector before serving.

See jas-chen#128

Uncaught SyntaxError: Unexpected 'c' at line 2 column 11 of the JSON5 data. Still to read: "chrom...

Prerequisites

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Versions

Atom: 1.60.0 ia32
Electron: 9.4.4
OS: Unknown Windows version
Thrown From: atom-live-server-plus package 3.0.1

Stack Trace

Uncaught SyntaxError: Unexpected 'c' at line 2 column 11 of the JSON5 data. Still to read: "chrome\r\n}\r\n"

At C:\Users\sourav saha\.atom\packages\atom-live-server-plus\node_modules\json5\lib\json5.js:64

SyntaxError: Unexpected 'c' at line 2 column 11 of the JSON5 data. Still to read: "chrome\r\n}\r\n"
    at error (/packages/atom-live-server-plus/node_modules/json5/lib/json5.js:56:25)
    at word (/packages/atom-live-server-plus/node_modules/json5/lib/json5.js:393:13)
    at value (/packages/atom-live-server-plus/node_modules/json5/lib/json5.js:493:56)
    at object (/packages/atom-live-server-plus/node_modules/json5/lib/json5.js:459:35)
    at value (/packages/atom-live-server-plus/node_modules/json5/lib/json5.js:482:20)
    at Object.parse (/packages/atom-live-server-plus/node_modules/json5/lib/json5.js:508:18)
    at /packages/atom-live-server-plus/lib/atom-live-server-plus.js:197:34
    at /packages/atom-live-server-plus/lib/atom-live-server-plus.js:212:12
    at FSReqCallback.oncomplete (fs.js:146:23)

Commands

     -1:38.4.0 atom-live-server:start-server (input.hidden-input)

Non-Core Packages

ask-stack 2.2.0 
atom-beautify 0.33.4 
atom-live-server-plus 3.0.1 
autocomplete-font-awesome 1.0.2 
emmet 2.4.3 
highlight-selected 0.17.0 
minimap 4.40.1 
minimap-highlight-selected 4.6.6 
pigments 0.40.6 

Additional Information

[enhancement] 'nuke all ports' macro or 'overide port' config option

If you have a problem launching a live-server, please try the following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination. ✅
  2. Try launching live-server from the top menu: Package -> live-server -> Start Server to see if it works. ✅

hi! I'm having a problem with your package, when closing the atom instance, the processes don't stop, and next time I open it they're taking still ports.
over time, this adds up so that all of the nice-looking ports are taken up and if I want to close every port I have to ctrl+alt+q tens of times in a row. This would work if there weren't hundreds of ports to close. I paused the package and the ports were still used, I reinstalled the package and the problem persists.
this problem is very bad for projects that work with localStorage because it's a new 'site' every time.

I suggest, a 'nuke all ports' macro that will close every single port open, or maybe an option in the config to overwrite active ports, e.g. if I open port 3000 and then I open it again with the config enabled it will overwrite the previous process.

It is not Working and I can not install this packages

If you have a problem launching a live-server, please try following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.
  2. Try launching live-server from top menu: Package -> live-server -> Start Server to see if it works.

nopblm

If you have a problem launching a live-server, please try following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.
  2. Try launching live-server from top menu: Package -> live-server -> Start Server to see if it works.

share

If you have a problem launching a live-server, please try following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.
  2. Try launching live-server from top menu: Package -> live-server -> Start Server to see if it works.

html test share

If you have a problem launching a live-server, please try following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.
  2. Try launching live-server from top menu: Package -> live-server -> Start Server to see if it works.

Uncaught ReferenceError: stopServer is not defined

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.30.0 x64
Electron: 2.0.5
OS: Microsoft Windows 10 Home
Thrown From: atom-live-server-plus package 2.4.1

Stack Trace

Uncaught ReferenceError: stopServer is not defined

At C:\Users\InternetUser\.atom\packages\atom-live-server-plus\lib\atom-live-server.js:139

ReferenceError: stopServer is not defined
    at Object.startServer (/packages/atom-live-server-plus/lib/atom-live-server.js:139:7)
    at HTMLElement.atomLiveServerStartServer (/packages/atom-live-server-plus/lib/atom-live-server.js:66:50)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.30.0/resources/app/src/command-registry.js:384:49)
    at CommandRegistry.dispatch (~/AppData/Local/atom/app-1.30.0/resources/app/src/command-registry.js:273:23)
    at AtomEnvironment.dispatchApplicationMenuCommand (~/AppData/Local/atom/app-1.30.0/resources/app/src/atom-environment.js:1351:25)
    at EventEmitter.outerCallback (~/AppData/Local/atom/app-1.30.0/resources/app/src/application-delegate.js:339:53)
    at emitThree (events.js:136:13)
    at EventEmitter.emit (events.js:217:7)

Commands

     -0:37.5.0 atom-live-server:startServer (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)

Non-Core Packages

atom-live-server 2.3.0 
atom-live-server-plus 2.4.1 
livestyle-atom 0.2.10 
php-server 0.8.0 

Live serve only shows black screen.

When i have my previous folder it showed a menu so i can pick which file to demonstrate but when I removed said folder from the project, it went black even though i had another folder containing html file. And now the live server doesn't work properly anymore .

unable to install

If you have a problem launching a live-server, please try following steps:

  1. Make sure you use the right hotkeys. After v2.0.0, the keys became ctrl-alt combination.
  2. Try launching live-server from top menu: Package -> live-server -> Start Server to see if it works.

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.