-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error when value has $ #94
Comments
Hi @azliR Can you please clarify if the value you have in your DB_PASSWORD=somestring$ and when you change it to DB_PASSWORD=somestring\$ it worked? |
@azliR can you please test with this PR #95 dependency_overrides:
envied:
git:
url: https://github.com/petercinibulk/envied
ref: 83466c8679cdbbc135f1d9802410764cf283f6ed
path: packages/envied/
envied_generator:
git:
url: https://github.com/petercinibulk/envied
ref: 83466c8679cdbbc135f1d9802410764cf283f6ed
path: packages/envied_generator/ |
Yess |
Sure! Give me a minute |
I don't know why it said success, but the |
Did you follow the directions in the description of PR #95? |
Yes, both with |
What if you try using the branch as the ref, i.e. dependency_overrides:
envied:
git:
url: https://github.com/petercinibulk/envied
ref: fix/issue-94-raw-strings
path: packages/envied/
envied_generator:
git:
url: https://github.com/petercinibulk/envied
ref: fix/issue-94-raw-strings
path: packages/envied_generator/ |
I think you might need to clean your build beforehand. |
Sorry, just got time to try again, I did those but sadly it still not generate anything |
That doesn't make sense as all the PR does is add So just to confirm, you ran: dart run build_runner clean
dart run build_runner build --delete-conflicting-outputs correct? Also, can you please clone PR #95 and try to do cd envied/examples/envied_example
dart pub get
dart run build_runner clean
dart run build_runner build --delete-conflicting-outputs Does it produce all the |
Yess
Sure, in a minute |
I tried #95 and it worked! I really don't know why it doesn't with my current project. Unfortunately I can't share the source code for my project. for you to try it. |
Also, one thing to note is that at the moment any |
@azliR I have added 2 new annotations to #95 @Envied(intepolate: false)
class Env {
static const String? foo;
} @EnviedField(interpolate: false)
static const String? foo; It's there to disable It should be used in conjunction with @EnviedField(
rawString: true,
interpolate: false
)
static const String? testUnescapedString; |
Not sure a You'll have to wrap your string in single quotes, i.e. DB_PASSWORD='somestring$abcd#random' Also, until #97 is released, please continue using the master branch. |
tried using single quote but it's not seems to be desirable solution. Getting this |
The output:
but when i change it to
somestringwith\$
, it worked.The text was updated successfully, but these errors were encountered: