Page 1 of 1
IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 7:40 am
by sec
IDE bug: if paste
, "/as" becomes "/As"
It should not do that, maybe need fix autocomplete
Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 8:20 am
by Marc56us
, "/as" becomes "/As"
It should not do that, maybe need fix autocomplete
Error:
Line 1: A variable can't be named the same as a keyword: As.
'As' is not listed in PB functions/keyword, but is used in
Import : EndImport
Code: Select all
Import "Filename"
FunctionName.<type>(<parameter>, [, <parameter> [= DefaultValue]...]) [As "SymbolName"]
...
VariableName.<type> [As "SymbolName"]
EndImport
Not a bug, 'As' is a keyword

Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 9:02 am
by sec
Marc56us wrote:, "/as" becomes "/As"
It should not do that, maybe need fix autocomplete
Error:
Line 1: A variable can't be named the same as a keyword: As.
'As' is not listed in PB functions/keyword, but is used in
Import : EndImport
Code: Select all
Import "Filename"
FunctionName.<type>(<parameter>, [, <parameter> [= DefaultValue]...]) [As "SymbolName"]
...
VariableName.<type> [As "SymbolName"]
EndImport
Not a bug, 'As' is a keyword

Hi
I see, in fact that behavior did my command line run wrong

ex: RunProgram(cmd$," << paste that line here...
I don't want turn off neat IDE option "Preferences\Editor\Editing\ Enable Case correction",
I still think it's bug

Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 9:16 am
by Marc56us
I see, in fact that behavior did my command line run wrong

ex: RunProgram(cmd$," << paste that line here...
I've tested it. Copying "args /as args" into a string (even if not yet closed), does not modify the case
Works as expected: Case correction is disabled when paste text inside (or after) quotation. No bug.
" ' ; (and some other characters) Disable keyword detection up to the closing character
(Tested 5.71B1 x64 Windows)

Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 3:28 pm
by sec
Marc56us wrote:I see, in fact that behavior did my command line run wrong

ex: RunProgram(cmd$," << paste that line here...
I've tested it. Copying "args /as args" into a string (even if not yet closed), does not modify the case
Works as expected: Case correction is disabled when paste text inside (or after) quotation. No bug.
" ' ; (and some other characters) Disable keyword detection up to the closing character
(Tested 5.71B1 x64 Windows)

Hi
Maybe when i did copy without “ ‘ ; before it, so it did case correction wrong. Maybe not bug but need improve? Did you try similar this feature in
https://code.visualstudio.com/ ,best ever code editor
Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 3:40 pm
by kenmo
I stand by what I said 3 years ago, Auto-case should only happen when you type a word or auto-complete a word
viewtopic.php?f=3&t=64788
Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 4:07 pm
by Marc56us
Code: Select all
Maybe when i did copy without “ ‘ ; before it, so it did case correction wrong. Maybe not bug but need improve? Did you try similar this feature in https://code.visualstudio.com/ ,best ever code editor
No, I haven't tried, I prefer to use the internal editor which is lightweight and has all the tools of the language integrated.
I prefer that IDE does little but do it quickly and well. For the rest, if it reformats to copied/pasted when I forgot a " then I do CTRL+Z

Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 4:09 pm
by sec
kenmo wrote:I stand by what I said 3 years ago, Auto-case should only happen when you type a word or auto-complete a word
viewtopic.php?f=3&t=64788

probably we need proof its bug , so it will fix quickly?
3yrs time fly

Re: IDE bug: if paste "args /as args" , "/as" becomes "/As"
Posted: Wed May 22, 2019 4:14 pm
by sec
Marc56us wrote:Code: Select all
Maybe when i did copy without “ ‘ ; before it, so it did case correction wrong. Maybe not bug but need improve? Did you try similar this feature in https://code.visualstudio.com/ ,best ever code editor
No, I haven't tried, I prefer to use the internal editor which is lightweight and has all the tools of the language integrated.
I prefer that IDE does little but do it quickly and well. For the rest, if it reformats to copied/pasted when I forgot a " then I do CTRL+Z

I like your idea! I tried vscode vs notepad++ with python , goback notepad++ ftw
With PB, never ever code it outside internal editor. That is reason i put this request as the bug
