You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project file has WebSharperDownloadResources set to true.
The app.config has UseDownloadedResources set to true.
Turn off the internet connection.
This step is artificial but the problem is real on temporary connection issues.
Make sure the project is clean, i.e. does not have previously downloaded resources.
Build and run such a WebSharper project with the above conditions.
As a result,
The folder WebSharper\WebSharper.JQuery.Resources.JQuery is empty (expected to have downloaded jquery-3.1.1.min.js)
When started, the web page fails to load the missing local jquery-3.1.1.min.js
Moreover, restore the internet connection (or imagine the temporary downtime is
over), build and run again. The build is not triggered (all is up-to-date, I
presume) and the resources are not downloaded. The build has to be cleaned,
"made dirty", and started again -- then only it works.
Suggestion: if WebSharper fails to download a resource then it should fail or
at least write a warning.
The text was updated successfully, but these errors were encountered:
Currently WebSharperDownloadResources accepts true and false. I would make true throw an error on compile-time and expand the available values by adding a new option "WarnOnly" that gives only a warning.
Scenario:
WebSharperDownloadResources
set to true.app.config
hasUseDownloadedResources
set to true.Build and run such a WebSharper project with the above conditions.
As a result,
WebSharper\WebSharper.JQuery.Resources.JQuery
is empty (expected to have downloadedjquery-3.1.1.min.js
)jquery-3.1.1.min.js
Moreover, restore the internet connection (or imagine the temporary downtime is
over), build and run again. The build is not triggered (all is up-to-date, I
presume) and the resources are not downloaded. The build has to be cleaned,
"made dirty", and started again -- then only it works.
Suggestion: if WebSharper fails to download a resource then it should fail or
at least write a warning.
The text was updated successfully, but these errors were encountered: