Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cs-script 4.8.5 does not see cache directory on Linux #345

Closed
shitpoet opened this issue Oct 18, 2023 · 4 comments
Closed

cs-script 4.8.5 does not see cache directory on Linux #345

shitpoet opened this issue Oct 18, 2023 · 4 comments

Comments

@shitpoet
Copy link

shitpoet commented Oct 18, 2023

cs-script 4.8.5 installed on Debian 12 Linux as

dotnet tool install --global cs-script.cli

doesn't see the cache directory:

~/tmp/cs$ css -cache:ls
Cache root: /tmp/csscript.core/Cache
Listing cache items:

~/tmp/cs$

because it looks for Cache directory (the first letter is Capitalized), but the real directory it creates is all in small letters - /tmp/csscript.core/cache

It sees the directory if I manually create symlink Cache -> cache:

~/tmp/cs$ css -cache:ls
Cache root: /tmp/csscript.core/Cache
Listing cache items:

-1032282138:    /home/ors/tmp/cs

~/tmp/cs$

Config is default:

~/tmp/cs$ css -config
 UseAlternativeCompiler: ""
 ResolveRelativeFromParentScriptLocation: False
 DefaultArguments: "-c -ac:0"
 InjectScriptAssemblyAttribute: False
 EnableDbgPrint: True
 ResolveAutogenFilesRefs: True
 LegacyNugetSupport: True
 OpenEndDirectiveSyntax: True
 ConsoleEncoding: "default"
 LegacyTimestampCaching: False
 CustomTempDirectory: ""
 DefaultCompilerEngine: "csc"
 DefaultRefAssemblies: "System; System.Core;"
 SearchDirs: "%CSSCRIPT_ROOT%/lib;;%CSSCRIPT_INC%;"
 Precompiler: ""
 CustomHashing: True
 ReportDetailedErrorInfo: False
 HideCompilerWarnings: False
 InMemoryAssembly: True
 ConcurrencyControl: Standard

No env variables are set for cs-script:

~/tmp/cs$ env | grep CSSCRIPT
~/tmp/cs$

Note: css without cache:ls does use the cache, so only the -cache switch doesn't see the cache directory.

Also please note that FS on Linux is usully case-sensitive.

@oleg-shilo
Copy link
Owner

Thank you.
Yes it is a mistake. Will work on it right away

@oleg-shilo
Copy link
Owner

Done.
It was a silly mistake in the code ported from the older codebase targeting Win.
I will release the fix asap.

oleg-shilo pushed a commit that referenced this issue Oct 22, 2023
## Changes

### CLI

- Issue #345: cs-script 4.8.5 does not see cache directory on Linux
- Issue #346: cs-script 4.8.5 doesn't show information about server on Linux
@oleg-shilo
Copy link
Owner

You can update your deployment with v4.8.6.0

@shitpoet
Copy link
Author

shitpoet commented Nov 8, 2023

Yes, now it works correctly)

~/tmp/cs$ css -cache:ls
Cache root: /tmp/csscript.core/cache
Listing cache items:

-1032282138:    /home/ors/tmp/cs

@shitpoet shitpoet closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants