Thank you Mike. I really appreciate your help From: Mike Beckerle <mbecke...@apache.org> Sent: Friday, July 14, 2023 9:22 AM To: users@daffodil.apache.org Subject: EXT :Re: RE: Re: Re: DFDL VSCode Scala requirement
Caution: This email came from an external source and should be treated appropriately. Do not click on questionable links or attachments unless you validate the sender via phone. For more information, visit the CSOC It! webpage. Alas.... I realize sbt is also challenged by the isolated network situation. sbt has a very convenient (for the internet connected) auto self updating feature - each sbt project can have a project/build.properties file, and can specify what sbt version it requires. sbt will then automatically grab (from WWW) the appropriate version of sbt and use it. I think the sbt developers must love this because it means they can introduce breaking changes whenever they want, and project by project people can freeze to any given version. But it kind of means that there is no downloading one version of sbt and using it in an isolated situation. I am going to report a second bug that is not about VSCode but about using sbt as our build tool for schemas. We need something like sbt, but there is no reason it should require internet connectivity. On Thu, Jul 13, 2023 at 2:58 PM Clark, Marcella J [US] (DS) <marcella.cl...@ngc.com<mailto:marcella.cl...@ngc.com>> wrote: Mike, I forgot that I did download the SBT.ZIP, unzipped and added to PATH, but when I try to run it (just enter sbt at a command prompt), it still wants to go to the internet. Am I doing this wrong? Marcella From: Clark, Marcella J [US] (DS) <marcella.cl...@ngc.com<mailto:marcella.cl...@ngc.com>> Sent: Thursday, July 13, 2023 1:43 PM To: users@daffodil.apache.org<mailto:users@daffodil.apache.org> Subject: EXT :RE: Re: Re: DFDL VSCode Scala requirement Caution: This email came from an external source and should be treated appropriately. Do not click on questionable links or attachments unless you validate the sender via phone. For more information, visit the CSOC It! webpage. Thanks Mike. I will try option #1. #2 is out as there are too many issues to get through to get that approved. lol From: Mike Beckerle <mbecke...@apache.org<mailto:mbecke...@apache.org>> Sent: Thursday, July 13, 2023 12:54 PM To: users@daffodil.apache.org<mailto:users@daffodil.apache.org> Subject: EXT :Re: Re: DFDL VSCode Scala requirement Caution: This email came from an external source and should be treated appropriately. Do not click on questionable links or attachments unless you validate the sender via phone. For more information, visit the CSOC It! webpage. I can think of two options. Bear with me if these are obvious and you already tried them. 1) Download and unzip scala as a tarball/zip file, not an installer, and unzip in a user directory and then launch VSCode from a batch script that adds this scala directory bin to the PATH. Note: this is what I do, but I'm using Linux. Windows may also let you modify the PATH with its configuration dialog. There's a distinction between system path and user path and maybe they let a user modify their own user path without escalation of privilege? (worth checking anyway) Example script (note: written by ChatGPT - my Windows CMD scripting skills are super rusty, so I just asked it "Windows command script which launches VSCode, but in an enviroment where Scala has been added to the PATH environment variable" and voila. ChatGPT seems to be quite good at script-level coding. It's written much more complex scripts for me also.) @echo off setlocal rem Add Scala to the PATH environment variable set PATH=%PATH%;C:\Path\to\Scala rem Launch VSCode code endlocal 2) (Probably you already tried this.) Ask your IT department to install Scala for you. (Might as well ask them to install SBT at the same time.) These are standard developer tool kit at this point, so approval of having these should be 'ordinary'. This would hopefully unblock the approach of preloading the dependencies cache from an internet-connected machine and copying that cache to your air-gapped machine. On Wed, Jul 12, 2023 at 4:39 PM Clark, Marcella J [US] (DS) <marcella.cl...@ngc.com<mailto:marcella.cl...@ngc.com>> wrote: FYI I cannot install Scala, etc on the system that I downloaded the installers on. Not authorized to do this so I cannot install, run and copy the cache to put on the designated system. From: Mike Beckerle <mbecke...@apache.org<mailto:mbecke...@apache.org>> Sent: Wednesday, July 12, 2023 3:01 PM To: users@daffodil.apache.org<mailto:users@daffodil.apache.org> Subject: EXT :Re: DFDL VSCode Scala requirement Caution: This email came from an external source and should be treated appropriately. Do not click on questionable links or attachments unless you validate the sender via phone. For more information, visit the CSOC It! webpage. Well I'm creating a ticket for this, because lots of people working in defense industries want to use Daffodil and the VSCode extension and are on air-gapped networks with no internet access. I did not find encouraging news in a quick web search on this. Ticket https://github.com/apache/daffodil-vscode/issues/701 To clarify, Marcella, you are just trying to use Daffodil and the VSCode extension correct? On Wed, Jul 12, 2023 at 8:13 AM Clark, Marcella J [US] (DS) <marcella.cl...@ngc.com<mailto:marcella.cl...@ngc.com>> wrote: Hello, I am trying to get VSCode 1.3.0 and its requirements installed but Scala is requiring a connection to the internet. I downloaded the installer from one machine, copied over and installed on another system (Windows 10). Now I am trying to run Scala on said system but it wants an internet connection. Is there any way to use Scala without the internet? I also tried to set it offline, but still wants to download files from the internet. Maybe because it's the first time running? I don't know. Any help would greatly be appreciated. Thank you, Marcella Clark (DFDL newbie)