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
File explorer folders not showing content when clicking on them #3092
Comments
Hi @Jorgee97 , Thanks for reporting!
Definitely. I've seen this come up a few times, but haven't been able to reproduce locally - trying to figure out what is different between the environments. I just opened #3096 to add some additional logging around the expand-node-path - maybe can give us some clues. In particular, we weren't logging if there was an error while executing the Some other info that might be helpful:
Might be related to #2213 - there was a similar issue expanding the folder on Windows there, but went away after updating |
Thanks for the quick response @bryphe |
Interesting! Thanks for testing and sharing the results @Jorgee97 . Indeed, there is nothing suspicious about the path itself - no special characters, under the 260 character limit imposed by some older path APIs. Glad one of those options works. For the attempt that failed, 2.2:
Just to confirm, the folders didn't expand in that case? Or did something else go wrong? I suspect that the path must be coming through in a different form in that case where it isn't working 🤔 |
The folders didn't expand when opening from the file context menu |
I had been struggling with the same problem, but now thanks to @Jorgee97 at least I have a workaround ;-) (i.e. opening the project via methods 2.1 or 2.3) |
Thanks @Jorgee97 and @BorisVSchmid for the all the information! With your help, I've been able to reproduce this locally consistently - and working on a fix in #3142 |
__Issue:__ On Windows, there would be cases in which the explorer directory nodes would not expand on click or keyboard interactions. __Defect:__ Windows paths would be split with the default windows path separator `\`, but in some cases normalized paths would make it to the explorer, and the split-on-default-separator logic wouldn't work (in particular, the logic to split up a path into hashes would fail). __Fix:__ Working with paths-as-strings is problematic for reasons like this - especially since `\` and `/` are both valid directory separators in Windows. The `string` type isn't very useful for representing paths, at least not in the context of a stronger type system, because just looking at a `string` leaves a lot of questions open about how the path is / should be interpreted: - Is this an absolute or relative path? - Are the directory separators normalized? - Is there a trailing slash? To fix this, I've refactored the pipeline for the `Component_FileExplorer` and `Feature_Explorer` to use strongly-typed paths with the [`Fp`](https://github.com/reasonml/reason-native/blob/master/src/fp/Fp.rei) library. This ensures that we have a consistent, normalized representation for paths up-and-down our pipeline. __Next steps:__ - Need to continue refactoring `string`-paths to strongly-typed `Fp.t` paths. Fixes #3092 Fixes #2213
This has been happening for quite a while, and I think is a pretty important feature and hasn't been addressed yet and as I couldn't find a similar Issue created yet I will leave it here with a gif that shows the behavior.
If you guys need any more info I would be happy to help sorting this issue
The text was updated successfully, but these errors were encountered: