oracle / netsuite-suitecloud-sdk

SuiteCloud Software Development Kit (SuiteCloud SDK) are the set of tools that allow you to customize accounts and create SuiteApps through SuiteCloud Development Framework (SDF).
https://www.netsuite.com/
Universal Permissive License v1.0
203 stars 63 forks source link

Something went wrong with 'Set Up Account'. #716

Open JJ0011 opened 1 year ago

JJ0011 commented 1 year ago

Type: Bug

The SDF is properly configured. There is an active file in the editor which belong to the current workspace. Before running this command, I have selected a file from the current workspace and make it active in the editor.

But whenever I run the command 'Set Up Account', I am getting the following error :

"Something went wrong with 'Set Up Account'."

Extension version: 1.4.1 VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:02.548Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz (16 x 3792)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|31.79GB (9.71GB free)| |Process Argv|--crash-reporter-id 9e8b0dc7-3d57-49a7-abc4-2a47292449d3| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30610679 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30672706 vsctsb:30705553 azdwalk:30721579 pythonms35:30701012 pythonfmttextcf:30716743 pythonclientmvcf:30713944 ```
tourajvaziri commented 1 year ago

Hi @JJ0011 sorry about the experience you had. Is there a message in the 'Output' window of vscode? A 'see details' when the notification appears? Can you please send a screenshot of the error?

ryan-gillies commented 1 year ago

I am having this same issue. Here is a screenshot: image

Samuel-Dainton commented 1 year ago

Yea, same. Sorry @tourajvaziri but there's nothing in the output or additional info.

Just the message as Ryan has shown.

VSCode 1.78.0 Oracle JDK 17 SuiteCloud Extension 1.4.2

davidecorreu commented 1 year ago

Hi @JJ0011, @ryan-gillies and Sameul-Dainton

Please provide us the specific info about your environment:

A screenshot of your project hierarchy (tree view) may also be useful.

We haven't been able to reproduce your error for the SuiteCloud: Set Up Account command, so we are going to ask for some steps that may help to solve the issue.

1) Please try to run the SutieCloud: Add Dependency References to the Manifest command. Does it works succesfully? If it doesn't work, please take a screenshot of the error notification and if the See Details button appears also the related logs.

2) Let's install a previous version (1.3.2) of the suitecloud extension. To install a previous extension version: Select extension section of the activity bar (icon similar to a tetris piece) Select the SuiteCloud Extension Click on the drop down context menu at the side of the Uninstall button Select version 1.3.2 Reload vscode

After installing the v1.3.2 trigger again the SuiteCloud: Set Up Account command again and let us know about the result. Once you are done with this tryout you can restore the suitecloud extension to latest version.

As a workaround you can also install the node suitecloud CLI and setup the account for your project from the command line by running suitecloud account:setup To install suitecloud-cli please check: https://github.com/oracle/netsuite-suitecloud-sdk/tree/master/packages/node-cli

Samuel-Dainton commented 1 year ago

Add Dependency returns the same error with no additional info, see details or anything in the output.

Windows 11 Pro VS Code 1.78.0 Extension 1.4.2 Java Version 8 Update 371 (build 1.8.0_371-b11)

1.3.2 does appear to work. I'm afraid I'm just about to log off for the day to go through it fully. Reverting back to 1.4.2 does not fix the issue.

I'll be sure to give the workaround a try once I have the time. Appreciate the help!

All the best~

[image: image.png]

On Fri, May 5, 2023 at 3:45 PM David Rebolleda Mir @.***> wrote:

Hi @JJ0011 https://github.com/JJ0011, @ryan-gillies https://github.com/ryan-gillies and Sameul-Dainton

Please provide us the specific info about your environment:

  • OS type and version - Please do not extract this info from vscode about section, we just want to know type of OS and its main version like: Windows 10 Pro, MacOS Ventura 13.2.1 or Fedora Linux 38 (Workstation Edition)
  • vscode version
  • suitecloud extension version
  • java version

A screenshot of your project hierarchy (tree view) may also be useful.

We haven't been able to reproduce your error for the SuiteCloud: Set Up Account command, so we are going to ask for some steps that may help to solve the issue.

1.

Please try to run the SutieCloud: Add Dependency References to the Manifest command. Does it works succesfully? If it doesn't work, please take a screenshot of the error notification and if the See Details button appears also the related logs. 2.

Let's install a previous version (1.3.2) of the suitecloud extension. To install a previous extension version: Select extension section of the activity bar (icon similar to a tetris piece) Select the SuiteCloud Extension Click on the drop down context menu at the side of the Uninstall button Select version 1.3.2 Reload vscode

After installing the v1.3.2 trigger again the SuiteCloud: Set Up Account command again and let us know about the result. Once you are done with this tryout you can restore the suitecloud extension to latest version.

As a workaround you can also install the node suitecloud CLI and setup the account for your project from the command line by running suitecloud account:setup To install suitecloud-cli please check: https://github.com/oracle/netsuite-suitecloud-sdk/tree/master/packages/node-cli

— Reply to this email directly, view it on GitHub https://github.com/oracle/netsuite-suitecloud-sdk/issues/716#issuecomment-1536370435, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYBMVBNICJL3RT56PAJVP43XEUHA5ANCNFSM6AAAAAAXJDMENQ . You are receiving this because you commented.Message ID: @.***>

Samuel-Dainton commented 1 year ago

Oh that's odd. Came back today to try out the 1.3.2 and it's now having the same issue. >_<

Samuel-Dainton commented 1 year ago

I created a new project and it appears to be working now.

The error appears to be caused by creating a project with jest testing enabled.

davidecorreu commented 1 year ago

@Samuel-Dainton thanks for the info, we'll consider your provided info for further investigation.

davidecorreu commented 1 year ago

We have been able to replicate the error, thanks to the info provided by @Samuel-Dainton

Source of the problem is that npm dependencies are not properly installed when creating a project from vscode-extension that includes support for unit testing.

As a workaround you can manually install the dependencies from the terminal by running npm install from the root of your project (note that nodejs/npm needs to be installed in your machine). After installing the dependencies SuiteCloud: Set Up Account should properly work.

We'll track this bug to fix it.

nguyena-smartecarte commented 1 year ago

Has this been resolved yet? I am experiencing the same issue, when I create a SuiteCloud project and include JEST testing

alisyed-19 commented 1 year ago

@nguyena-smartecarte @Samuel-Dainton @JJ0011 Can you please verify if the solution provided works? https://github.com/oracle/netsuite-suitecloud-sdk/issues/716#issuecomment-1540127440

hamayxx commented 1 year ago

Is there any otther solution for this problem, I have had this error for a week. OS type and version: Window 10 vscode version: 1.8.2.2 java verision: 17.0.8 jdk version: v1.5.1 Btw, I cannot add dependencies to manifest.xml file too.

alisyed-19 commented 1 year ago

@hamayxx When you run java -version in the terminal/ command prompt, what is the output?

hamayxx commented 1 year ago

@hamayxx When you run java -version in the terminal/ command prompt, what is the output?

Here is the output "java 17.0.8 2023-07-18 LTS Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211) Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)"

Btw, I have just installed a previous version of JDK (v1.4.1) then it works. Just wonder that what happened to these JDK version.

gabrielgortabns commented 1 year ago

Extension 1.4.2 with Java JDK 17.0.7 works... but newer extension or JDK doesn't. It even corrupts credentials file.

jan-pavlicek-netsuite commented 2 months ago

Hi All, I'm ACS employee and I solved this issue with our customer.

The solution was to ensure there is no space in a private key file path.

It seems there a path is not enclosed in quotes when a command is built.