Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use live server #9

Open
KingDamo17 opened this issue Feb 25, 2022 · 14 comments
Open

Unable to use live server #9

KingDamo17 opened this issue Feb 25, 2022 · 14 comments

Comments

@KingDamo17
Copy link

Sublime text shows the live server command palette but does not do anything if I hit start or stop.

I am on mac and new to programming, so I could not clean up the npm audit. If I even need to.

@molnarmark
Copy link
Owner

Did you set up the plugin according to the documentation? https://github.com/molnarmark/sublime-live-server#-settings

@monavari-lebrecht
Copy link

monavari-lebrecht commented Mar 17, 2022

Tried it by myself, but what do you mean by setting it up. The default settings should work out of the box, shouldnt they?

The problem is, that it doesnt show any update, after doing the start command. And when you try to run Open Live server in Browser, it says, Live server isnt running

@molnarmark
Copy link
Owner

The default settings indeed work, but only on Linux. Any other OS, you need to change the settings.

@fawadta
Copy link

fawadta commented Mar 23, 2022

Did you set up the plugin according to the documentation? https://github.com/molnarmark/sublime-live-server#-settings

yea i did. but on live server start and stop, it don't do anything but on live server open in browser it displays: live server isnt running. nothing to open
I dont know what to do...

@guillermodelrio
Copy link

guillermodelrio commented Jun 10, 2022

for Mac users:

{
  "node_executable_path": "/usr/local/bin/node",
  "global_node_modules_path": "/usr/local/lib/node_modules",
}

Also, make sure you have saved first your working file before attempting to launch Live Server from the command palette!

@haighd22
Copy link

haighd22 commented Sep 27, 2023

for Mac users:

{
  "node_executable_path": "/usr/local/bin/node",
  "global_node_modules_path": "/usr/local/lib/node_modules",
}

Also, make sure you have saved first your working file before attempting to launch Live Server from the command palette!

is it always "node_executable_path": "/usr/local/bin/node",? I ran whereis node as per the readme and got a path of "/usr/bin/node /usr/include/node /usr/share/man/man1/node.1.gz". Neither seems to work as the node_executable_path within settings and I get the same issue as the OP.

Any help much appreciated.

@molnarmark
Copy link
Owner

molnarmark commented Sep 14, 2024

@kyle-wendling Great, so use that instead.

This package is just a wrapper around an npm library. I don't control anything when it comes to that particular library, as I didn't write it. This package currently has ~58.000 installs, most people with issues were able to solve them, and this is the same package that powers VSCode's version of this package. If you really want to complain, this is where you need to go. It looks like you really felt the need to complain before checking out what the package actually does.

@frostphex
Copy link

What on earth? We are using sublime-text and installed your package from the package repo, and you are telling all of us here to complain somewhere else? Jeez man.

@molnarmark
Copy link
Owner

molnarmark commented Oct 26, 2024

@frostphex The comment was directed at the person I tagged (User "kyle-wendling", possibly trolling or overly entitled), who since then deleted the comment. :)

He complained that he made a package in 10 minutes which was in every way better than this one, so I told him to complain about the original npm package at its repository, as this plugin is just a wrapper around it.

It's not directed at people who come here with decent mannerisms asking for guideance about the package. :)

@frostphex
Copy link

Okay, Okay, firstly I would like to apologize as I didn't read you have tagged a username as I have joined Github last month, and it was the other guy who you tagged. I assumed you are pissed off because of multiple people facing the same issue about the extension not working, and I thought how could this be that you are not helping, because my laptop specs are very weak which doesn't support VScode. I don't know what that guy commented about making it in 10 minutes, I read the first 5-6 comments, and saw that they're from 2022 and got concerned that where are the 2024 comments and thought it's over, but saw you've replied to the issue on Sept 15 last month.

I downloaded sublime-text for continuing my journey of web dev from the odin project, and I wanted an extension similar to live server which has 40M+ downloads on VSCode not the microsoft or other one. Furthermore, I installed your one from the package repository, and it was not working. The problem was my node_modules were not in /usr/local/lib but in /usr/lib while the extension is working fine, but there are problems I would like to bring to your notice.

I've to start and stop the server multiple times and have to select open in browser for different html files. It's kinda tiring.

I hope you are not pissed off or hold against me anything, I was just concerned, nothing hate or anything held against you brother. And you are kinda cute though!

@molnarmark
Copy link
Owner

@frostphex Of course, its understandable.

The "Open in browser" feature (if you mean the one where you right click on the file in the sidebar) is not part of this plugin. That is provided by a different plugin (maybe this) or built into Sublime Text by default, I honestly don't remember.

If you launch the server, you should be able to access the files in the browser by navigating to localhost:8080, or whatever port you've set up in the settings.

Yes, some people had problems, most (as far as I know, ~59.000 installs so far) were able to get things going.
It's just really hard to help others if you don't experience/can't reproduce the issue they are having.

@frostphex
Copy link

It's working fine, same as the VSCode extension! Thank you for making this one, but if I may ask, why didn't you update this extension from 2021?

I'm new to open source and all web development, I'm seeing many packages in the sublime text which are not updated since 2018/2019 and similar, why is it so? Is it because these packages are stable and don't require further updates or they've abandoned (the authors who made it) and moved to VSCode?

@molnarmark
Copy link
Owner

@frostphex A lot have moved to VSCode, yes, that is one of the reasons.

When it comes to this package, it's using this NPM package underneath, which haven't received updates in a while either, so there are no new features to implement into this plugin.

@rmpasswd
Copy link
Contributor

rmpasswd commented Nov 15, 2024

For windows, i had to run these. also opened a pull req.
note that in the file paths, backslash has to escaped with another backslash
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants