myroslavarm / Experimental-Completion

My internship project: improving code completion for Pharo
6 stars 3 forks source link

Pharo8: when writing a selector and there is a block after, we get no completion #55

Closed MarcusDenker closed 4 years ago

MarcusDenker commented 5 years ago

This example:

self environment allBehaviors select: [ :class | class slots anySa [ :slot | slot class == self ]].

when writing anySa... the old Code Completion suggests selectors. The new we get nothing.

This has something to do with the parse error node later, we need to explore how this is parsed.

MarcusDenker commented 5 years ago

What to do:

MarcusDenker commented 5 years ago

Still a problem with the latest code.

myroslavarm commented 5 years ago

it seems to parse everything except for methodname as one big sequence node. on the other hand, we have incorrect syntax before the block so this issue is essentially on hold until we are able to complete parse error nodes essentially. but then again, getting a sequence node AST puzzles me

MarcusDenker commented 4 years ago

with the fallback this is ok for now