uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Strange things happens in the editor when you copy and paste the same method in an object #531

Closed gcrespi closed 8 years ago

gcrespi commented 8 years ago

when you have a method duplicated in the same object, and you want to rename (manually) one of them the editor goes crazy and shows the text a pair of lines below, it generally normalizes when saving the file.

captura de pantalla de 2015-12-26 14 23 38

captura de pantalla de 2015-12-26 14 24 02

matifreyre commented 8 years ago

This kind of things also happen sometimes when you split a sentence in two lines, like: image

After just pressing "enter" to split the line, it gets like: image

You can see it inserts a blank line before. Now, if I press ctrl + z to undo the change: image

It completes the original line back, but doesn't remove the second one!

You can scroll up or down until it's not visible and back to this rows and you'll see it corrected, so it seems a visual problem only (but it's really annoying). Even if you move the cursor up and down with the arrows (after messing it up as explained before) it does similar weird things.

javierfernandes commented 8 years ago

I think this is related (somehow) with the static diagram. I never seen this happened with the static diagram view closed

On Thu, Feb 4, 2016 at 12:52 PM, Matías Freyre notifications@github.com wrote:

This kind of things also happen sometimes when you split a sentence in two lines, like: [image: image] https://cloud.githubusercontent.com/assets/10454118/12820273/1fa4af4c-cb3d-11e5-8dd6-8638d4f2f3a0.png

After just pressing "enter" to split the line, it gets like: [image: image] https://cloud.githubusercontent.com/assets/10454118/12820307/44b54030-cb3d-11e5-9346-04794420b1db.png

You can see it inserts a blank line before. Now, if I press ctrl + z to undo the change: [image: image] https://cloud.githubusercontent.com/assets/10454118/12820352/717d0382-cb3d-11e5-8edb-47f22c51fbad.png

It completes the original line back, but doesn't remove the second one!

You can scroll up or down until it's not visible and back to this rows and you'll see it corrected, so it seems a visual problem only (but it's really annoying). Even if you move the cursor up and down with the arrows (after messing it up as explained before) it does similar weird things.

— Reply to this email directly or view it on GitHub https://github.com/uqbar-project/wollok/issues/531#issuecomment-179911953 .

matifreyre commented 8 years ago

It still happens to me even after I close the static diagram view. Is there anywhere a downloadable packaged version with the latest updates? I'd like to try some environment that I haven't had any chance to mess up anyhow.

fdodino commented 8 years ago

Related to #531 I'm closing also this issue, please reopen it if you experience strange behaviors again.

flbulgarelli commented 8 years ago

Related to #531

@fdodino it is related to itself?

fdodino commented 8 years ago

Yes, because as Pancho Ibáñez said: "Everything is related with everything" :)

343

And there was also another issue related with this, I can't find it.