Skip to content

Conversation

@jmarrec
Copy link
Collaborator

@jmarrec jmarrec commented Nov 14, 2024

To only see what I changed after the rebase, the easiest is to go to this PR with comment: jmarrec#1 (review)

You can also just see the last commit: 5a8afe4#diff-fd4f239e9d2dc98194dc1b38ef8202d67ccdd7b75d94a3a32c32c8cd301d0b0cL62-L64

vm.$log.info('Start Measure Manager Server: ', vm.cliPath, ' measure -s ', vm.port);
vm.cli = vm.spawn(vm.cliPath, ['classic', 'measure', '-s', vm.port]);
vm.$log.info('Start Measure Manager Server: ', vm.cliPath, 'measure -s ', vm.port);
vm.cli = vm.spawn(vm.cliPath, ['measure', '-s', vm.port], { cwd: '.', stdio : 'pipe' });
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure whether the { cwd: '.', stdio : 'pipe' } is needed, it was in #267

Comment on lines +102 to +105
// C++ CLI printing errors when requests fail on stderr, eg when post
// data is missing:
// [2024-11-14T13:32:17+01:00] "POST /compute_arguments HTTP/1.1" 400
vm.$log.error(`MeasureManager: ${data}`);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not sure what's wanted here

Comment on lines +117 to +126
vm.cli.on('exit', (code) => {
if (code !== 0) {
const msg = `Failed with code = ${code}`;
console.log(msg);
}
});

}).catch((err) => {
vm.$log.error('Error locating an open port for measure manager.');
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

kept from #267

@jmarrec
Copy link
Collaborator Author

jmarrec commented Mar 21, 2025

@brianlball @DavidGoldwasser @kflemin I can't assign reviewers, but given the discussion about wanting to remove the classic subcommand from the OS CLI, I'd be good to have someone get to this PR.

ref NREL/OpenStudio#5367 (comment)

@DavidGoldwasser DavidGoldwasser requested review from anchapin and removed request for wenyikuang April 1, 2025 18:44
@DavidGoldwasser DavidGoldwasser added this to the OpenStudio SDK 3.10.0 milestone Apr 1, 2025
@DavidGoldwasser DavidGoldwasser requested review from brianlball and removed request for anchapin April 1, 2025 18:46
@brianlball
Copy link
Collaborator

@jmarrec @DavidGoldwasser how should we test this?

@jmarrec
Copy link
Collaborator Author

jmarrec commented Apr 2, 2025

I guess make an installer (or build locally) and test it on a couple of projects?

How were y'all testing PAT so far?

@DavidGoldwasser DavidGoldwasser self-assigned this Apr 3, 2025
@jmarrec jmarrec mentioned this pull request Apr 25, 2025
@jmarrec
Copy link
Collaborator Author

jmarrec commented Apr 25, 2025

@jmarrec jmarrec closed this Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants