File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 JAVA_VERSION_INTEGER ,
1010} from './java-versions-parameter.js' ;
1111import Schema from './jenv-schema.json' ;
12+ import os from 'node:os' ;
1213
1314export interface JenvConfig extends ResourceConfig {
1415 add ?: string [ ] ,
@@ -50,13 +51,15 @@ export class JenvResource extends Resource<JenvConfig> {
5051 override async refresh ( ) : Promise < Partial < JenvConfig > | null > {
5152 const $ = getPty ( ) ;
5253
54+ console . log ( 'Zshrc' , fs . readFileSync ( `${ os . homedir } /.zshrc` , 'utf8' ) ) ;
55+ console . log ( 'Path' , ( await $ . spawnSafe ( 'echo $PATH' ) ) . data ) ;
56+
57+
5358 const jenvQuery = await $ . spawnSafe ( 'which jenv' )
5459 if ( jenvQuery . status === SpawnStatus . ERROR ) {
5560 return null
5661 }
5762
58- console . log ( 'Zshrc' , fs . readFileSync ( '~/.zshrc' , 'utf8' ) ) ;
59-
6063 // For some reason jenv doctor will return with a non-zero status code even
6164 // if it's successful. We can ignore the status code and only check for the text
6265 const jenvDoctor = await $ . spawnSafe ( 'jenv doctor' )
You can’t perform that action at this time.
0 commit comments