Bug 140994 - error message in basic is confusing ,when I assign value that has same name as existing function
Summary: error message in basic is confusing ,when I assign value that has same name a...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.1.1.2 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-13 00:38 UTC by tripod312
Modified: 2025-09-01 03:11 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tripod312 2021-03-13 00:38:30 UTC
error message in basic is confusing ,when I assign value that has same name as existing function

when i execute basic code in which assign value that has same name as existing function,like 

sub test1
	year = 1
end sub

 I got error
"アクションはサポートされていません。無効なプロシージャの呼び出し" which means invalid procedure call.

I think this error message is confusing.its better that the message is like "try to assign value that has same name as existing function"

Version: 7.1.1.2 (x64) / LibreOffice Community
Build ID: fe0b08f4af1bacafe4c7ecc87ce55bb426164676
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL
Comment 1 raal 2021-04-11 09:37:52 UTC
Message in english: Action not supported. Invalid procedure call.

Message looks good to me, leaving unconfirmed.
Comment 2 Buovjaga 2022-04-01 08:17:50 UTC
Alain: what do you think? Is it possible to specify the error message like this?
Comment 3 Alain Romedenne 2022-04-01 13:09:03 UTC
Ideally, such a use should be detected at compile time.

Instead a runtime error number 5 - Invalid procedure call - is returned; prepended with "Action not supported." text that isn't a documented error message.

Indeed, One may expect some clearer message such as, but not limited to:

 951 Unexpected symbol 'year'
 958 Sub procedure or function procedure already defined
 968 Symbol already defined differently
1004 Error executing a method

I don't have a M$ environment to examine VBA behaviour at compile time and during runtime. Someone holding M*Office needs to confirm this report.
Comment 4 Andreas Heinisch 2023-01-09 20:08:06 UTC
M$-Office shows a compiling error with "argument is not optional"
Comment 5 Xisco Faulí 2025-03-04 11:36:12 UTC
Hello,
It's been a while since this issue was reported.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 6 QA Administrators 2025-09-01 03:11:45 UTC
Dear tripod312,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
 
Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-NeedInfo-Ping