Skip to content

[cling] fix .Class cmd, should accept name#10350

Merged
jalopezg-git merged 3 commits intoroot-project:masterfrom
ferdymercury:Class-cmd
Apr 25, 2022
Merged

[cling] fix .Class cmd, should accept name#10350
jalopezg-git merged 3 commits intoroot-project:masterfrom
ferdymercury:Class-cmd

Conversation

@ferdymercury
Copy link
Collaborator

This Pull request:

Changes or fixes:

.Class <name> command should be the verbose variant of .class <name>, as in CINT, but right now it is ignored.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

2 similar comments
@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@ferdymercury ferdymercury marked this pull request as ready for review April 7, 2022 14:10
@phsft-bot
Copy link

ferdymercury added a commit to root-project/roottest that referenced this pull request Apr 7, 2022
@ferdymercury
Copy link
Collaborator Author

ferdymercury commented Apr 7, 2022

Build failed on ROOT-ubuntu16/nortcxxmod. Running on sft-ubuntu-1604-1.cern.ch:/build/workspace/root-pullrequests-build See console output.

Failing tests:

* [projectroot.roottest.cling.operator.roottest_cling_operator_runEqualTest](https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/141962/testReport/projectroot.roottest.cling/operator/roottest_cling_operator_runEqualTest/)

* [projectroot.roottest.cling.templateMembers.roottest_cling_templateMembers_runoperatorEqual](https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/141962/testReport/projectroot.roottest.cling/templateMembers/roottest_cling_templateMembers_runoperatorEqual/)

* [projectroot.roottest.cling.template.separateDict.roottest_cling_template_separateDict_make](https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/141962/testReport/projectroot.roottest.cling.template/separateDict/roottest_cling_template_separateDict_make/)

tests fixed via root-project/roottest#865

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

2 similar comments
@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@ferdymercury ferdymercury requested a review from pcanal as a code owner April 7, 2022 15:39
@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot

This comment was marked as outdated.

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

@ferdymercury
Copy link
Collaborator Author

Indirectly related Issue: #10140

Copy link
Contributor

@jalopezg-git jalopezg-git left a comment

Choose a reason for hiding this comment

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

Many thanks for the PR, @ferdymercury! Just some tiny changes to get this in. 🙂

@jalopezg-git
Copy link
Contributor

Assigned @jalopezg-r00t, who I think is the expert and code owner of the interpreter.

Well, one of the experts I would say. 😄

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

Copy link
Contributor

@jalopezg-git jalopezg-git left a comment

Choose a reason for hiding this comment

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

Many thanks, @ferdymercury! Almost there (just a couple of minor changes)!

Also, before merging, can we rebase and rewrite as 3 commits, as in (i) [core] Minor fix in '.help' command output; (ii) [cling] Minor aesthetic fix in cling '.help' message; and (iii) [cling] Allow '.Class' command to take a class name or so?

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

2 similar comments
@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

* fix indent as with cling
* adapt indent in shortcuts too
* make .Class the verbose equivalent of .class and take into account name passed to .Class. As it was the case in CINT.
* merge similar functions into one with a verbose arg
@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@ferdymercury
Copy link
Collaborator Author

ferdymercury commented Apr 13, 2022

Also, before merging, can we rebase and rewrite as 3 commits,

Thanks to you for the review. I rebased as suggested :)

(Side note: if you are going ahead with the merge, the corresponding roottest PR root-project/roottest#865 should be merged at the same time, too.)

Copy link
Contributor

@jalopezg-git jalopezg-git left a comment

Choose a reason for hiding this comment

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

LGTM!

@jalopezg-git
Copy link
Contributor

jalopezg-git commented Apr 13, 2022

(Side note: if you are going ahead with the merge, the corresponding roottest PR root-project/roottest#865 should be merged at the same time, too.)

Let me just confirm something first. 🙂

@Axel-Naumann, I guess that the experiments are not trying to parse the output of .class / .Class in any case, so the change should be safe?

@Axel-Naumann
Copy link
Member

the experiments are not trying to parse the output of .class / .Class in any case

Agreed, I'd expect only our tests to notice format changes.

@jalopezg-git
Copy link
Contributor

@phsft-bot build

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, ROOT-ubuntu2004/soversion, mac1015/python3, mac11/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

Build failed on ROOT-ubuntu2004/soversion.
Running on root-ubuntu-2004-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link

Build failed on mac11/cxx17.
Running on macphsft23.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link

Build failed on mac1015/python3.
Running on macitois22.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

jalopezg-git pushed a commit to root-project/roottest that referenced this pull request Apr 25, 2022
Apply output format changes required for root-project/root#10350.
@jalopezg-git jalopezg-git merged commit f39eb0e into root-project:master Apr 25, 2022
@ferdymercury ferdymercury deleted the Class-cmd branch April 25, 2022 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants