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

vizkit bugfixes #48

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

vizkit bugfixes #48

wants to merge 3 commits into from

Conversation

dettmann
Copy link

@dettmann dettmann commented Oct 2, 2015

No description provided.

@@ -324,7 +324,7 @@ def push_transformer_configuration(data)
def listen_to_transformation_producer(trsf)
return if @connected_transformation_producers.has_key?(trsf.producer)

task, *port = trsf.producer.split('.')
task, bla, *port = trsf.producer.rpartition('.')
Copy link
Contributor

Choose a reason for hiding this comment

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

What in your case is bla ?, is it not related to the hostname during replay?

Copy link
Author

Choose a reason for hiding this comment

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

I did not check replays ... but in the other tests bla is just "."

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should:

  • rename bla to sep for separator
  • change *port to port
  • remove line 328.

Other than that the fix solves the problem 👍

Copy link
Member

Choose a reason for hiding this comment

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

The Ruby idiom for "just ignore this value" is the underscore character

task, _, *port = trsf.producer.rpartition('.')

@D-Alex
Copy link
Member

D-Alex commented Oct 13, 2015

The problem is that qt ruby names all Qt objects Qt::Xyz instead of QXyz (Qt::Widget vs. QWidget) therefore the leading Q must be removed. Unfortunately, this is not the case for plugins like qwt.

@goldhoorn
Copy link
Contributor

And what's your recommendation for this PR then in the end? ok?, howto rework?

@D-Alex
Copy link
Member

D-Alex commented Oct 13, 2015

You simply have to check if name[1..-1] starts with a capital letter before using const_defined? Maybe checking for the size would not be such a bad idea as well ;-).

next if name[0] == "Q" && name[1].upcase == name[1] && Qt.const_defined?(name[1..-1])

@goldhoorn
Copy link
Contributor

@dettmann can you add D-Alex suggestions?

@goldhoorn
Copy link
Contributor

...anbd doudou's

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.

4 participants