The man page for the command (http://www.scala-lang.org/docu/files/tools/scalac.html) does not explain how to do this.
The obvious workaround it to simply change the file name to avoid spaces, but this is not a solution.
I am using windows and running scalac from command prompt.
I have tried:
scalac the source file name.scala => error: source file 'the' could not be found
scalac "the source file name.scala" => source was unexpected at this time.
scalac 'the source filename.scala' => error: source file ''the' could not be found
scalac `the source file name.scala` => error: source file '`the' could not be found
scalac -sourcepath the source filename.scala => error: source file 'source' could not be found
scalac -sourcepath "the source filename.scala" => Usage: scalac
scalac -sourcepath 'the source filename.scala' => error: source file 'source' could not be found.
scalac -sourcepath the\ source\ filename.scala => error: source file 'source\' could not be found.
scalac -sourcepath the^ source^ filename.scala => error: source file 'source' could not be found
scalac the^ source^ filename.scala => error: source file 'the' could not be found
I imagine I'm missing something obvious.
Related
I installed react-ionicons by using the below comment
npm i react-ionicons
and in my js file, I have the below code. I was able to see the icon in my screen, however in the console. I got lots of error and warning.
import { Airplane } from 'react-ionicons'
const res = () => {
<Airplane
color={'#fff'}
title={'airplane'}
height="30px"
width="30px"
/>
}
.....
WARNING in ./node_modules/react-ionicons/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/az/project1/node_modules/react-ionicons/lib/WomanOutline.js.map' file: Error: ENOENT: no such file or directory, open '/Users/az/project1/node_modules/react-ionicons/lib/WomanOutline.js.map'
WARNING in ./node_modules/react-ionicons/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/az/project1/node_modules/react-ionicons/lib//WomanSharp.js.map' file: Error: ENOENT: no such file or directory, open '/Users/az/project1/node_modules/react-ionicons/lib//WomanSharp.js.map'
WARNING in ./node_modules/react-ionicons/lib/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/az/project1/node_modules/react-ionicons/lib/index.js.map' file: Error: ENOENT: no such file or directory, open '/Users/az/project1/node_modules/react-ionicons/lib/index.js.map'
webpack compiled with 1302 warnings
Is that mean I did not install react-ionicons correctly ?
I have found the fix by the link below
[blog]: Failed to parse source map... Error: ENOENT: no such file or directory
Create the file .env in the project folder and type the key
GENERATE_SOURCEMAP=false
On a virtual host server, I have 1 repository that I can no longer checkout from a remote computer. Checkout works fine if I'm checking out on the server itself. All other repositories on the same virtual host server work without a problem, though none of them have as many files as this one.
When I check out on a remote computer, checkout goes a certain number of files, then starts displaying checksum errors, usually between 2 and 6 at a time. If I delete the checked out folder and try again with a new folder, it will stop after about the same number of files, and the collection of files with checksum errors is different from the previous checkout. Checking out on a different remote computer gets the same random results.
First try:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\settle.shtml':
Error:
Error: expected: b450dbef2a3ceb9542a4e22b4b3e50fe
Error: actual: 9454a4eb5afdbc215bffcc619f537fa3
Error: Additional errors:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\lndnjv1.shtml':
Error:
Error: expected: e187d974743d0129a6c72413f205458c
Error: actual: 73c0b6aba9a9a42409e2cf7e6d043049
Error: Additional errors:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\lndfraser.shtml':
Error:
Error: expected: 151444dc294357ba42a640333c94b6f7
Error: actual: 900ffa360acd460773acbe1759578533
Error: Additional errors:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\lndretn1.shtml':
Error:
Error: expected: 6b8791dc78b0af936d6d7e70e11b69ee
Error: actual: dd7af732663345c6401861c89331adea
Error: Additional errors:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\lndrfa2.shtml':
Error:
Error: expected: 7451fedd09e1f99adf4c4af2668c4942
Error: actual: 548f947ce54c697957daa4efa4192786
Error: Additional errors:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\lndpwar3.shtml':
Error:
Error: expected: f7fba4f2a3a468df6c4948eaa034e119
Error: actual: 0f3c2da13e55a7c0271743e7d145cfca
Error: Additional errors:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\lndrhe1.shtml':
Error:
Error: expected: 32cc673b06be5806bc6bc66000d5ec75
Error: actual: 5356175235c395577793e9fa9f0b9bb7
Second try:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\Petition_Teder_M_1795.shtml':
Error:
Error: expected: c29978209a203cd254c641bd931739e5
Error: actual: e4042c36b5ff42a01eb890044d64b131
Error: Additional errors:
Error: Checksum mismatch for
Error: 'C:\Users\jkorc\Documents\Projects\VHost\RoyalProvincial\Genealogy\Settle\lndbrng1.shtml':
Error:
Error: expected: 6daeec06c6290557ca6b0de0d551fc43
Error: actual: 598d6bad86117e4cf8f384ed523800aa
I created a new repository of the same files on the same server. Same problem, except I start getting checksum errors after downloading only about a dozen files instead of a few hundred. The server is on Subversion 1.13.0, Tortoise is 1.13.1.
Any ideas what kind of problem I should be looking for?
My assumption would be that a certain folder has a corrupt checksum (for whatever reason).
Fist of all I'd check integrity of the SVN. Some instyructions can be found here:
https://www.darklaunch.com/fix-svnadmin-checksum-mismatch-while-reading-representation.html
There's quite some people experiencing this issue. The easy work around normally mentioned is to recreate the repo:
Copy the content to a temporary directory
Add the folder as new one to SVN
As the new content will get new checksums, those should be ok for all folders afterwards
If you want to do some direct editing, here's a post that corrected the SVN files successfully (use at own risk, make backups!)
https://maymay.net/blog/2008/06/17/fix-subversion-checksum-mismatch-error-by-editing-svnentries-file/
I once had strange behaviour when content on net packages had been capped as well. That was caused by the MTU (Maximum Transfer Unit). SVN seem to struggle here as well, so adjust the setting in your network infrastructure. Here's a link to a similar issue with SVN involved.
https://serverfault.com/questions/392881/tortoise-svn-repo-browser-checkout-over-vpn
As summary: To isolate the issue I would do the following steps:
A) See if the repo's SVN metadata is cause:
log to server
copy the repo as filesystem (without SVN data)
create a new repo with the files
connect svn client from other host. If all goes well the SVN metadata is corrupt
b) Check if it's host/network specific
Do the same as A but from other host (= create the repo from there)
List item
c) Check if network MTU is ok
do check up to which size packets will be transferred ok (will not go into details as this is very OS/infrastructure related, but you'll find lot's of infos)
note hops/VPNs/multiple routers/IPv4-IPv6 can all play into this
Having written all that: Did you crosscheck behaviour with a second SVN client in the first place? Might be the first thing to do.
I am new to Azure.
We have created one small POC in which I need to select the VM name and Resource group name in which that VM is present. And then I need to mention the command which I need to execute and then click on execute button which will execute the command.
Now what I have done, I have created one script in linux in which I have given some ora2pg commands. So what is happening when I am trying to run that script directly on VM by passing some parameter, it is working fine without any error.
But same script when I am trying to run through that the POC which I created (by giving VM name, Resource group name and then passing the command which I want to execute) it is giving this error -
Enable succeeded: [stdout] Schema Name : OT Conversation of tables for
OT schema started Conversation of views for OT schema started
Conversation of package for OT schema started Conversation of sequence
for OT schema started Conversation of type for OT schema started
Conversation of trigger for OT schema started Conversation of function
for OT schema started Conversation of procedure for OT schema started
Successfully copied to OT_SCHEMA [stderr] install_driver(Oracle)
failed: Can't load '/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so'
for module DBD::Oracle: libclntsh.so.18.1: cannot open shared object
file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line
193. at (eval 14) line 3. Compilation failed in require at (eval 14) line 3. Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
install_driver(Oracle) failed: Can't load
'/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: libclntsh.so.18.1: cannot open shared object file: No
such file or directory at /usr/lib64/perl5/DynaLoader.pm line 193. at
(eval 14) line 3. Compilation failed in require at (eval 14) line 3.
Perhaps a required shared library or dll isn't installed where
expected at /usr/local/share/perl5/Ora2Pg.pm line 1660.
Note - My Linux VM is in Azure and it is using Custom script for linux extension to run all the commands. I have moved my script to bin folder so that by passing only the name it will run the script.
I have mention following things in env path in linux -
export ORACLE_HOME=/usr/lib/oracle/18.3/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin:/usr/pgsql-12/bin/
My perl version is 5.26
As I said everything is working fine when I am trying to run from VM, but when I trying to run through my POC it is giving that issue.
Can anyone please help me with the issue like where I am lagging?!
Thanks in advance.
I am trying to install jdk rpm via Puppet. I have tried lot of manifests but none of them working.
At this moment, I have manifest like this
class java {
#file {' Java 8 rpm file':
#source => 'puppet:///modules/java/jdk-8u161-linux-x64.rpm',
#}
package { 'jdk-8u161-linux-x64.rpm':
ensure => 'present',
provider => 'rpm',
source => '/etc/puppetlabs/code/environments/production/modules/java/jdk-8u161-linux-x64.rpm',
}
}
And I am getting below error
[root#sahasraarchi ~]# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for sahasraarchi.devmac.com
Info: Applying configuration version '1517758835'
Error: Execution of '/usr/bin/rpm -i /etc/puppetlabs/code/environments/production/modules/java/jdk-8u161-linux-x64.rpm' returned 1: error: open of /etc/puppetlabs/code/environments/production/modules/java/jdk-8u161-linux-x64.rpm failed: No such file or directory
Error: /Stage[main]/Java/Package[jdk-8u161-linux-x64.rpm]/ensure: change from absent to present failed: Execution of '/usr/bin/rpm -i /etc/puppetlabs/code/environments/production/modules/java/jdk-8u161-linux-x64.rpm' returned 1: error: open of /etc/puppetlabs/code/environments/production/modules/java/jdk-8u161-linux-x64.rpm failed: No such file or directory
Notice: Applied catalog in 2.01 seconds
[root#sahasraarchi ~]#
Seems I have missed basic point here. Source at package attribute is always referring the address on Puppet-agent. i.e to where file copying to remote machine before its getting installed.
class java {
file {' /tmp/jdk-8u161-linux-x64.rpm':
source => 'puppet:///modules/java/jdk-8u161-linux-x64.rpm',
}
package { 'jdk-8u161-linux-x64.rpm':
ensure => 'present',
provider => 'rpm',
source => '/tmp/jdk-8u161-linux-x64.rpm',
require => File["/tmp/jdk-8u161-linux-x64.rpm"],
}
}
Will install the rpm at Puppet-agent.
I downloaded the source code from "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/".
Configure went well but when i build I end up with following errors:
digestmd5.c:852: error: 'des_context_t' has no member named 'keysched'
digestmd5.c:853: error: 'des_context_t' has no member named 'keysched2'
digestmd5.c:854: error: 'des_context_t' has no member named 'ivec'
digestmd5.c:855: error: 'DES_DECRYPT' undeclared (first use in this function)
....
Well i guess configuration issues.
I configured it with following settings and it worked.
./configure --prefix= (PATH) --exec-prefix=(PATH) --with-dblib=no --without-des --with-openssl=(PATH)