0

Hi in vs code editor i have upgraded to ballerina plugin 1.0.5 from 1.0.3, i have changed ballerina version also from 1.0.3 to 1.0.5 after that while running file-integration-sample i am facing following issues in cmd console and also vs code editor console.

Please help me to do further.

I have enclosed snapshot of the error for the reference

cmd console error

vs code editor terminal

After the changes

Disabled Dev Mode

Community
  • 1
  • 1
Sumathi
  • 93
  • 10
  • Apparently space between the `ballerina.home` causing the issue. If you are setting `ballerina.home` explicitly in VSCode; for the time being, could you please allow SDK auto detection by removing the value of `ballerina.home` and uncheck `Dev Mode` in VSCode settings. – Govinnage Rasika Perera Dec 10 '19 at 09:03
  • I am unable to get your point. Please tell me clearly – Sumathi Dec 10 '19 at 10:10
  • ballerina integrator through command prompt also showing an error – Sumathi Dec 10 '19 at 10:54
  • For the first issue, Does the `ballerina -v` command also fails in cmd console? As @Pramodya mentioned these EI templates might not work with the 1.0.5 version. For the second issue, have installed `ballerina` vscode plugin? if yes, goto vscode settings and search `Dev Mode` and it should display `Ballerina > Plugin > Dev > Mod` under that title there's a **uncheck** the tick box `Enable plugin development mode`. – Govinnage Rasika Perera Dec 11 '19 at 11:37
  • Thank u.. Did as you mentioned but still same only. Seriously dont know what happened and all. It was working only but suddenly dont know what happened why this error came like that. I am using ballerina 1.0.3 only again.VSCode 1.40.2 and BI Plugin 0.12.4 – Sumathi Dec 11 '19 at 14:05
  • This is a strange behavior. Can you please create an git issue [here](https://github.com/ballerina-platform/ballerina-lang/issues/new). – Govinnage Rasika Perera Dec 11 '19 at 17:36

2 Answers2

0

I think some of the Ballerina Integrator templates are not working with Ballerina 1.0.5 (Most of the FTP related ones).

Recommended Ballerina version is 1.0.2

Pramodya Mendis
  • 686
  • 8
  • 24
0

@Sumathi,

This is an issue as addressed in 1 related to the command execution.

If you installed ballerina from the installer, do the following. 1. Go to User settings in VSCode and uncheck the following option enter image description here

  1. Then try restarting the VSCode editor. Then you should not get the Ballerina Home is Configured in Settings message.

  2. Also try the Ballerina Plugin alone without the Integrator plugin, if the issue exists even after the step 2

1 https://github.com/ballerina-platform/ballerina-lang/issues/20335

Nadeeshaan
  • 356
  • 5
  • 15
  • I have followed your steps which you mentioned in the comment but still error exists only. I am unable to run ballerina integrator samples. I am able to run ballerina samples using ballerina plugin through cmd and also vs code. Only the issue am facing with Ballerina Integrator alone – Sumathi Dec 18 '19 at 03:57
  • Please refer 3rd Image in my question @Nadeeshaan That message too displayed after the changes – Sumathi Dec 18 '19 at 04:02
  • @Sumathi, it seems, this is the issue where the ballerina command fails to execute when there is a space in the path. Can you try setting BALLERINA_HOME path variable to the ballerina distribution directory and make sure you uncheck the dev mode check box in VSCode user settings – Nadeeshaan Dec 18 '19 at 09:24
  • After uncheck the dev mode check box i am getting above mentioned message only it seems home setting properly. Please refer 4th Image from the question – Sumathi Dec 19 '19 at 12:57
  • I am able to run ballerina program through Ballerina console and also a VSCode. Problem with Ballerina-Integrator only. Please help me to sort out the issues – Sumathi Dec 19 '19 at 12:59