JetBrains / JetBrains/Grammar-Kit

Ant task with psiImplUtilClass

Open
#35 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
771
Forks
137
Avg merge
11h 14m
Merged PRs (30d)
1

Description

I am trying to create an ant task to generate my parser with grammar-kit and compile my project; however, I am running into an issue where grammar-kit warns **class not found** for the psiImplUtilClass. This seems similar to #24.

I can get around this by adding the output directory to the classpath, but this is error-prone since the class definition may have been updated since it was last compiled. I could generate the parser and ignore the warning, compile, then re-generate the parser so it can catch the psiImplUtilClass, then re-compile so it can catch the new parser. But that seems incredibly wasteful.

What is the right way to solve this problem?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the Ant task configuration and the classpath handling described in the issue, including how psiImplUtilClass is resolved during generation. Done means parser generation finds the current psiImplUtilClass without manually adding the output directory or requiring repeated generation and compilation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.