Bug 383309 - Sequence import does not find present filename packages
Summary: Sequence import does not find present filename packages
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.22.3 (KDE Applications 17.04.3)
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-09 11:03 UTC by Ralf Habacker
Modified: 2022-12-27 06:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Sequence diagram after importing the provided backtrace (37.50 KB, image/png)
2022-12-27 06:32 UTC, Oliver Kellogg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2017-08-09 11:03:31 UTC
umbrello is able to import stack traces in the form shown below.

0	MyMoneySeqAccessMgr::loadAccounts	mymoneyseqaccessmgr.cpp	1086	0x6e60b0	
1	MyMoneyXmlContentHandler::endElement	mymoneystoragexml.cpp	336	0x6dba0c	
2	QXmlSimpleReaderPrivate::processElementETagBegin2	qxml.cpp	4084	0x7ffff49cecde	
3	QXmlSimpleReaderPrivate::parseElement	qxml.cpp	3900	0x7ffff49d98f8	
4	QXmlSimpleReaderPrivate::parseContent	qxml.cpp	4443	0x7ffff49da368	
5	QXmlSimpleReaderPrivate::parseElement	qxml.cpp	3969	0x7ffff49d9b50	
6	QXmlSimpleReaderPrivate::parseBeginOrContinue	qxml.cpp	3514	0x7ffff49dab88	
7	QXmlSimpleReader::parse	qxml.cpp	3456	0x7ffff49daf11	
8	MyMoneyStorageXML::readFile	mymoneystoragexml.cpp	453	0x6dcdd1	
9	KMyMoneyView::readFile	kmymoneyview.cpp	817	0x4c456a	
10	KMyMoneyApp::slotFileOpenRecent	kmymoney.cpp	1655	0x496c0a	
11	runKMyMoney	main.cpp	275	0x4698a5	
12	main	main.cpp	187	0x466f32	

The filename in frame 11 and 12 is interprated as package. If you import an additional sequence diagram having also stack frames using the same filename, umbrello is not able to find the package because it recognizes the '.' in the filename as package hierachy e.g. as main::cpp, while on adding the initial package the dot is not recognized as package hierachy delimiter.
Comment 1 Ralf Habacker 2017-08-09 11:05:50 UTC
How to reproduce ?
1. start umbrello
2. create a new sequence diagram
3. Copy the stack trace from comment 1 to the clipboard
4. paste the stack trace into the sequence diagram
5. repeat step 2., 3. and 4.

What happens ?
A dialog box is shown requesting a new name for 'main.cpp'

What is expected ?
umbrello should use the present namespace 'main.cpp'
Comment 2 Justin Zobel 2022-11-08 06:50:00 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-11-23 05:14:36 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-12-08 05:14:07 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 Oliver Kellogg 2022-12-27 06:32:10 UTC
Created attachment 154838 [details]
Sequence diagram after importing the provided backtrace

I tried this with current umbrello master and the problem did not appear.
See the attached screenshot: The name "main.cpp" appears to be handled as would be expected.
Note: The active language had been C++.
It may be a problem when the activate language is Ada, Java, or Pascal because those languages use "." as a scope separator.