-
Notifications
You must be signed in to change notification settings - Fork 502
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
ctrl-clicking queries navigates to generated code #2052
Comments
In case it's relevant, I've noticed one crash of the plugin, which got reported in #2045 |
I've narrowed down the issue: |
NICE thank you for finding - feel free to open a pr with the fix or I can
get around to it later
…On Sat, Oct 17, 2020 at 11:57 AM Angus Holder ***@***.***> wrote:
I've narrowed down the issue: FileIndexMap.fileIndices
<https://github.com/cashapp/sqldelight/blob/c7fb0b6d87a1338ddd5376a67c18826df746f5d0/sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/gradle/FileIndexMap.kt#L21>'s
keys use OS-specific path separators (\ for me), but FileIndexMap.get
<https://github.com/cashapp/sqldelight/blob/c7fb0b6d87a1338ddd5376a67c18826df746f5d0/sqldelight-idea-plugin/src/main/kotlin/com/squareup/sqldelight/intellij/gradle/FileIndexMap.kt#L25>
does a lookup into fileIndices using the result of
ExternalSystemApiUtil.getExternalProjectPath(module) (which has / path
separators), so there's no matching element andget returns defaultIndex
because it couldn't find the correct index
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2052 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMZBQHF5472TXJWH4UXV33SLG5F7ANCNFSM4STFIHFA>
.
|
I'm working on it now, just trying to make sure the tests for GoToDeclarationHandler fail before I commit the fix, but I'm having trouble getting the tests to actually run at all due to an exception during init, do you have any idea what this is?:
|
Build Environment
SQLDelight version: 1.4.4
IDE version: Android Studio 4.1, Windows
Dialect: SQLite
Describe the bug
Ctrl-clicking a query method navigates to the generated code instead of the
.sq
file.Ctrl-clicking a query label in the
.sq
file says "No usages found in Project Files"I wonder if this could be another path separator regression on Windows like #1594
@AlecStrong you mentioned here enabling IDE plugin tests on Windows, and enabled that in #1599, looking at that thread it looks like the tests actually passed on Windows straight away, but they should have failed until you rebased my PR? Or am I misreading?
The text was updated successfully, but these errors were encountered: