Skip to content

Fixed action hyperlinking in route files when route definition starts wi... #130

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

Merged

Conversation

jhaberstro
Copy link
Contributor

...th '@'.

Changed action's regular expressions to account for optional starting '@' character.

When searching for the method, if there does not exist a matching method on a module that matches the route action type name, then do a corresponding search for the method over classes.

Fix #119

… with '@'.

Changed action's regular expressions to account for optional starting '@' character.

When searching for the method, if there does not exist a matching method on a module that matches the route action type name, then do a corresponding search for the method over classes.

Fix scala-ide#119
@dotta
Copy link
Member

dotta commented May 29, 2013

PLS REBUILD/play2-3.0-e37-pr-validator

(Really funky error, and looking at the Jenkins Job, tests have been failing since the 24th of May... Anyhow, before investing too much energy, let's see if wiping out the Job's workspace helps)

@dotta
Copy link
Member

dotta commented May 29, 2013

Also because this branch builds perfectly fine on my machine...

@scala-jenkins
Copy link

(kitty-note-to-self: ignore 18613930)
🐱 Roger! Rebuilding for . 🚨

@dragos
Copy link
Member

dragos commented May 29, 2013

NOLITTER! PLS REBUILD ALL!

@scala-jenkins
Copy link

(kitty-note-to-self: ignore 18620202)
🐱 Roger! Rebuilding play2-3.0-e37-pr-validator, play2-master-e38-pr-validator for fadeb69. 🚨

@scala-jenkins
Copy link

(kitty-note-to-self: ignore 18620202)
🐱 cleaning up... sorry! 🐱

@dragos
Copy link
Member

dragos commented May 29, 2013

@adriaanm, I wonder if there's a bug in the kitty now.. it is looking at the wrong build: the kitty started building play2-3.0-e37-pr-validator around 16:38, and the failed commend appears the same minute, though the build took 3 minutes. The link goes to an older build, started at 15:23, 1 hour before the start.

@dragos
Copy link
Member

dragos commented May 29, 2013

We can ignore the build failures, the correct build run is https://jenkins.scala-ide.org:8496/jenkins/job/play2-3.0-e37-pr-validator/164/, and that succeeded.

@@ -44,7 +44,13 @@ object RouteHyperlinkComputer {
val obj = rootMirror.getModuleIfDefined(routeAction.typeName)

// method or methods of the object with the given name
val method = obj.info.member(newTermName(routeAction.methodName))
val objMethod = obj.info.member(newTermName(routeAction.methodName))
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this would actually happen too often, but this would hyperlink to an object method if there is one, even if the route file uses @. Why not distinguish the two cases by the @ sign, and do just one query in the compiler, either in the object or in the class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right about that. I created another issue ticket earlier today (#131) for just this issue (per Mirco's suggestion).

@adriaanm
Copy link

@adriaanm, I wonder if there's a bug in the kitty now.. it is looking at the wrong build: the kitty started building play2-3.0-e37-pr-validator around 16:38, and the failed commend appears the same minute, though the build took 3 minutes. The link goes to an older build, started at 15:23, 1 hour before the start.

yep, that looks like a bug -- I'll have a look at the logs if I can figure out what's going on

PLS SYNCH

@scala-jenkins
Copy link

(kitty-note-to-self: ignore 18630330)
🐱 Synchronaising! 🙏

@adriaanm
Copy link

I think I know what the problem is: typesafehub/ghpullrequest-validator#40
Already running in production ;-)

@dotta
Copy link
Member

dotta commented May 30, 2013

Great work!

LGTM!

@dragos
Copy link
Member

dragos commented May 30, 2013

yeap, all good on this side, @adriaanm. Thanks for the quick fix!

dragos added a commit that referenced this pull request May 30, 2013
…th-@-#119

Fixed action hyperlinking in route files when route definition starts wi...
@dragos dragos merged commit c8814ea into scala-ide:master May 30, 2013
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.

Action hyperlinking in route file doesn't work when route definition starts with @
5 participants