Closed jansviland closed 1 year ago
Hey @jansviland :wave:,
Thank you for opening an issue/feature request. We will get back to you as soon as we can.
Please consider support us by buying a license here or donating from OpenCollective https://opencollective.com/intellij-rainbow-brackets.
And we have a special plan for paid users, if you are a paid user, your issue or feature request will have a higher priority.
If you are creating a issue, please make sure you already read the latest change log here.
I submitted a very similar issue here: https://github.com/izhangzhihao/intellij-rainbow-brackets/issues/2612
And it was fixed, but I guess it's back again?
please provide your code sample, I will try find why this happens.
I was able to reproduce it with this code, just a simple console app:
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
// arrange
const string fromTime = $"2018-01-01";
const string toTime = $"2023-01-01";
var body = new TimeSeriesFilter()
{
Selections = new List<TimeSeriesFilterSelection>()
{
new()
{
StationIds = new[] { "456" },
ComponentIds = new[] { "123" },
QualityLevel = new[] { QualityLevelEnum.BestAvailable }
}
},
Period = PeriodTypeEnum.Hour
};
var request = CreatePostRequest($"/portal/timeseries/{fromTime}/{toTime}/names", body);
object CreatePostRequest(string s, TimeSeriesFilter timeSeriesFilter)
{
throw new NotImplementedException();
}
public enum QualityLevelEnum
{
BestAvailable,
RawData,
ValidData
}
public enum PeriodTypeEnum
{
Minute,
TenMinutes,
Hour,
Day,
Month,
Year,
Unknown
}
public class TimeSeriesFilter
{
public List<TimeSeriesFilterSelection> Selections { get; init; } = new();
public PeriodTypeEnum Period { get; init; }
}
public class TimeSeriesFilterSelection
{
public string[] StationIds { get; init; }
public string[] ComponentIds { get; init; }
public QualityLevelEnum[] QualityLevel { get; init; }
}
Here is how it looks
also, if I add a couple of variables here, you can see that the colors are almost or identical.
Looks better now 👍
I was unfortunately able to reproduce the issue again:
First has the wrong colour.
And the colours selected for first, second and remainder are very similar.
Another strange behaviour I have discovered recently, sometimes the parameter, in this case just the customers string url, is treated as a variable. And also gets another colour. I does not always happen. Like here it happens the first time, but not the second time, even when it's the same method.
Another example, here the int value 1, gets a colour. This should not happen
please post a full example code, so I could reproduce this case easily
Sure, you can find the examples above here:
It seems fixed in the latest Rider EAP(version 2023.2 EAP 6).
JetBrains Rider 2023.2 EAP 6
Build #RD-232.8296.16, built on June 26, 2023
Licensed to JetBrains Rider EAP user: Zhang Zhihao
Expiration date: July 26, 2023
Runtime version: 17.0.7+7-b1000.2 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6.3
.NET Core v7.0.7 x64 (Server GC)
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Metal Rendering is ON
Registry:
ide.plugins.snapshot.on.unload.fail=true
ide.experimental.ui=true
database.show.search.tab=false
vcs.empty.toolwindow.show=false
ide.new.project.model.index.case.sensitivity=true
Non-Bundled Plugins:
PsiViewer (232.2)
PythonCore (232.8296.17)
izhangzhihao.rainbow.brackets (2023.2.11)
Please rise a new issue if there are still some cases that don't work well.
Here is my config
Please check
This has been reported before, and fixed, but then it seems like the bug is back again?
Your programming languages
C#