-
Notifications
You must be signed in to change notification settings - Fork 41
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
[WIP] TypeClassResolutionTest for code snippets (2) #103
Conversation
Hi @rachelcarmena could you direct this PR towards |
Thanks @i-walker !! It's still WIP, thanks!! |
ce5055d
to
5bd8b63
Compare
5bd8b63
to
4f3b1e3
Compare
adaacc4
to
7f7c778
Compare
2de902c
to
e50d131
Compare
bbb46e0
to
4e6c50e
Compare
Documentation was failing with the last merge because of removing:
from Reason: the new
So it was solved adding Kotlin stdlib as dependency in |
4e6c50e
to
1426394
Compare
Outdated |
Changes
This pull request would discard #57. That's the reason why it's a pull request on
master
branch.It has 2 commits:
docs
andtesting-plugin
which were failing. Note: It keeps the author from [WIP] TypeClassResolutionTest for code snippets #57.The test which was added by @jansorg to help me to debug the problems in #57 is passing now but I don't have knowledge enough to change
testSyntheticResolution
in the same way.Details
Initial problems like:
which appear in #57 have been solved.
The problem:
was solved when relocating some classes:
That's the reason why the source code was moved to another library to be able to relocate classes before using it in
idea-plugin
.Then, the problem was:
because the "environment" to compile source code is created in a
MockProject
when usingCodeInsightFixtureTestCase
and it's not possible to get an instance from aMockProject
:Source:
com.intellij.openapi.roots.ProjectFileIndex
com.jetbrains.ideaICNext steps
Try to fix the ignored test
TypeClassResolutionTest
from these changes and research the use ofCodeInsightFixtureTestCase
and its effects when running compilations.This is the "trace" with the use of
CodeInsightFixtureTestCase
:This is the "trace" without that class and with a regular test:
Note
@jansorg , please, feel free to discard/close this pull request and to continue working on
heavy-testing
branch. I feel happy to know that I discovered the problem and some clues to continue working on it.