Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigate to Scala classes in Analyze Stack Window #6640

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

jtulach
Copy link
Contributor

@jtulach jtulach commented Oct 31, 2023

Code base of my project is full of Scala classes. While analyzing stacktraces with Analyze Stack Window I'd like to jump not only to Java classes, but also to sources coming from other languages like Scala.

With this PR I can do that:

Scala in Analyze Stack Window

Btw. to reproduce the same picture one needs Enso 4 NetBeans plugin. Tested on revision 3d23c6a8d.

@jtulach jtulach requested review from dbalek, sdedic and lahodaj October 31, 2023 06:48
@jtulach jtulach self-assigned this Oct 31, 2023
@@ -60,8 +60,8 @@ class StackLineAnalyser {
"at\\s" + // initial at // NOI18N
"("+IDENTIFIER+"(?:\\."+IDENTIFIER+")*/)?" + // optional module name // NOI18N
"(("+IDENTIFIER+"(\\."+IDENTIFIER+")*)\\.)?("+IDENTIFIER+")" + // class name // NOI18N
"\\.("+IDENTIFIER+"|\\<init\\>|\\<clinit\\>)\\((?:"+IDENTIFIER+"(?:\\."+IDENTIFIER+")*/)?" +IDENTIFIER+"\\.java" + // method and file name // NOI18N
"\\:([0-9]*)\\)"); // line number // NOI18N
"\\.("+IDENTIFIER+"|\\<init\\>|\\<clinit\\>)\\((?:"+IDENTIFIER+"(?:\\."+IDENTIFIER+")*/)?" +IDENTIFIER+"\\.?("+IDENTIFIER+ // method and file name // NOI18N
Copy link
Contributor

@dbalek dbalek Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\\.? - why is dot before file name extension optional in the new line pattern?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files may not have extension, was my thought.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In such case whole \\.?("+IDENTIFIER+") should be optional IMHO

@jtulach jtulach merged commit aa95958 into apache:master Oct 31, 2023
@mbien mbien added the Scala label Oct 31, 2023
@neilcsmith-net neilcsmith-net added this to the NB21 milestone Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants