Skip to content
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

Renaming files in folders causes strange UI display #259

Closed
dungpa opened this issue Feb 21, 2015 · 7 comments
Closed

Renaming files in folders causes strange UI display #259

dungpa opened this issue Feb 21, 2015 · 7 comments

Comments

@dungpa
Copy link
Contributor

dungpa commented Feb 21, 2015

First we have two files inside a folder:
image

After renaming File94.fs to File95.fs, File95.fs moves on top (even on top of References nodes):

image

It's a UI bug since the project is in good state. Reopening the project fixes the display.

See this in both VF# 3.1.2 and VF# 4.0.0.

@dungpa
Copy link
Contributor Author

dungpa commented Feb 21, 2015

It's an annoying bug and it manifests in Folder organization feature in VFPT.

I gave a try at fixing it but didn't find a way.
@KevinRansom @latkin @vladima Could you guys give some pointers to investigate further? Thanks.

@dungpa
Copy link
Contributor Author

dungpa commented Mar 6, 2015

@enricosada
Copy link
Contributor

hey @dungpa you know other bugs like this one? with node moved in another folders?

@dungpa
Copy link
Contributor Author

dungpa commented Apr 1, 2015

@enricosada I recalled another similar bug. See the last sentences at http://fsprojects.github.io/VisualFSharpPowerTools/folderorganization.html#Limitations.

Renaming a folder using standard F2 shortcut (inplace editing) is buggy due to issues inside F# project system.

Here is a long repro fsprojects-archive/zzarchive-VisualFSharpPowerTools#313 (comment).

I can't seem to narrow down to a smaller repro. Could you have a quick look? Thanks.

@enricosada
Copy link
Contributor

@dungpa i'll try a quick look, i think is renaming the physical directory into f1 before the file, but fix depend on how messy is the code.
i really want to fix the project system but is easier not one bug at a time, the code need a refactor, see my other pr on fix already rendered folders bug.

Maybe we need to summarize all the bugs on project system (not language service) and lacking features on a issue/wiki for status and roadmap. There are good example like pytools/nodejstools.
i'll write a post/issue/wiki with my ideas, i'll ping you and @vasily-kirichenko and @fsprojects/visualfsharppowertools for feedback ( create a team in the organization 😄 )

As @KevinRansom said, for Dev14 is too late for major refactoring, but maybe we can start work for next iteration

@enricosada
Copy link
Contributor

yes the directory is renamed before the file, i'll check the code

@dungpa
Copy link
Contributor Author

dungpa commented Apr 3, 2015

@enricosada Great. Do you happen to find a smaller repro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants