Internet Explorer 8 starts to download GWT javascript files instead showing them as page after resetting - gwt

Additional Information:
Plarform: Windows 7 Latest Updates, Windows XP Comp View Virtual Machine
Version: Internet Explorer 8.0.7601.17514
I am developing a gwt application and recently get this problem:
With fresh installation of Windows 7 and ie8 everything works fine, but after resetting all the configuration data, ie8 starts to prompt dialog for downloading javascript files instead rendering them in page. It is more interesting that this does not occurs every time, but on some machines looks fine after resetting, on others is disaster. Looks like some kind of specific Windows configuration, because if it happens with Windows 7, it happens too with the compatibility mode for Windows XP.
Steps to reproduce:
Go to Internet Options
Go to General Tab -> Click on Delete browsing history on exit -> Click on Delete button
Go to Security Tab -> Click on Reset all zones to default level
Go to Advanced Tab -> Restore advanced settings
Go to Advanced Tab -> Click on Reset Button -> Click on Delete Personal Settings Checkbox -> Click on Reset Button
Restart Internet Explorer 8 and try to start gwt application
Thank you for the answers in advance.
P.S. Can try to reproduce the problem with: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCheckBox

It's probably because of the unknown content type of the files.
Try to add:
<mime-mapping>
<extension>js</extension>
<mime-type>application/x-javascript</mime-type>
</mime-mapping>
to you web.xml

Related

How to make firefox developer edition as default browser for development [duplicate]

I am setting up my VS Code environment for the first time, but I can't figure out how to set Chrome as the default browser for the workspace.
Go to file-> preferences -> user settings -> search "By Default it will open your default favorite browser" set your browser.
The other StackOverflow questions regarding the browser, had to do with opening a specific file. Here are the steps to creating a tasks.json file in a brand new environment.
From the Tasks menu, Select 'Configure Tasks'
The entry field prompts you for 'Select a task to configure'
Choose 'Create tasks.json file from template'
Edit the file to include the following block:
{
"version": "0.1.0",
"command": "Chrome",
"windows": {
"command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
},
"args": ["${file}"]
}
Chrome can be launched by way of debugging your application. Within launch.json, the configurations[].serverReadyAction.action configuration was given a possible value of debugWithChrome in the VS Code February 2019 release. Note that this will also require you have the Debugger for Chrome extension installed. You will not receive a warning if the extension is not installed and you've configured launch.json to use debugWithChrome.
Note: Configuring launch.json with debugWithChrome will work even if you launch using CTRL+F5 to run the app without debugging.
Go to Settings -> Extensions -> Live Server Config -> Update Default Browser:
This Alternate Way helped me:)
GoTo-->Google Chrome-->Settings-->Default browser-->Set Google Chrome as default browser
The method of modifying tasks.json no longer works in newer versions of Visual Studio Code. The easiest way to be able to launch your code in a browser is to install the Open in Browser extension from the marketplace.
After it is installed and VS Code is reloaded, you can go to your code and press ALT + B to launch your application in your default browser or ALT + SHIFT + B to select the browser you want to use.
You can also right click and select these option from a drop down menu, but I mention this last because this currently does not work in some versions of VS Code.
Just a helper for the windows users, I just installed windows 10 again and I was wondering how do I set my vscode to open the server (web) using chrome instead of edge, so to do that you just have to configure your windows to use google chrome as default, you don't need to change anything in vscode, I hope this helps someone.
ps: normally you can go open browser you want to be default and setup the configuration. so in chrome you have to go to configurations and scroll down to default browser.
When you want to use your own browser using "Open with Live Server" without change OS globally configuration.
In Windows, Visual Studio Code (ver. 1.70.1 (July 2022)). Go to "File" > "Preferences" > "Settings"
Then select a tab, "User" tab if you want your desired browser for all your projects, or select "Workspace" tab or "ProjectName" tab for especified projects.
Then go to "Extensions" > "Live Server Config" > "Settings: Custom Browser" finally change the 'null' value selecting the browser of your preference from the list (apparently this list depends on installed browsers but i'm not sure).
search for local.testsettings on vscode on the search and for web tests, change the browser to chrome and apply.
The Live Server extension was not appearing for me on settings. However, I installed Open in Browser and typed "liveServer.settings.CustomBrowser" in settings and the extension appeared with a dropdown box in which I was able to change the default browser.
Hope this helps!
This may be old but I found something that could help.
First go to Settings/Apps/Default Apps. Set your browser as default.
Next go to VSCODE and go to File/Preferences/Settings/Extensions/LiveServerConfig
Then scroll to settings: CustomBrowser
Change it to your custom browser
Note- If the browsers don't show up on VSCODE then you need to set it to default in the settings.
You can adjust settings in your computer to open.HTML file extensions in chrome as a default browser:
for Example in PC windows:
go to Control Panel > Default programs > Associate a file type or protocol with a specific programs >HTML extension and choose Chrome.
In my case changing the default browser in the system settings of my pc did it.
None of the above works in my case(my version is August 2022 1.71) to make it work I went straight to **
File-->Preferences-->Settings-->Extensions-->Plugin open-in browser
** from there was a option which says Default set browser so I choose Brave as there is no ads in it while playing the video as chrome plays ads so for getting a proper feeling of using my self made Jarvis I used Brave.
Thanks
Click settings -> enter: default browser -> find: Open-in-browser:Default -> enter: Google Chrome
Google Chrome > Settings (left sidebar) > Default browser = Google Chrome
Just change your default web browser in your OS.
In Windows 10, you can search "default browser" then the wizard for changing it, will be appear.

github login and sync failure in updated vscode linux version

recently I installed a fresh version of the KDE neon user edition and I updated it and works fine.
I also installed the vscode Debian version and nothing is wrong.
but when I want to login with my GitHub account in vscode for configs sync it opens a firefox tab that I log in to my GitHub and authorizes the vscode and it succeeds and gets back to vscode and instead of signing in and syncing the configs it opens an empty unsaved file named something like this:
did-authenticate\?windowid\=1\&code\=6beea2fcb8a47e0ea49e\&state\=2efc5efd-9c68-4735-a4a0-fd690dd7aec0
in this path : "~/vscode:/vscode.GitHub-authentication"
and after a few seconds canceled notification appears.
I've installed vscode for Debian version 1.63.2 which people in this Github issue had the same problem in version 1.62.2 and they are saying that this problem is fixed for them in version 1.62.3.
I don't have this problem with the Microsoft account sign-in.
what am I missing?
Update:
for testing, I tried to install an extension for vscode and I pasted the URL with vscode protocol in a web browser like this (vscode:extension/GitHub.vscode-pull-request-github), and instead of opening the vscode extensions tab, it goes back to vscode and opens an empty file in the same directory ("~/vscode:/vscode.GitHub-authentication").
so this is vscodes fault that cant handle the vscode: URLs.
I found out what the problem is but I don't know how to fix it
for the record I've updated the vscode today to the 1.64.1 version and still have the problem.
enter image description here
First, you need to get the GitHub Pull Requests and Issues and GitHub extensions together. Then go to the section specified in the photo and give the details of the account and repository you are using. And then it will be fixed.
I ran into this issue myself and discovered that it's because the VS Code command-line application isn't designed to handle URLs, but local file paths. VS Code registers the vscode:// URL scheme with XDG using an appropriate *.desktop file and these URLs should be opened using the command-line program xdg-open. In Firefox, if you have not yet set a default application for vscode:// URLs, then it will ask you for a program to open it with, select /usr/bin/xdg-open. If you have already set it to a different default, you can change it as follows: go to the Menu -> Settings -> General -> Applications -> vscode -> Use other... -> Select /usr/bin/xdg-open as the program for vscode.
With the default for vscode:// URLs set to use xdg-open, then any future integration with VS Code should work naturally to open it as expected.

How to disconnect VSCode completely from accessing the internet?

I've disabled Telemtry and Crash updater from my VSCode settings. Still VSCode makes requests to the internet. I think It does that to query extension results and downloading, update the VSCode software, fetch the internet images in my markdown etc.
Consider I just installed VSCode, setup extensions which I want and then I'll choose to manually update VSCode from now on.
In windows defender "Allow an app through Firewall", I don't see VSCode there so that I can disable internet to VSCode.
I don't want any new extensions or updates, no fetching images from internet etc. Is there a way I can disconnect VSCode completely from accessing the internet?
Go To File --> Preferences --> Settings.
Type in the search bar "Update".
And disable what you need.They have a setting for everything. For example:
Extensions: Auto Check Updates --> Uncheck
Update: Enable Windows Background Update --> Uncheck.
Please See Attached Photo.

"Could not launch external web browser"

error message is "Could not launch external web browser" when running page.
I'd like to launch external web browser in eclipse.
Of course, Preference about web browser was set on.
How to solve this?
this happen because (fighting betweeen google and window this happens 80% in original window) some time window change remove path of google produnds from temperary memory so you need to reselect path in eclipse as follows:
I got my solution by going window in eclipse->preference->general->web browser->restore default->aplly->ok->
then restart eclipse
again window->preference->general->web browser->use external web browser-> new-> select folder of google in c:/programfile/google ->ok->click search->select chrome->apply->ok.
then restart eclipse.
thats it enjoy.
Try setting it by hand under Windows -> Preferences -> General -> Web Browser.
See the details here.
I know it, you must modify your default browser in your OS.
Then click Window-Default system web browser in eclipse.

How to configure Eclipse to always launch the last run configuration, not the current file?

Back in 2008, around version 3.4, Eclipse changed the default behavior of the Run button to attempt to launch the file with focus, rather than launching the same run configuration that was run the last time. How do I get the old behavior back?
According to a post on Loving Software Blog, you change the following preference:
Run/Debug -> Launching panel; Launch Operation section; change radio button to "Always launch the previously launched application".
I've verified that this works in Indigo, the current version.