CSharpShellApp icon indicating copy to clipboard operation
CSharpShellApp copied to clipboard

automatically capitalized

Open Rystars opened this issue 2 years ago • 11 comments

https://github.com/radimitrov/CSharpShellApp/assets/96302690/077f90f5-9a62-46d5-b8b7-363845916757

see that when you create a new file on the tab, the first letter in the namespace is lowercase, but when you finish creating the file, the first letter in the namespace becomes uppercase

Rystars avatar Jun 09 '23 16:06 Rystars

Yes I agree. Every time I have to manually fix it

devastaza avatar Jun 09 '23 20:06 devastaza

Looks like I implemented it like this intentionally for naming conventions ~2 years ago. Logic seems to be that C# is pascal-case in 99.8% of use-cases so make that a bit easier with Android keyboards. However in hindsight that isn't the best idea and it might even mislead beginners to think class names are case insensitive. I'll remove autocapitalization here.

radimitrov avatar Jun 11 '23 19:06 radimitrov

@Rystars That should show up if you enable text composition in the app's keyboard settings. Should work with GBoard, however if you experience input problems you will need to disable it again.

radimitrov avatar Jun 12 '23 05:06 radimitrov

Ok, thank you

Rystars avatar Jun 12 '23 07:06 Rystars

Screenshot_2023-06-12-19-08-31-878_com radinc csharpshell

System.NullReferenceException: Object reference not set to an instance of an object at CSharpShellCore.Activities.MainActivity.InitProject(String projectFilePath, Boolean calledFromLoadProject) at CSharpShellCore.Activities.MainActivity.LoadProject(String filepath) at CSharpShellCore.Activities.MainActivity.LoadCurrentProject() at CSharpShellCore.Activities.MainActivity.LoadNewProject(String projPath, Boolean showLoadingToast) at CSharpShellCore.Activities.MainActivity.OpenFile()

@radimitrov after updating now there is an error then when opening the project

Rystars avatar Jun 12 '23 12:06 Rystars

@Rystars Can you provide steps to replicate this? Seems to be working. It doesn't seem possible that any recent changes are responsible.

radimitrov avatar Jun 12 '23 13:06 radimitrov

@radimitrov

https://github.com/radimitrov/CSharpShellApp/assets/96302690/ec4ddf9b-ee3c-4e7a-9620-f873fd6f980c

Rystars avatar Jun 12 '23 13:06 Rystars

@Rystars What Android version this? This looks like multiple IO errors due to denied storage permissions, however you are clicking grant here. More precisely looks like there are read only permissions.

radimitrov avatar Jun 12 '23 13:06 radimitrov

@radimitrov

my cellphone is android 10 (Redmi9C)

oh it turns out that the first time I downloaded it, then immediately went into the application it was an error, but when I exited then entered again the error was gone

Rystars avatar Jun 12 '23 22:06 Rystars

@Rystars Then storage access works now? Strange. Some kind of permissions/system glitch, then.

radimitrov avatar Jun 13 '23 06:06 radimitrov

yes now it is working

Rystars avatar Jun 13 '23 11:06 Rystars