taipy icon indicating copy to clipboard operation
taipy copied to clipboard

Linters auto-complete Config and Gui to lowercase

Open AlexandreSajus opened this issue 1 year ago • 1 comments

This feedback comes from a one-hour beta testing session of scenario management

taipy (the library) has both a Gui and a gui object. When typing from taipy import Gui and pressing Enter to go to the next line, linters will auto-complete by replacing Gui with gui image

This forces me to press Escape or to fix the case error after it happens which is frustrating. It can also lead to errors for new users

The same error is triggered with Config

AlexandreSajus avatar Jan 17 '24 14:01 AlexandreSajus

Hi, I find this topic quite fascinating and would be most grateful if you could share more insights about the fundamental principles behind it within the context of a GitHub discussion.

ooooo-create avatar Mar 03 '24 15:03 ooooo-create

Hello @AlexandreSajus and @ooooo-create,

The gui and Gui are 2 different objects in Taipy package.

  • Gui is the object that can be used to start the GUI service
  • gui is a module, that from it you can import other Gui object, like builder, page, ...

The same argument can be pointed out for Core - core, Config - config.

I don't think there is anything we can do about it since we want taipy-gui, taipy-core, and taipy-config can be functional as independent packages.

trgiangdo avatar Mar 22 '24 05:03 trgiangdo

Yeah I'm also not sure how we could fix this outside of doing a lot of renaming. You can close as non-planned

AlexandreSajus avatar Mar 22 '24 08:03 AlexandreSajus