Coder Social home page Coder Social logo

browserreloadonsave's People

Contributors

lukeowlclaw avatar madskristensen 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

Watchers

 avatar  avatar  avatar  avatar  avatar

browserreloadonsave's Issues

Reload doesn't work if edited in VS.NET 2015

Installed product versions

  • Visual Studio: [example 2015 Professional]
  • This extension: [Browser Reload on Save 1.0.17]

Description

Editing a file in Visual Studio does not trigger a reload, but editing a file using notepad does

Steps to recreate

  1. Open index.cshtml in Visual Studio 2015 Update 3
  2. Edited the page by adding some markup
  3. NO browser reload
  4. Opened notepad and edited the file and the reload worked

Note browserlink is working and refreshing via the reload button works, but the automatic save reload doesn't

Current behavior

Currently the reload doesn't happen on browsers after editing a page

Expected behavior

Reload should occur on browsers after editing a page

Allow Options config for per project options override

Installed product versions

  • Visual Studio: [2017 Enterprise 15.4.5]
  • This extension: [1.0.25]

Description

Feature request - I'm running webpack + HMR in an ASP.NET Core 2 project and want to allow webpack to handle the sass updating (without page reloads) and, to let Browser Reload to handle cshtml changes.

As it stands I've added a '\wwwroot\dist' item to the Ignore patterns option. This works, but of course now this applies to all solutions and projects. Would it be possible to add, say, a 'browserreload.config' file to the project and these options would override the app level ones instead?

Strange reload on save behaviour to js files

Microsoft Visual Studio Community 2017
Version 15.8.8

Hi, I have been trying to use Visual Studio with Browser Reload for a personal project. I have a terminal open with a gulp task to watch and build any changes applied to css and js, and I'm referencing this files in my razor pages. Both files take the same time to transpile (around 200ms).

When applying changes to CSS, everything is smooth. Once I press ctrl+s, the browser syncs perfectly.

Once I apply changes to JS files, the browser reload also works, but no changes are applied. After a few seconds, it detects another change and sends another reload to the browser, this time with the changes applied.

I'm not sure this is a browser reload issue, so I'm looking for some guidance.

.net core 2.0 not working

@madskristensen

Installed product versions

  • Visual Studio: 2017 15.3

Description

cshtml changes aren't reflected

Steps to recreate

  1. Create a new asp.net core 2.0 razor pages application
  2. Make a cshtml change by adding text to the page

Current behavior

Nothing changes need to manually refresh the page

Expected behavior

Changes should occur

[UPDATE]
Issue is related to #7 (read for update)

Does not work with Firefox (developer edition)

Installed product versions

  • Visual Studio: visual studio 2019 preview 3
  • This extension: 1.1.27

Description

Does not work with Firefox (work fine with Chrome)

Current behavior

ReferenceError: browserLink is not defined[Więcej informacji] page.js:4:9
interval moz-extension://e19ef023-73df-44a0-a1c0-4b749074d8de/page.js:4

Reload on build

Installed product versions

  • Visual Studio: 2017 15.2 (26430.13)
  • This extension: 1.0.25

Description

Per https://twitter.com/mkristensen/status/863070980381462528?cn=cmVwbHk%3D&refsrc=email

Mads requested that I create an issue to track the possibility of reloading the browser after a successful build, as opposed to, or in addition to, reloading on save.

Honestly, I don't know if this is the correct repo to be creating this issue given the name of the repo -- "Reload on Save". I'm not sure if people would expect a "Reload on Save" extension to "Reload on Build". I'll be happy to recreate this issue in another repo if necessary.

The general idea is that it would be helpful if the browser would reload after a successful compilation. Often, I find myself writing back-end code for a page, and I'd love to have something that would refresh the browser once the build finishes.

Steps to recreate

  1. Create an MVC site
  2. Create a new controller action with some manner of business logic that returns data for a view.
  3. Create the view that uses the data
  4. Compile and view the page
  5. Change the controller action to have different business logic.
  6. Compile the site.
  7. The page is not refreshed

Current behavior

The page is not refreshed after a successful compilation.

Expected behavior

The page should refresh after a successful compilation.

Cannot install on visual studio 2017

Installed product versions

  • Visual Studio: 2017 Community
  • This extension: 1.0.25

Description

Cannot install extension on Visual Studio 2017. I can only choose vs2015.

Reload not working if error page

Installed product versions

  • Visual Studio: 2017 Professional
  • This extension: 1.0.25
  • Browser: Chrome Version 58.0.3029.110 (64-bit)

Description

Browser doesn't reload on save if you are on an error page

Steps to recreate

  1. Get an error page
  2. Make a correction in IDE and save

Current behavior

If I get an error page and I make a correction in my code, I use the CTRL + S hotkey combination to save the file, but the page does not refresh.

Expected behavior

I would expect that the page would refresh regardless of what kind of page it is... error or otherwise (within reason -- ie-a page related to the site being worked on)

Browser reload on save doesn't work on Visual Studio 2017 Community v. 15.8.0

Installed product versions

  • Visual Studio: [Community 2017 15.8.0l]
  • This extension: [example 1.1.21]

Description

The extension was working property until I updated my Visual Studio

Current behavior

Now when I save some file the browser doesn't reload like before. And I have to manually reload the page after saving. Also in the options Enable Reload on Save is checked.

help!it is not work in my vs2015

not use for me.but it is work when i enter 'ctrl+alt+enter'.Browser Link panel shows that the connection is alive.
thanks for help me!
vs2015 enterprise update2 .i am using aspx file.

Reload on save of CSHTML does not pick up change.

Installed product versions

  • Visual Studio: 2019 Community 16.3.2
  • This extension: 1.1.30

Description

Reload is not working when changing cshtml pages

Steps to recreate

  1. Install extension
  2. Edit cshtml file
  3. save file
    browser reloads
  4. change doesn't take affect.

Current behavior

Reload doesn't show edits.

Expected behavior

Reload should show edits

image
Enable Reload on Save is... enabled

image
Options are all set

The weird thing was, before I updated to VS 16.3.2 it was working fine. No issues. :/

Not refreshing on reload of cshtml file

Hej Mads,

Installed product versions

  • Visual Studio: [example 2015 Enterprise Update 3]
  • Web Essentials 3.0.235

Description

When running an ASP.NET Core application (1.1 running on top of 1.1 Core) Browserlink is enabled and working across browsers (IE, Chrome, Edge, Firefox). Saving a JS or CSS file triggers an automatic reload of all browsers.
BUT on saving changes to a razor view cshtml file does not trigger a reload.

Steps to recreate

  1. Create new 1.1 aspnet core app
  2. ctrl-f5 to start app in browser.
  3. Check in the browserlink windows that a browserlink is active between vs and the browser
  4. save a change to a cshtml file - new HTML segment or change the CLASS property ...
  5. See how the browser does not automatically reload.
  6. Check that a change to a Javascript or CSS file does reload the browser.

Current behavior

I was expecting the browser to reload on any change to any of the files listed in the file filter in [Options\Web\Browser reload on save]

Expected behavior

Reload .... 🎱

Visual Studio 2022 Support

Installed product versions

  • Visual Studio: 2022 All Versions

Description

Make the extension available in Visual Studio 2022.

Steps to recreate

  1. Download the extension installer.
  2. Run the installer.

Current behavior

Message that it is already installed to all applicable products appears even though it is not installed in Visual Studio 2022.
It is also not listed in Online Extensions in Manage Extensions Visual Studio 2022.

Expected behavior

Installs and works in Visual Studio 2022.

Note: Sorry for the all the extra details. I probably could have stopped with the title on this one.

Please add option to only reload if the debugger is running

Installed product versions

  • Visual Studio: [example 2017 Enterprise update 2]
  • This extension: [example 1.0.25]

Description

I've run the web app under the debugger, a browser is open to the page. I've stopped the debugger to make further changes.

I now change one of the files that trigger linked browser reload, and the browser updates to show an error page. This is annoying because it is often useful to be able to see the "old" state of the page when changing to the "new".

Current behavior

If reload is enabled it always reloads even if, because the debugger is not running, the page cannot be reloaded.

Expected behavior

Please add another state to the enabled setting: reload, disabled, and "reload under debugger"

d housing

Installed product versions

  • Visual Studio: [example 2015 Professional]
  • This extension: [example 1.1.21]

Description

Replace this text with a short description

Steps to recreate

  1. Replace this
  2. text with
  3. the steps
  4. to recreate

Current behavior

Explain what it's doing and why it's wrong

Expected behavior

Explain what it should be doing after it's fixed.

Reload not working

Installed product versions

  • Visual Studio: 2019 16.6.2
  • This extension: 1.1.27

Description

Reload not working.

Steps to recreate

  1. Start application with Local IIS in Edge Browser on Windows 10 64bit
  2. Change content of page
  3. Save page

Current behavior

Page not reloaded.

Expected behavior

Page should reload.

NOT FIXED: Not refreshing on reload of cshtml file

Hi @madskristensen,

Firstly we appreciate the effort you make towards all your extensions.

This issue keeps getting closed, even though it doesn't always get fully fixed:
It was first noted here:
#5

Then the same type of issue was opened here:
#6

In both cases the issue gets closed without someone verifying that it actually is fixed

Just to recap:
CSHTML - NOT WORKING
CSS - WORKING
JS - WORKING

Again I'll open the invitation to you, if you would like to remote into my computer and test this out yourself you are welcome to, let's try and get this issue resolved

UPDATE
I finally got the the browser to reload on save for .cshtml

The issue is that my projects are on my D drive under D:\Programming\Projects
I then moved one of my projects onto the C drive and it instantly worked

I'm not sure why it doesn't work on another drive as yet... I'll keep investigating, could be a permission problem?

Proxying requests through another server causes VS to crash

  • Visual Studio: 2015 Community
  • This extension: version 1.0.11

We are using proxying requests through to IIS Express via https://github.com/webpack/webpack-dev-server. When we access a page that has been proxy'd through when this extension is active, VS crashes.

Best info I could dig up by attaching another copy of VS:

System.ArgumentNullException was unhandled
Message: An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
Additional information: Value cannot be null.

I'm not actually fussed about this extension working in this scenario (I imagine it's some limitation with proxying web socket requests), and webpack-dev-server is fulfilling this role, however would be good for VS to keep on trucking.

At the moment, having to enable/disable this plugin depending on the particular project and the tools used.

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.