-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uiOutput not working with shinycssloaders 0.3 #39
Comments
Could you produce a minimal reproducible example? I just tried a very simple uiOutput with shinycssloaders and it worked fine. |
I also tried with small examples, it worked perfectly. I removed shinycssloaders out of PhyloProfile and the tool also worked again. I think shinycssloaders has some conflicts with any other dependencies in PhyloProfile, but I couldn't figure out which one :-( I will keep trying to reproduce the issue independently from PhyloProfile. One thing I can confirm currently is that, rendering other shiny elements works just fine with shinycssloaders loaded, as long as they are not put inside a uiOutput. And it is not necessary that any functions of shinycssloaders are applied on that element, like the
If you found something, please let me know. Thanks again! |
Hi Dean,
You will see that the |
Can you clarify the exact behaviour that's expected and what you see instead? I tried running this and I'm not sure what issue I'm supposed to be seeing. This piece of code is also quite long and involves many moving pieces, it'd help if it was cut short to only include the essential parts Thanks |
Hi Dean, I hope this example is clearer. This code worked:
With that code I would like to print the message "The light is turned on" if I select the option and show nothing if I select If I uncomment the shinycsloaders::withSpinner, it will not work anymore, the message is always empty. P.S.: this version works also:
but with this I cannot use an output variable as the condition for the |
Hi. I am seeing the same problem: apparently, these "kind" of calls have problems on v0.3.0 shiny::conditionalPanel(
condition = "output.pcolt_onview", {
shinycssloaders::withSpinner(
leaflet::leafletOutput("pcolt_map_view", width = "95%")
)
}) Inspecting the browser reveals these kind of errors, both in the example by @trvinh and in my app: HTH! |
Thanks for the information. I'm currently traveling and unable to troubleshoot, but your screenshot does provide some hints. It looks like this is likely caused by #27 - and now that I look at that thread, it does seem like @keqiang has reported this same issue. To verify 100% that this is the cause, could you try installing the package from github both before and after that change? So try doing @merlinoa do you think you might have an idea what the issue here is? I'm not familiar with this javascript code |
I can confirm that rolling back to before #27 removes the issue. Also, I tested this open PR by @bthieurmel #31 and it seems to solve it. |
Just FYI, there are others with similar problems: https://stackoverflow.com/questions/59895418/why-conditionalpanel-does-not-work-on-first-attempt |
@lbusett @ismirsehregal @lbusett I just submitted a commit that I hope fixed this. Could you please install the latest github version and let me know? |
@daattali it works for me 👍 |
@daattali Thanks for your effort! Unfortunately in my app of concern I'm still unable to display a spinner. They are right away started with classes "load-container load1 shiny-spinner-hidden". I'd love to share a minimal example but so far wasn't able to generate one showing the issue. |
@daattali All seems good also on my side. Thanks for the quick fix! |
@ismirsehregal it'd be very helpful if you keep trying and show me a minimal example! |
@daattali sorry, still no luck. But I don't want to block your development here. I'll let you know when I found the issue. |
Feel free to open an issue when you can reproduce |
@ismirsehregal I plan on releasing to CRAN soon, so if you are able to reproduce a bug please let me know |
Hi @daattali , I was just wondering if you are still planning for a new CRAN release soon(ish) to fix this: that way I could avoid depending from the github repo for a couple of Shiny apps I am mantaining. thanks in advance, Lorenzo PS: Let me know if I can halp in any way, in case. |
I'll put it in my calendar to submit next week if I don't hear about any more regression bugs. When I submitted the current version to CRAN, it was stable for over a year in GitHub and nobody had any issues opened, and a week after it went to CRAN I received a ton of issues, so I'm trying to be careful not to repeat that :) |
@ismirsehregal please let us know if you still experience issues |
@daattali nothing to add from my side, I think the current version can be submitted. Thanks again for your great work! Cheers |
Out of curiosity: Was there any other blocking issue? Or just a lack of time? |
The latter, sort of. I try not to release multiple packages in succession to not overwhelm myself with new bug reports and I just had too many other packages recently getting updated |
By the way, you can use https://cranalerts.com/ if you want to get notified when it hits CRAN |
Hi,
today I installed the tool PhyloProfile (from Bioconductor) and updated all of its dependencies including the shinycssloaders. Suddenly that tool worked incorrectly, some of the uiOutput elements couldn't be rendered and it showed no error messages, they are just empty.
When I downgrade shinycssloaders back to version 0.2.0, it worked again.
Have you ever encountered the same issue like that, or does the new version have some conflicts with other libraries?
I am attaching here the sessionInfo if it can help
With the shinycssloaders v0.2.0 I got this (please notice the
![image](https://user-images.githubusercontent.com/19269760/72724759-7e5d7f80-3b84-11ea-8ce4-48ca03b003a7.png)
fileInput
Upload input file and the two 1st variable and 2nd variable, they was rendered within a uiOutput)With the v0.3.0, it became
![image](https://user-images.githubusercontent.com/19269760/72725007-296e3900-3b85-11ea-966d-285069112850.png)
Many thanks!
Vinh
The text was updated successfully, but these errors were encountered: