Comments (5)
Does it take more than 10 seconds for the app to load? If so it’s probably this line, that gives up after 10 seconds:
Line 54 in 80560bf
Maybe it should never time out, but each new attempt to launch should cancel all previous attempts? Or we could simply increase the timeout to something more conservative—10sec is pretty stingy.
from shiny-vscode.
yes, it takes more than 10 seconds to load the dataset and extracting only 10 rows. The thing is that I'm connecting to a databricks server so the connection and loading takes a little bit of time.
One further comment, the app never appears on the right sample browser, it's just stuck after the "INFO" message
from shiny-vscode.
If I restrict the query to only get 10 rows from source instead of having the entire data set, then the query takes less than 10 seconds approx and the app does load
from shiny-vscode.
Maybe it should never time out, but each new attempt to launch should cancel all previous attempts? Or we could simply increase the timeout to something more conservative—10sec is pretty stingy.
We close existing Shiny
terminals with a new launch attempt (a new click on the Play button, not an auto-reload), which I imagine would have the same effect as cancelling previous attempts, right? In which case, upping the timeout is more reasonable.
We could also do something like wait 15 seconds and then ask the user via a dialog box if they want to keep waiting or kill the app.
from shiny-vscode.
@gadenbuie Killing the console would prevent multiple Shiny processes from starting, but I don’t think it will stop openBrowserWhenReady—oooh but maybe that’s the ideal fix. openBrowserWhenReady can be notified or can query whether its owning terminal is still open, and if not, don’t open the browser. What do you think?
from shiny-vscode.
Related Issues (20)
- Rename repo "shiny-vscode"
- Add `shiny.r.runApp` command HOT 1
- Update README to include Shiny for R apps and options
- Rename extension HOT 1
- Remove unnecessary `onCommand` events from `package.json`
- Improve support for `ui.R` and friends style apps
- broken link to docs HOT 2
- Escaping for `cmd.exe` unnecessarily escapes parenthesis
- PowerShell 7 uses `pwsh.exe` HOT 1
- Allow port settings to take a range of ports
- QA Testing of rc-v0.2.0 HOT 1
- Extension ID renaming plan HOT 3
- v0.2.0 release checklist
- Add shinylive `onUri` handler
- Define path to R executable HOT 1
- Add command to run a packaged Shiny app as a gadget
- shiny extension not working HOT 5
- Provide user feedback when creating a shinylive link for a dir with several files takes a while HOT 1
- Cannot open the external Shiny webpage. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shiny-vscode.