- edited description
SFDX Generate Offline Symbol Table not working.
I select my module to generate offline symbol table for and it gives me an error that the connection is invalid. And to select or create a valid connection and try again.
I have included a screenshot, the idea.log file and what I think might be a threaddump that was created around the same time I saw issue the first time.
IntelliJ 2019.1 latest build.
The reason I'm trying to rebuild is that all the objects are not being recognized, although classes are.
Comments (14)
-
reporter -
repo owner Hey, Mike. Nice to hear from you, but obviously not nice that you're having an issue! Let's see if we can get it resolved...
When you updated to 2.0.5.7 and opened your project, IC should have inferred a connection type for each connection used in the project. Based on the provided screenshot and stack trace (thanks!), it doesn't look like it did so properly, though. The screenshot shows a scratch org connection and the stack trace shows that it's trying to log in using credentials.
If you open your
.iml
file, do you see an element like this?<option name="connectionType" value="SFDX" />
If not--or if the value is
MDAPI
--that's almost certainly (part of) the issue. The real question is why that didn't get populated properly.Let's start there and see what we learn.
-
reporter First time opening a sfdx project, trying to run with the young crowd. ;) Here is my facet, connectionType seems to be SFDX and I can push to the scratch org.
<facet type="IlluminatedCloud" name="Illuminated Cloud"> <configuration> <option name="connectionName" value="ISED-sfdx" /> <option name="connectionType" value="SFDX" /> <option name="moduleContents"> <ModuleContents> <option name="contentSelectionType" value="SELECTED" /> </ModuleContents> </option> </configuration> </facet>
-
repo owner Okay, that's good. So with this same connection, OST generation is failing as in the original issue posting, correct? What happens if you try to generate the OST from the main window? Does that fail as well or does it work? I'm going to do a bit of tinkering on my side to try to reproduce this as well.
-
reporter Here is my whole iml file. FYI there are 3 source folders setup in this project.
<?xml version="1.0" encoding="UTF-8"?> <module type="IlluminatedCloud" version="4"> <component name="FacetManager"> <facet type="IlluminatedCloud" name="Illuminated Cloud"> <configuration> <option name="connectionName" value="ISED-sfdx" /> <option name="connectionType" value="SFDX" /> <option name="moduleContents"> <ModuleContents> <option name="contentSelectionType" value="SELECTED" /> </ModuleContents> </option> </configuration> </facet> </component> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/config" isTestSource="false" /> </content> <content url="file://$MODULE_DIR$/UserStory"> <sourceFolder url="file://$MODULE_DIR$/UserStory/main/default" isTestSource="false" /> </content> <content url="file://$MODULE_DIR$/restricted"> <sourceFolder url="file://$MODULE_DIR$/restricted/main/default" isTestSource="false" /> </content> <orderEntry type="jdk" jdkName="IlluminatedCloud (dx-innovation/ISED-sfdx)" jdkType="IlluminatedCloud" /> <orderEntry type="sourceFolder" forTests="false" /> </component> </module>
-
reporter Also this project was created as a git clone of a repository and a first time creation of a project. I'm not quite sure but I think I accepted any default values.
-
repo owner Mike, I just reproduced this. Seems to be unique to trying to generate the OST from the project config window. It should work from the main window. I'll get a fix going for that very soon. There have been a few other bugs with this release kicked over that I've also already fixed.
-
repo owner Just fixed the issue. I'll get a new build out no later than tomorrow morning with these fixes, but you should have a viable workaround for generating the OST from the main app. Let me know if that doesn't work for you and/or if you see any other issues. Thanks for bringing this to my attention!
-
repo owner - attached IlluminatedCloud2.zip
New build that includes a fix for this issue as well as two others reported today. If all checks out, I'll release this tomorrow morning as a hotfix for 2.0.5.7.
-
@RoseSilverSoftware just FYI - I had a similar issue with my multimodule project after updating - needed to restart a couple of times before IC2 added the connection type to my modules
-
repo owner Okay, so it sounds like there's still some issue there. Jonny, do you have your logs from when this happened still so that I could peruse them for any underlying issues? That should have been a one-and-done update when the project was first opened.
-
I don't but the other engineer on this project hasn't updated yet - I'll ask them to keep their logs when they upgrade. FYI @szarud
-
repo owner Thanks, guys! Feel free to email me the logs if they contain sensitive info. I'd definitely like to review them if the same behavior occurs.
-
repo owner - changed status to resolved
Fix delivered in 2.0.5.8.
- Log in to comment