molnarmark / sublime-live-server

🌍️ Launch a Development Server directly from Sublime Text
https://github.com/molnarmark/sublime-live-server
MIT License
65 stars 9 forks source link

Unable to use live server #9

Open KingDamo17 opened 2 years ago

KingDamo17 commented 2 years ago

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 commented 2 years ago

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

monavari-lebrecht commented 2 years ago

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 commented 2 years ago

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

fawadta commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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 commented 2 months ago

@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 commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

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 commented 1 month ago

@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 commented 1 week ago

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