I noticed I needed to upgrade the plugin and maybe...
# sdf
c
I noticed I needed to upgrade the plugin and maybe that was it so I did that and now when I go to access account credentials/project settings, it just gives me an error messsage (below). I've tried downgrading webstorm several versions, deleting/re-pulling the code and creating a new project and nothing seems to get rid of the error. Anyone run into this?
Found some error logs in the .suitecloud-sdk for what appears to be the issue
Copy code
[{"logType":"ERROR","source":{"platformName":"WebStorm","platformVersion":"2024.1.6"},"sdkVersion":null,"timestamp":"2024-09-24T19:36:35.647125100Z","account":null,"data":{"action":"INSPECT_AUTHORIZATION","httpCode":null,"errorType":"RUNTIME","content":"Something went wrong when trying to access credentials. Contact support.\r\ncom.netsuite.suiteapp.exception.AccountCredentialsException: Something went wrong when trying to access credentials. Contact support.\r\n\tat com.netsuite.ide.core.credentials.repository.AccountCredentialsRepositoryImpl.decryptFileContent(AccountCredentialsRepositoryImpl.java:136)\r\n\tat com.netsuite.ide.core.credentials.repository.AccountCredentialsRepositoryImpl.loadCredentials(AccountCredentialsRepositoryImpl.java:85)\r\n\tat com.netsuite.ide.core.credentials.repository.AccountCredentialsRepositoryImpl.getCredentials(AccountCredentialsRepositoryImpl.java:47)\r\n\tat com.netsuite.ide.core.suiteapp.delegate.authentication.InspectAuthorizationDelegate.inspect(InspectAuthorizationDelegate.java:39)\r\n\tat com.netsuite.ide.core.suiteapp.delegate.SuiteCloudServiceImpl.inspectAuthorization(SuiteCloudServiceImpl.java:403)\r\n\tat com.netsuite.ide.webstorm.sdf.actions.AbstractAccountSdfAction.needReauthorization(AbstractAccountSdfAction.java:123)\r\n\tat com.netsuite.ide.webstorm.sdf.actions.AbstractAccountSdfAction.actionPerformed(AbstractAccountSdfAction.java:38)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.kt:304)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks$lambda$4(ActionUtil.kt:275)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionManagerImpl.performWithActionCallbacks(ActionManagerImpl.kt:1166)\r\n\tat com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.kt:274)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenuItem.performAction$lambda$5(ActionMenuItem.kt:269)\r\n\tat com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:227)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenuItem.performAction(ActionMenuItem.kt:260)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenuItem._init_$lambda$0(ActionMenuItem.kt:71)\r\n\tat java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed$lambda$4(ActionMenuItem.kt:102)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)\r\n\tat com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.kt:101)\r\n\tat com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:525)\r\n\tat com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:558)\r\n\tat java.desktop/java.awt.Component.processMouseEvent(Component.java:6657)\r\n\tat java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3385)\r\n\tat java.desktop/java.awt.Component.processEvent(Component.java:6422)\r\n\tat java.desktop/java.awt.Container.processEvent(Container.java:2266)\r\n\tat java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)\r\n\tat java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)\r\n\tat java.desktop/java.awt.Component.dispatchEvent(Component.java:4855)\r\n\tat java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4969)\r\n\tat java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4583)\r\n\tat java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4524)\r\n\tat java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)\r\n\tat java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2809)\r\n\tat java.desktop/java.awt.Component.dispatchEvent(Component.java:4855)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:794)\r\n\tat java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)\r\n\tat java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:399)\r\n\tat java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:766)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:764)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:399)\r\n\tat java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:763)\r\n\tat com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:699)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:638)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:584)\r\n\tat com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:138)\r\n\tat com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:129)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:584)\r\n\tat com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:77)\r\n\tat com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:362)\r\n\tat com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:361)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:843)\r\n\tat com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:361)\r\n\tat com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:356)\r\n\tat com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1022)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)\r\n\tat com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1022)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:356)\r\n\tat com.intellij.openapi.application.impl.RwLockHolder.runIntendedWriteActionOnCurrentThread(RwLockHolder.kt:209)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:830)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:398)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)\r\n\tat java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)\r\n"}}]
m
The credentials file from previous version is not compatible with the 2024.2 version of the SDF tools. You'll need to delete your credentials file in the .suitecloud-sdk folder and reconnect to all of your accounts. This was mentioned in the 2024.2 release notes document.
c
yeah I did that and it still hangs for a sec then displays the error
m
Maybe try rolling back to 24.1 version of the plugin
c
the option to reconnect an account cannot be reached due to the error
i can give it a go but what i'm trying to replicate is the validate in a 24.2 account for the client side scripts in the hiding.xml.. so far the validation/deploy from webstorm or the CLI doesn't seem to perform this validation. If i install from the marketplace, it fails and says the client scripts need to be unhidden. So how do we validate this prior to uploading a new version to the marketplace is what im getting at.
I figured this was a 24.2 plugin feature which is why i attempted to update at all
m
Oh. Sorry. I saw your earlier messages but didn't realize it was related. I don't have much experience with the Marketplace.
c
all good.. there seems to be a validation that occurs from the marketplace upon install that apparently the current SDF doesn't seem to do so you can't say for certain if you've unhidden the correct files unless you hide what you think needs to be unhidden and throw it up on the marketplace and try to install again which is silly.
a
@creece What is your current Webstorm version and suitecloud plugin version?
c
Webstorm: 2024.2.3 (latest avaialble) Suitecloud: 2024.2 (latest available) I've tried downgrading webstorm 4 or 5 revisions down and still get the same error with the same plugin. Somehow, the credentials seem to have been mangled and the menu options just fail. If you can tell me which directories the plugin is looking at, maybe I can just delete the folders or files and see if reinstalling the plugin will fix whatever is erroring out.
After the error, I was able to get the node CLI working so that I am able to deploy while trying to get this issue resolved. So it doesn't "appear" the credentials are in the same place but that's just me speculating.
Another person on my team has 2024.1.5 and 2024.2 and is having the same issue so its not just me.
i just downgraded to the 2024.1 plugin version w/ 2024.2.3 and its back to working
Yep its easy to reproduce this now. If you upgrade from 2024.1->2024.2 in windows, its erroring for me. Downgrading from 2024.2 -> 2024.1 and it works. I've even deleted the credentials in the .suitecloudsdk folder. So either the wrong thing is being deleted on my end or there's an actual bug.
There's also a stack trace in here of the error i believe which should help.
a
@creece when are you available, may be we can meet on zoom to check whats happeninga nd try to fix it?
👍 1
c
I've dm'd you with details.