Auto-refresh build status?

There doesn't seem to be an option to manually fetch the build status?
I pushed my git and rebuilt travis to passing, and after 1 minute the clock-icon in my Atom is still red. Had to restart Atom for it to turn green.
How often is it refreshed?

As far as I remember, it doesn't refresh. Would accept a pull request to add an Atom command to refresh it.

It looks like this code here has an attempt to get it to update whenever the GitHub repo changes, but it doesn't match the Atom API from what I can tell.
You have:

    repos = atom.project.getRepositories()
    console.log "DEBUG:", repos
    name = atom.config.get('travis-ci-status.travisCiRemoteName')
    repo = repos.filter((r) -> /(.)*github\.com/i.test(r.getConfigValue("remote.#{name}.url")))
    @repo = repo[0]

    $(@repo).on 'status-changed', (path, status) =>
      @update() if path is @getActiveItemPath()

    $(@repo).on 'statuses-changed', @update
    @update()

However, the API refers to a function: ::onDidChangeStatuses(callback) which operates this in the background: @emitter.on 'did-change-statuses', callback.
There appear to be some updates to the manner in which Atom prefers you get the repositories (atom.project.getRepositories() is deprecated for removal in 2.0, with the replacement of Promise.all(atom.project.getDirectories().map(     atom.project.repositoryForDirectory.bind(atom.project))) being desired).
In short, this should be fixable with some updates for Atom v1.0.0.  I'd do it myself, but I'm not really an expert with CoffeeScript.

I'm :+1: on this. It's not really useful if it does not auto-refresh or at least offer a way to manually refresh. I'd give it a go but have never worked on atom packages before and currently do not have the time.

I have a preliminary version that I think will modify the determination of the repository for the current version of Atom and automatically update the Travis CI status when the files in the git project have changed.
CodingAnarchy/travis-ci-status@00eb63b
If anyone wants to go through and test this additionally, I'd appreciate it.  It passes the tests that are in the repository, but I'm less confident in my testing that validates the refreshing is occurring as expected.

@CodingAnarchy when feel feel it's ready, open and PR and I'll merge and release.

It looks like I need to do some further investigation.  The promise appears to work for fetching the repository info, but I'm still not getting an update when the files change on disk - or any other time, for that matter.  The current commit replicates the existing behavior, though so it might be useful as an update just to ensure the old method isn't dropped due to a new version release.  I'll make a PR for that.

This should be somewhat sorted out by #74, as that will result in a refresh of the status whenever the git repository on the disk has a status change.  Once that is released, this should be able to be closed unless there is some more desirable behavior that is really wanted.


Missing file   ./UI/favicon.ico

An error occurred when I opened the “http://localhost:8080/”
FileNotFoundError: [Errno 2] No such file or directory: './UI/favicon.ico'.
I searched the entire engineering project but couldn't find it.
I pray you can give me a solution.

@SevenTae I am also experiencing the same issue. @AliFlux appreciate it if you could include the file in the directory requested at line 219 "server.py" program.

This Error might be due to running server.py from the root project directory.
I saw a similar issue when I tried running $python src/server.py in terminal from the MapTilesDownloader-master folder. When I moved (cd) to the MapTilesDownloader-master/src/ and ran $python server.py this error went away. - Still not seeing a map loading, but the other UI components resolve in my browser.

I'm having the same error, it starts with: <IP_ADDRESS> - - [10/Nov/2023 19:45:23] "GET /favicon.ico HTTP/1.1" 200 -
...
and finishes as: FileNotFoundError: [Errno 2] No such file or directory: './UI/favicon.ico'
The http://localhost:8080/ is blank: no map

I'm having the same error, it starts with: <IP_ADDRESS> - - [10/Nov/2023 19:45:23] "GET /favicon.ico HTTP/1.1" 200 - ... and finishes as: FileNotFoundError: [Errno 2] No such file or directory: './UI/favicon.ico' The http://localhost:8080/ is blank: no map

Once I replaced the access token for mapbox everything ended up working. I had this issue too.

I'm having the same error, it starts with: <IP_ADDRESS> - - [10/Nov/2023 19:45:23] "GET /favicon.ico HTTP/1.1" 200 - ... and finishes as: FileNotFoundError: [Errno 2] No such file or directory: './UI/favicon.ico' The http://localhost:8080/ is blank: no map

https://github.com/AliFlux/MapTilesDownloader/issues/36#issuecomment-1740682708


Can't pause when video stops in MidSong

Describe your bug here.
When i trying startVideo in Midsong and video ends, i can't pause song
For example:
function onStepHit()
if == 30 then
startVideo('video', false)
end
end
Video starts, i can pause but when video stops, i can't pause
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No

That's normal because if you paused, the song will stop but the video will keep playing. if you want it to be able to pause, you need a animated scene with xml(not any kinds of video format) if it has a sound, it will be placed on the sounds folder and be played at the same time when the animated scene plays.

That's normal because if you paused, the song will stop but the video will keep playing. if you want it to be able to pause, you need a animated scene with xml(not any kinds of video format) if it has a sound, it will be placed on the sounds folder and be played at the same time when the animated scene plays.

Split the video into screenshots and make xml... It's

Bad optimized
If the video is longer than 50 seconds, you need to make more xml sprites and what happening? You right, check 1)
For second you need make more xml sprites because xml sprite sheet has pixel limitations

If you try test it in computer it's not gonna be a problem but if you using Android there may be lags

That's normal because if you paused, the song will stop but the video will keep playing. if you want it to be able to pause, you need a animated scene with xml(not any kinds of video format) if it has a sound, it will be placed on the sounds folder and be played at the same time when the animated scene plays.

Split the video into screenshots and make xml... It's

Bad optimized
If the video is longer than 50 seconds, you need to make more xml sprites and what happening? You right, check 1)
For second you need make more xml sprites because xml sprite sheet has pixel limitations

If you try test it in computer it's not gonna be a problem but if you using Android there may be lags

thats basically how animated shows are made, they are just converted to vid format instead of sparrowatlas, and also this is more optimized as long as the frames dont get past beyond 24 fps bc mp4 needs lots of space to run, u just need to preload the animation for no lagspikes

That's normal because if you paused, the song will stop but the video will keep playing. if you want it to be able to pause, you need a animated scene with xml(not any kinds of video format) if it has a sound, it will be placed on the sounds folder and be played at the same time when the animated scene plays.

Split the video into screenshots and make xml... It's

Bad optimized
If the video is longer than 50 seconds, you need to make more xml sprites and what happening? You right, check 1)
For second you need make more xml sprites because xml sprite sheet has pixel limitations

If you try test it in computer it's not gonna be a problem but if you using Android there may be lags

thats basically how animated shows are made, they are just converted to vid format instead of sparrowatlas, and also this is more optimized as long as the frames dont get past beyond 24 fps bc mp4 needs lots of space to run, u just need to preload the animation for no lagspikes
u can change the resolution of the animation if it still lags rlly badly

Yeah, I was thinking about that. Thanks


fix: Typo in restricted endpoint error

Typo in restricted endpoint error message

[x] I reviewed linter warnings + errors, resolved formatting, types and other issues related to my work
[x] The PR title follows the convention we established conventional-commit
[x] I performed a functional test on my final commit

Found a minor typo and formatting error in the message returned from the restricted.ts endpoint when unauthorized.

Screenshots

💯

Thank you


Different tile provider

I use different map tile provider (Urthecast) but I am keep getting blank image. When I try with mapbox tiles it works. My tile provider supports CORS but I can't make it work.

Please provide more details or debug your case further; this is not enough information to go on .

+1


"Message": "\"System.InvalidOperationException: Unexpected null\\n  at Roslyn.Utilities.Contract.Fail (System.String message) [0x00000] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol (Microsoft.CodeAnalysis.ISymbol symbol) [0x0003a] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsCoreAsync (Microsoft.CodeAnalysis.ISymbol symbol, Roslyn.Utilities.ConcurrentSet`1[T] result) [0x0005b] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x0009f] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x001d5] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x003ba] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x00463] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IStreamingFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x00267] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x000b3] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, System.Threading.CancellationToken cancellationToken) [0x00086] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.Handle (OmniSharp.Models.FindUsages.FindUsagesRequest request) [0x00390] in <88f2819c12ee464e94d6700e849310cf>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].AggregateResponsesFromLanguageHandlers (OmniSharp.Endpoint.Exports.ExportHandler`2[TRequest,TResponse][] handlers, TRequest request) [0x000a9] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x000fb] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000e7] in <60d68949688146858c57cddcbc6c56f5>:0 \"",
  "Body": null,
  "Seq": 17050,
  "Type": "response"
}

Same thing is happening here with a not so big project (but a Unity 3D one). Omnisharp runs nice for some 30 seconds and then crashes. All semantic coloring goes haywire (semantic colors appear in the wrong lines, sometimes one line before, sometimes one line after than where they should appear) and lots of weird errors are reported.
VS Code 1.52.1
C# extension 1.23.8
msbuild -version
Microsoft (R) Build Engine version 16.8.0-ci-20621-01 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

<IP_ADDRESS>101⏎

mono --version
Mono JIT compiler version 6.10.0 (makepkg/5d03a6fe116 Wed 15 Jul 2020 03:01:56 PM -03)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        Interpreter:   yes
        LLVM:          supported, not enabled.
        Suspend:       hybrid
        GC:            sgen (concurrent by default)

dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.108
 Commit:    c423b556b5

Runtime Environment:
 OS Name:     manjaro
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.108/

Host (useful for support):
  Version: 3.1.8
  Commit:  05a0c8f6b1

.NET Core SDKs installed:
  3.1.108 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 3.1.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Omnisharp logs:
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 81,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\n  at Roslyn.Utilities.Contract.Fail (System.String message) [0x00000] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol (Microsoft.CodeAnalysis.ISymbol symbol) [0x0003a] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsCoreAsync (Microsoft.CodeAnalysis.ISymbol symbol, Roslyn.Utilities.ConcurrentSet`1[T] result) [0x0005b] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x0009f] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x001d5] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x003ba] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x00463] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IStreamingFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x00267] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x000b3] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, System.Threading.CancellationToken cancellationToken) [0x00086] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.Handle (OmniSharp.Models.FindUsages.FindUsagesRequest request) [0x00390] in <88f2819c12ee464e94d6700e849310cf>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].AggregateResponsesFromLanguageHandlers (OmniSharp.Endpoint.Exports.ExportHandler`2[TRequest,TResponse][] handlers, TRequest request) [0x000a9] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x000fb] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000e7] in <60d68949688146858c57cddcbc6c56f5>:0 \"",
  "Body": null,
  "Seq": 1400,
  "Type": "response"
}

Same thing is happening here with a not so big project (but a Unity 3D one). Omnisharp runs nice for some 30 seconds and then crashes. All semantic coloring goes haywire (semantic colors appear in the wrong lines, sometimes one line before, sometimes one line after than where they should appear) and lots of weird errors are reported.
VS Code 1.52.1
C# extension 1.23.8
msbuild -version
Microsoft (R) Build Engine version 16.8.0-ci-20621-01 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

<IP_ADDRESS>101⏎

mono --version
Mono JIT compiler version 6.10.0 (makepkg/5d03a6fe116 Wed 15 Jul 2020 03:01:56 PM -03)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        Interpreter:   yes
        LLVM:          supported, not enabled.
        Suspend:       hybrid
        GC:            sgen (concurrent by default)

dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.108
 Commit:    c423b556b5

Runtime Environment:
 OS Name:     manjaro
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.108/

Host (useful for support):
  Version: 3.1.8
  Commit:  05a0c8f6b1

.NET Core SDKs installed:
  3.1.108 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 3.1.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Omnisharp logs:
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 81,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\n  at Roslyn.Utilities.Contract.Fail (System.String message) [0x00000] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol (Microsoft.CodeAnalysis.ISymbol symbol) [0x0003a] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsCoreAsync (Microsoft.CodeAnalysis.ISymbol symbol, Roslyn.Utilities.ConcurrentSet`1[T] result) [0x0005b] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x0009f] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x001d5] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x003ba] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x00463] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IStreamingFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x00267] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x000b3] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, System.Threading.CancellationToken cancellationToken) [0x00086] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.Handle (OmniSharp.Models.FindUsages.FindUsagesRequest request) [0x00390] in <88f2819c12ee464e94d6700e849310cf>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].AggregateResponsesFromLanguageHandlers (OmniSharp.Endpoint.Exports.ExportHandler`2[TRequest,TResponse][] handlers, TRequest request) [0x000a9] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x000fb] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <954ed0cf974c4f038a543c1ed1dfaa98>:0 \\n  at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000e7] in <60d68949688146858c57cddcbc6c56f5>:0 \"",
  "Body": null,
  "Seq": 1400,
  "Type": "response"
}

I'm running into the same issues, with a Unity project on OSX.
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 2944,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\n  at Roslyn.Utilities.Contract.Fail (System.String message) [0x00000] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol (Microsoft.CodeAnalysis.ISymbol symbol) [0x0003a] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsCoreAsync (Microsoft.CodeAnalysis.ISymbol symbol, Roslyn.Utilities.ConcurrentSet`1[T] result) [0x0005b] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x0009f] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x001d5] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x003ba] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x00463] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IStreamingFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x00267] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x000b3] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, System.Threading.CancellationToken cancellationToken) [0x00086] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.Handle (OmniSharp.Models.FindUsages.FindUsagesRequest request) [0x00390] in <47d11c951b2c467ba3d5b0bfebca06c3>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].AggregateResponsesFromLanguageHandlers (OmniSharp.Endpoint.Exports.ExportHandler`2[TRequest,TResponse][] handlers, TRequest request) [0x000a9] in <15a25893e84240228920acfa2b3190eb>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x000fb] in <15a25893e84240228920acfa2b3190eb>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <15a25893e84240228920acfa2b3190eb>:0 \\n  at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000e7] in <871e49cde2fe4baf972bea6b4d99c013>:0 \"",
  "Body": null,
  "Seq": 2246,
  "Type": "response"
}

I'm running into the same issues, with a Unity project on OSX.
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 2944,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\n  at Roslyn.Utilities.Contract.Fail (System.String message) [0x00000] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol (Microsoft.CodeAnalysis.ISymbol symbol) [0x0003a] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsCoreAsync (Microsoft.CodeAnalysis.ISymbol symbol, Roslyn.Utilities.ConcurrentSet`1[T] result) [0x0005b] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.DetermineAllSymbolsAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x0009f] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x001d5] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x003ba] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol) [0x00463] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IStreamingFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x00267] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchOptions options, System.Threading.CancellationToken cancellationToken) [0x000b3] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.FindReferencesAsync (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.Solution solution, Microsoft.CodeAnalysis.FindSymbols.IFindReferencesProgress progress, System.Collections.Immutable.IImmutableSet`1[T] documents, System.Threading.CancellationToken cancellationToken) [0x00086] in <1b72cf009970430282a46c2931a92a23>:0 \\n  at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.Handle (OmniSharp.Models.FindUsages.FindUsagesRequest request) [0x00390] in <47d11c951b2c467ba3d5b0bfebca06c3>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].AggregateResponsesFromLanguageHandlers (OmniSharp.Endpoint.Exports.ExportHandler`2[TRequest,TResponse][] handlers, TRequest request) [0x000a9] in <15a25893e84240228920acfa2b3190eb>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x000fb] in <15a25893e84240228920acfa2b3190eb>:0 \\n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <15a25893e84240228920acfa2b3190eb>:0 \\n  at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000e7] in <871e49cde2fe4baf972bea6b4d99c013>:0 \"",
  "Body": null,
  "Seq": 2246,
  "Type": "response"
}

Same issue here.

Same issue here.

Can anyone recommend a version of the VSCode extension and/or a setting that will downgrade to a usable version for Win 10 x64 until this is fixed?

Can anyone recommend a version of the VSCode extension and/or a setting that will downgrade to a usable version for Win 10 x64 until this is fixed?

Also - this seems to be related:
https://github.com/OmniSharp/omnisharp-roslyn/issues/2054

Also - this seems to be related:
https://github.com/OmniSharp/omnisharp-roslyn/issues/2054

@floyd-may I haven't found a reliable workaround/version. Personally, I had to switch to Windows/Visual Studio where this problem is not observed, as sometimes it would drive me nuts.

@floyd-may I haven't found a reliable workaround/version. Personally, I had to switch to Windows/Visual Studio where this problem is not observed, as sometimes it would drive me nuts.

I downgraded VSCode to 1.49.1 and it seems to be working: no weird errors and semantic coloring seems to be in place. But I'm not 100% sure. I'm actually not even 50% sure, as the semantic coloring bug sometimes manifest by shifting colors one or two lines up, sometimes one or two lines down, so, being in place means little. And the weird errors being gone are also not a 100% signal. Moreover, I still get lots in the likes of this in omnisharp's log:
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 106,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\r\\n   at Roslyn.Utilities.Contract.Fail(String message)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol(ISymbol symbol)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsCoreAsync>d__20.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsAsync>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__34.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__40.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__39.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.<Handle>d__2.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\Navigation\\\\FindUsagesService.cs:line 41\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<AggregateResponsesFromLanguageHandlers>d__18.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 227\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 1045,
  "Type": "response"
}
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 114,
  "Command": "/v2/highlight",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\\r\\nParameter name: line\\r\\n   at Microsoft.CodeAnalysis.Text.LinePosition..ctor(Int32 line, Int32 character)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.<Handle>d__1.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\SemanticHighlight\\\\SemanticHighlightService.cs:line 36\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<GetFirstNotEmptyResponseFromHandlers>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 230\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 1104,
  "Type": "response"
}
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 139,
  "Command": "/v2/highlight",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\\r\\nParameter name: line\\r\\n   at Microsoft.CodeAnalysis.Text.LinePosition..ctor(Int32 line, Int32 character)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.<Handle>d__1.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\SemanticHighlight\\\\SemanticHighlightService.cs:line 36\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<GetFirstNotEmptyResponseFromHandlers>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 230\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 1279,
  "Type": "response"
}

I downgraded VSCode to 1.49.1 and it seems to be working: no weird errors and semantic coloring seems to be in place. But I'm not 100% sure. I'm actually not even 50% sure, as the semantic coloring bug sometimes manifest by shifting colors one or two lines up, sometimes one or two lines down, so, being in place means little. And the weird errors being gone are also not a 100% signal. Moreover, I still get lots in the likes of this in omnisharp's log:
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 106,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\r\\n   at Roslyn.Utilities.Contract.Fail(String message)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol(ISymbol symbol)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsCoreAsync>d__20.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsAsync>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__34.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__40.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__39.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.<Handle>d__2.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\Navigation\\\\FindUsagesService.cs:line 41\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<AggregateResponsesFromLanguageHandlers>d__18.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 227\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 1045,
  "Type": "response"
}
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 114,
  "Command": "/v2/highlight",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\\r\\nParameter name: line\\r\\n   at Microsoft.CodeAnalysis.Text.LinePosition..ctor(Int32 line, Int32 character)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.<Handle>d__1.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\SemanticHighlight\\\\SemanticHighlightService.cs:line 36\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<GetFirstNotEmptyResponseFromHandlers>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 230\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 1104,
  "Type": "response"
}
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 139,
  "Command": "/v2/highlight",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\\r\\nParameter name: line\\r\\n   at Microsoft.CodeAnalysis.Text.LinePosition..ctor(Int32 line, Int32 character)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.SemanticHighlight.SemanticHighlightService.<Handle>d__1.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\SemanticHighlight\\\\SemanticHighlightService.cs:line 36\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<GetFirstNotEmptyResponseFromHandlers>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 230\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 1279,
  "Type": "response"
}

Ok, I downgraded the C# extension from to 1.23.8 to 1.23.1 and logs seem fine by now.
So code 1.49.1 and C# 1.23.1 seem fine.
I'd have to perform a careful gradual upgrade, release by release, first on VSCode (just a hunch), then the extension, until the error manifests clearly again. I don't have such time in my hands right now. Could anybody else can fill in these shoes?

Ok, I downgraded the C# extension from to 1.23.8 to 1.23.1 and logs seem fine by now.
So code 1.49.1 and C# 1.23.1 seem fine.
I'd have to perform a careful gradual upgrade, release by release, first on VSCode (just a hunch), then the extension, until the error manifests clearly again. I don't have such time in my hands right now. Could anybody else can fill in these shoes?

@fernandodandrea Thanks so much, that fixed it for me.

@fernandodandrea Thanks so much, that fixed it for me.

Can anyone point me in the right direction as to whether or not omnisharp-vscode is gathering telemetry on these kinds of errors and possibly being able to analyze the telemetry data? If for no other reason, I'd like to know whether or not I'm in the minority in encountering these kinds of issues.

Can anyone point me in the right direction as to whether or not omnisharp-vscode is gathering telemetry on these kinds of errors and possibly being able to analyze the telemetry data? If for no other reason, I'd like to know whether or not I'm in the minority in encountering these kinds of issues.

Can anyone point me in the right direction as to whether or not omnisharp-vscode is gathering telemetry on these kinds of errors and possibly being able to analyze the telemetry data? If for no other reason, I'd like to know whether or not I'm in the minority in encountering these kinds of issues.

Have you read all posts in this thread?

Can anyone point me in the right direction as to whether or not omnisharp-vscode is gathering telemetry on these kinds of errors and possibly being able to analyze the telemetry data? If for no other reason, I'd like to know whether or not I'm in the minority in encountering these kinds of issues.

Have you read all posts in this thread?

@fernandodandrea I'm assuming you're kidding with me 😄  I know VS Code has facilities built-in to gather telemetry data, I'm just curious if omnisharp-vscode is taking advantage of that, and if so, what kinds of analysis they're doing.

@fernandodandrea I'm assuming you're kidding with me 😄  I know VS Code has facilities built-in to gather telemetry data, I'm just curious if omnisharp-vscode is taking advantage of that, and if so, what kinds of analysis they're doing.

@fernandodandrea I'm assuming you're kidding with me 😄  I know VS Code has facilities built-in to gather telemetry data, I'm just curious if omnisharp-vscode is taking advantage of that, and if so, what kinds of analysis they're doing.

My point is that 1) the bug is clearly widespread, just Google for it (I did so, as I always assume there's something wrong with my system before thinking bug) and 2) there are plenty of reports here, with logs and all. The moment they look at this there will be plenty of people willing to give away more data, if needed. I could even pinpoint myself (and I hope others can confirm this or not) the problem is with the extension itself.
I don't quite see what telemetry would be about in this issue.
I'm kind of disappointed nobody from MS seem to have taken a look at this, sure. Not so sure telemetry would change this.

@fernandodandrea I'm assuming you're kidding with me 😄  I know VS Code has facilities built-in to gather telemetry data, I'm just curious if omnisharp-vscode is taking advantage of that, and if so, what kinds of analysis they're doing.

My point is that 1) the bug is clearly widespread, just Google for it (I did so, as I always assume there's something wrong with my system before thinking bug) and 2) there are plenty of reports here, with logs and all. The moment they look at this there will be plenty of people willing to give away more data, if needed. I could even pinpoint myself (and I hope others can confirm this or not) the problem is with the extension itself.
I don't quite see what telemetry would be about in this issue.
I'm kind of disappointed nobody from MS seem to have taken a look at this, sure. Not so sure telemetry would change this.

@fernandodandrea I hear you. I'm just looking for another avenue by which to shine some light on this, or if there might be some sort of hidden, broader issue that's confounding things.

@fernandodandrea I hear you. I'm just looking for another avenue by which to shine some light on this, or if there might be some sort of hidden, broader issue that's confounding things.

it would be great if you shared a project that can reproduce it. It looks to me like for some reason the state between the editor and the server gets corrupt resulting in the editor sending line numbers to the backend that don't match anymore which then ends up in all kinds of issues.

it would be great if you shared a project that can reproduce it. It looks to me like for some reason the state between the editor and the server gets corrupt resulting in the editor sending line numbers to the backend that don't match anymore which then ends up in all kinds of issues.

it would be great if you shared a project that can reproduce it. It looks to me like for some reason the state between the editor and the server gets corrupt resulting in the editor sending line numbers to the backend that don't match anymore which then ends up in all kinds of issues.

Hello, @filipw. Would a Unity3D Project do it? You'd have to have Unity 3D installed, I suppose.

it would be great if you shared a project that can reproduce it. It looks to me like for some reason the state between the editor and the server gets corrupt resulting in the editor sending line numbers to the backend that don't match anymore which then ends up in all kinds of issues.

Hello, @filipw. Would a Unity3D Project do it? You'd have to have Unity 3D installed, I suppose.

@filipw I'll see if I can get it to repro on some of my OSS projects. The one I'm having trouble with currently is closed-source 😞  I had toyed with the idea of building a custom OmniSharp.exe with extra logging specific to my closed-source app in the hopes of maybe uncovering... something... and then using that to distill a more concise repro case. Am I crazy? 🤪

@filipw I'll see if I can get it to repro on some of my OSS projects. The one I'm having trouble with currently is closed-source 😞  I had toyed with the idea of building a custom OmniSharp.exe with extra logging specific to my closed-source app in the hopes of maybe uncovering... something... and then using that to distill a more concise repro case. Am I crazy? 🤪

by setting "omnisharp.logginglevel": "debug" all the requests to the server and responses from the server are captured in the log, that should help get more insights.
having as small and as deterministic of a repro as possible would be great, otherwise this is unfortunately very speculative.
Like I said, the log presented here suggests to me that the line numbering on the client and on the server are out of sync with each other. This could mean that VS Code misses sending some update events to OmniSharp server or that some updates are not processed correctly on the server (e.g. wrong order). may be related to:

the switch to use buffer updates with incremental changes (https://github.com/OmniSharp/omnisharp-vscode/pull/3931)
applying changes together (https://github.com/OmniSharp/omnisharp-vscode/pull/4088)

However these are just my best guesses so it might be completely inaccurate. It would be good to get @JoeRobich or @333fred to have a look at this as they are familiar with these changes.

by setting "omnisharp.logginglevel": "debug" all the requests to the server and responses from the server are captured in the log, that should help get more insights.
having as small and as deterministic of a repro as possible would be great, otherwise this is unfortunately very speculative.
Like I said, the log presented here suggests to me that the line numbering on the client and on the server are out of sync with each other. This could mean that VS Code misses sending some update events to OmniSharp server or that some updates are not processed correctly on the server (e.g. wrong order). may be related to:

the switch to use buffer updates with incremental changes (https://github.com/OmniSharp/omnisharp-vscode/pull/3931)
applying changes together (https://github.com/OmniSharp/omnisharp-vscode/pull/4088)

However these are just my best guesses so it might be completely inaccurate. It would be good to get @JoeRobich or @333fred to have a look at this as they are familiar with these changes.

it would be great if you shared a project that can reproduce it. It looks to me like for some reason the state between the editor and the server gets corrupt resulting in the editor sending line numbers to the backend that don't match anymore which then ends up in all kinds of issues.

Would a Unity3D project work for you?

it would be great if you shared a project that can reproduce it. It looks to me like for some reason the state between the editor and the server gets corrupt resulting in the editor sending line numbers to the backend that don't match anymore which then ends up in all kinds of issues.

Would a Unity3D project work for you?

@filipw Here's the request/response that I got on one of my OSS projects (I went ahead and flipped the repo to public just for you even though the project isn't close to ready yet 😁):
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 7,
  "Command": "/findusages",
  "Arguments": {
    "FileName": "c:\\Src\\dotnet-ponder\\src\\Ponder\\PonderEngine.cs",
    "Line": 26,
    "Column": 24,
    "OnlyThisFile": true,
    "ExcludeDefinition": false
  }
}
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 7,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\r\\n   at Roslyn.Utilities.Contract.Fail(String message)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol(ISymbol symbol)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsCoreAsync>d__20.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsAsync>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__34.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__40.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__39.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.<Handle>d__2.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\Navigation\\\\FindUsagesService.cs:line 41\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<AggregateResponsesFromLanguageHandlers>d__18.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 227\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 693,
  "Type": "response"
}

I kept it as-is and checked it in when I saw it, commit is here:
https://github.com/canyon-trail/dotnet-ponder/tree/e8a456797eb53fe9af8f9d121276f84bc0241218
I went ahead and pointed you at this commit in case I push more commits that might interfere with repro'ing this issue. LMK if I can help in any other way!

@filipw Here's the request/response that I got on one of my OSS projects (I went ahead and flipped the repo to public just for you even though the project isn't close to ready yet 😁):
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 7,
  "Command": "/findusages",
  "Arguments": {
    "FileName": "c:\\Src\\dotnet-ponder\\src\\Ponder\\PonderEngine.cs",
    "Line": 26,
    "Column": 24,
    "OnlyThisFile": true,
    "ExcludeDefinition": false
  }
}
[fail]: OmniSharp.Stdio.Host
        ************  Response ************
{
  "Request_seq": 7,
  "Command": "/findusages",
  "Running": true,
  "Success": false,
  "Message": "\"System.InvalidOperationException: Unexpected null\\r\\n   at Roslyn.Utilities.Contract.Fail(String message)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.MapToAppropriateSymbol(ISymbol symbol)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsCoreAsync>d__20.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<DetermineAllSymbolsAsync>d__19.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.FindReferencesSearchEngine.<FindReferencesAsync>d__8.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__34.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__40.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Microsoft.CodeAnalysis.FindSymbols.SymbolFinder.<FindReferencesAsync>d__39.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService.<Handle>d__2.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Roslyn.CSharp\\\\Services\\\\Navigation\\\\FindUsagesService.cs:line 41\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<AggregateResponsesFromLanguageHandlers>d__18.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 227\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"",
  "Body": null,
  "Seq": 693,
  "Type": "response"
}

I kept it as-is and checked it in when I saw it, commit is here:
https://github.com/canyon-trail/dotnet-ponder/tree/e8a456797eb53fe9af8f9d121276f84bc0241218
I went ahead and pointed you at this commit in case I push more commits that might interfere with repro'ing this issue. LMK if I can help in any other way!

by setting "omnisharp.logginglevel": "debug" all the requests to the server and responses from the server are captured in the log, that should help get more insights.

Yes, I went through all the stages of that, warning, information, anger, bargaining, denial, then finally debug. Glad to help if I can! 😅

by setting "omnisharp.logginglevel": "debug" all the requests to the server and responses from the server are captured in the log, that should help get more insights.

Yes, I went through all the stages of that, warning, information, anger, bargaining, denial, then finally debug. Glad to help if I can! 😅

:warning: Full and detailled traces :warning:
complement of https://github.com/OmniSharp/omnisharp-vscode/issues/4307#issuecomment-754546708
You will find as an attachement the FULL AND DETAILLED LOG from the start of visual studio code with omnisharp till the first exception.
It is a very big file because my solution is very big.
Once again, it doesn't happen much when my solution is close to compilation. The problem occurs always when there are many compilation errors. Typically when you rehandle your code, and that you suddenly have hundreds of compilation issues.
FYI: EVERY POSSIBLE ADD HAS BEEN DISABLED. Just omnisharp is running.
What I did to get what is shown in traces:

opened my solution
waited a (very long) moment till omnisharp stopped tracing anything (meaning that everything is started/loaded)
put the cursor on a not recognized class because the namespace that contains it is not included
Click on the bulb at the begining of the line
Chose the option to add the include in the file
It didn't do anything... don't know why...
Click on the bulb at the begining of the line again
Chose the option to add the include in the file again
Boom!
I captured the traces that are attached

omnisharptraces.zip
I proposed to send my solution to omnisharp dervelopers so that they can reproduce the bug, no answers. Now I'm sending detailed traces of omnisharp working alone with VS Code. If there is no reaction to this... I don't know what to do.

:warning: Full and detailled traces :warning:
complement of https://github.com/OmniSharp/omnisharp-vscode/issues/4307#issuecomment-754546708
You will find as an attachement the FULL AND DETAILLED LOG from the start of visual studio code with omnisharp till the first exception.
It is a very big file because my solution is very big.
Once again, it doesn't happen much when my solution is close to compilation. The problem occurs always when there are many compilation errors. Typically when you rehandle your code, and that you suddenly have hundreds of compilation issues.
FYI: EVERY POSSIBLE ADD HAS BEEN DISABLED. Just omnisharp is running.
What I did to get what is shown in traces:

opened my solution
waited a (very long) moment till omnisharp stopped tracing anything (meaning that everything is started/loaded)
put the cursor on a not recognized class because the namespace that contains it is not included
Click on the bulb at the begining of the line
Chose the option to add the include in the file
It didn't do anything... don't know why...
Click on the bulb at the begining of the line again
Chose the option to add the include in the file again
Boom!
I captured the traces that are attached

omnisharptraces.zip
I proposed to send my solution to omnisharp dervelopers so that they can reproduce the bug, no answers. Now I'm sending detailed traces of omnisharp working alone with VS Code. If there is no reaction to this... I don't know what to do.

Thanks a lot for the help, unfortunately there is nothing that jumps out as an obvious root cause in the log (also because there probably is no obvious root cause, and the behavior is a lot more subtle).
At the moment OmniSharp server uses its own protocol to talk to extensions such as this one. As I mentioned earlier, this could lead to potentially out-of-sync state between the local workspace and the workspace state in the server, especially when many things happen at the same time or when a large number of files is affected, because the extension is responsible for applying the changes locally.
https://github.com/OmniSharp/omnisharp-vscode/pull/3817 will be the first step towards moving OmniSharp to use the language server protocol instead, which should improve the stability.

Thanks a lot for the help, unfortunately there is nothing that jumps out as an obvious root cause in the log (also because there probably is no obvious root cause, and the behavior is a lot more subtle).
At the moment OmniSharp server uses its own protocol to talk to extensions such as this one. As I mentioned earlier, this could lead to potentially out-of-sync state between the local workspace and the workspace state in the server, especially when many things happen at the same time or when a large number of files is affected, because the extension is responsible for applying the changes locally.
https://github.com/OmniSharp/omnisharp-vscode/pull/3817 will be the first step towards moving OmniSharp to use the language server protocol instead, which should improve the stability.

@filipw It makes sense to me. The more there are errors, the more an out-of-sync issue can happen. If the solution is very large, it would impact a lot as well if what you say is true. I just ordered a VERY, VERY, VERY powerful desktop computer. Hopefully I will receive it very soon. If what you say is true once again, out-of-sync issues have a chance to occur less. I will let you know.

@filipw It makes sense to me. The more there are errors, the more an out-of-sync issue can happen. If the solution is very large, it would impact a lot as well if what you say is true. I just ordered a VERY, VERY, VERY powerful desktop computer. Hopefully I will receive it very soon. If what you say is true once again, out-of-sync issues have a chance to occur less. I will let you know.

@filipw looks like that PR hasn't had any activity since November, has been ongoing since March, and is currently in a broken state. Any ideas on ETA? I did send you a link to a specific commit in a github repo that reproduces the issue. Are you saying that it's likely more expedient to wait on that PR than to try debugging this issue? From your description it seems like LSP addresses some design issues with the custom O# protocol that may eliminate these kinds of issues, and I totally get not wanting to spend time debugging this if the LSP implementation will likely sort it out and/or make it easier to find and fix.
TL; DR: should we wait for the LSP implementation or try to find the issue with the current codebase? What can I/we do to help?

@filipw looks like that PR hasn't had any activity since November, has been ongoing since March, and is currently in a broken state. Any ideas on ETA? I did send you a link to a specific commit in a github repo that reproduces the issue. Are you saying that it's likely more expedient to wait on that PR than to try debugging this issue? From your description it seems like LSP addresses some design issues with the custom O# protocol that may eliminate these kinds of issues, and I totally get not wanting to spend time debugging this if the LSP implementation will likely sort it out and/or make it easier to find and fix.
TL; DR: should we wait for the LSP implementation or try to find the issue with the current codebase? What can I/we do to help?

Indeed, from the OmniSharp server perspective we'd want all clients to move to the Language Server Protocol. For example Emacs extension already did.
@JoeRobich owns the C# extension so he is better to answer any timeline questions, but from the server perspective (which is a separate component) I can say that the LSP area is actively worked on, today the upgrade to latest 3.16 LSP was merged (https://github.com/OmniSharp/omnisharp-roslyn/pull/2044)

Indeed, from the OmniSharp server perspective we'd want all clients to move to the Language Server Protocol. For example Emacs extension already did.
@JoeRobich owns the C# extension so he is better to answer any timeline questions, but from the server perspective (which is a separate component) I can say that the LSP area is actively worked on, today the upgrade to latest 3.16 LSP was merged (https://github.com/OmniSharp/omnisharp-roslyn/pull/2044)

@filipw looks like that PR hasn't had any activity since November

It's being actively worked on as the solution to these issues. A new PR updating the Roslyn-side was merged yesterday, and another PR updating the vscode side is also out and, in conjunction with that roslyn update, should have passing test runs.

@filipw looks like that PR hasn't had any activity since November

It's being actively worked on as the solution to these issues. A new PR updating the Roslyn-side was merged yesterday, and another PR updating the vscode side is also out and, in conjunction with that roslyn update, should have passing test runs.

@333fred apologies, GitHub's UI is somewhat misleading :(

This makes it look like it had a pile of commits on Nov 8 and then nothing until today.

@333fred apologies, GitHub's UI is somewhat misleading :(

This makes it look like it had a pile of commits on Nov 8 and then nothing until today.

@filipw if that helps, with a massively more powerful computer (ryzen 9 w/ 12 cores at 3.8Ghz + 128Go ram), errors still occur in the same way.

@filipw if that helps, with a massively more powerful computer (ryzen 9 w/ 12 cores at 3.8Ghz + 128Go ram), errors still occur in the same way.

Have anyone tested the 1.23.9 C# extension?

@fernandodandrea There doesn't appear to be a new release of omnisharp-roslyn which (I think?) is where the fix would need to be. I'm on 1.23.9 and still having this problem.

@floyd-may 🤔 I've downgraded it to 1.23.1 and the problem seems way less severe.

Any news?

Hey @fernandodandrea  - how did you downgrade omnisharp?  I'm also encountering this issue, and wouldn't mind trying the work around.
Thanks! :)

Hey @fernandodandrea - how did you downgrade omnisharp? I'm also encountering this issue, and wouldn't mind trying the work around.
Thanks! :)
Not exactly Omnisharp. I downgraded the extension. Like this:

Has anybody had any luck with C# extension 1.23.11?

The root cause for the problem described in this issue was identified as change forwarding problem, and was addressed in https://github.com/OmniSharp/omnisharp-vscode/pull/4477.
I will close this issue now. If you encounter any issues with state sync between client and a server in the future, please open a new issue - thanks!


Migrate from Travis to GitHub Actions

This PR migrates from Travis is GitHub Actions for deployment.  This should fix the issue of stale credentials as a nice side benefit.

I don't have a ton of context on the yaml configuration, other than reading some GH docs, but this seems sane and iterating as needed seems like a reasonable strategy here. Thanks Ken!


Unable to post message to https://www.youtube.com.

Hi. I'm testing your component. I found this error in browser console:
Unable to post message to https://www.youtube.com. Recipient has origin http://localhost:8081.
Could you explain what it means and how to fix it? What „message” does it want to post?

I believe this is an issue with the source origin being http meanwhile the target is https

Closed this in https://github.com/anteriovieira/vue-youtube/pull/34


[security] matrix-synapse: 1.1.0 -> 1.2.1

Motivation for this change
Security update: see https://github.com/matrix-org/synapse/releases/tag/v1.2.1
Package builds, unit tests and NixOS test are passing.
Supersedes https://github.com/NixOS/nixpkgs/pull/65413
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

CC package maintainers: @ralith @roblabla @ekleog

Backporting this security update to release-19.03 would require a more recent version of pythonPackages.service-identity (18.1.0 instead of 17.0.0 currently in 19.03).
I'm not sure whether we should update that package globally or use a different version locally for the backport.

@ofborg build nixosTests.matrix-synapse

@Ekleog The NixOS test seems to be broken on master when running on ofborg (matrix-synapse seems to complain about not being able to connect to postgres).
It passes locally on NixOS 19.03 though.

@pacien yup, already had that issue last time, with the verdict being that it's likely an issue of ofborg being too slow -- currently running locally, will merge as soon as it completes :)

It seems to work fine on the release-19.03 branch but fails consistently on master so it might not be a slowness issue.

I would guess it's an upgrade to postgresql that's slowed down startup, and so when running in a VM in a VM (@grahamc's guess last time I asked was it was due to an ofborg runner running inside a VM) it goes over the startup timeout.
Anyway, there is no regression compared to current master, and this looks like a postgresql issue, so I'm going to merge this for now and poke @ocharles @thoughtpolice @danbst in case they have some idea of why this might be happening with postgresql on ofborg and/or whether they saw similar things happening with the postgresql tests. :)


Changing pages when annotation editing is enable breaks annotation creation

@stanislavkostadinov
If I turn on annotation editing, and then change the page and turn off annotation editing, it still tries to draw shapes when I click and drag on the canvas.

The fix from #773 fixes that problem, too.


Remove outline for hamburger menu & close buttons

On focus for .sidebar-toggler and .close-sidebar, an outline is shown. We need to remove it.
Changes should be made in assets/css/index.css

Hello @shahednasser,
I would love to work on this!

Hi @Annysah . This issue is meant for first timers (beginners). If you would like to help with other issues that don't have the "first-timers-only" label then please go ahead!

Hi @shahednasser ! Can I work on this issue?

Yes go ahead!

I have made a pull request with the changes. commit id - fb79558


OUT_DIR env var Behaviour discrepancy between testing a whole crate and individual test

Problem
Hi! I want to run the integration tests of a lib crate (my_crate_2) in my rust project. The crate has such structure:
my_project/
├── Cargo.toml
└── src/
    └── main.rs
my_crate_2/
├── Cargo.toml
|-- build.rs
└── src/
    └── lib.rs
|__ tests/
    |__my_crate_2.rs

In tests/my_crate_2.rs, I need to extract artifacts output path of the package, i.e., the OUT_DIR env var, which should be set by Cargo.
I observed a cargo test behaviour discrepancy on OUT_DIR env var between running tests against the whole package and a single/specific test. I created this sandbox to demo: here.
The test: test_add() will fail if OUT_DIR env var is not set:
#[cfg(test)]
pub mod tests {
    use my_crate_2::*;

    #[test]
    fn test_add() {
        // I need to use env var `OUT_DIR` here
        // err: called `Result::unwrap()` on an `Err` value: NotPresent
        // note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
        let out_dir = std::env::var("OUT_DIR").unwrap();
        println!("OUT_DIR is {}", out_dir);

        assert_eq!(add(2, 5), 7);
    }
}

If you run the whole test package (cargo test -- --nocapture) in my_crate_2/, the test can pass without a problem.
cargo test -- --nocapture
    Finished test [unoptimized + debuginfo] target(s) in 0.00s
     Running unittests src/lib.rs (target/debug/deps/my_crate_2-e7e58afb09a93b31)

running 1 test
test tests::it_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/my_crate_2.rs (target/debug/deps/my_crate_2-9892d21b51d30121)

running 1 test
OUT_DIR is /workspaces/workspace/my_crate_2/target/debug/build/my_crate_2-443e542c04636da9/out
test tests::test_add ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Doc-tests my_crate_2

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

But if I only run a specific test: cargo test --package my_crate_2 --test my_crate_2 -- tests::test_add --nocapture, the test would fail with OUT_DIR env var not found.
cargo test --package my_crate_2 --test my_crate_2 -- tests::test_add --nocapture
    Finished test [unoptimized + debuginfo] target(s) in 0.00s
     Running tests/my_crate_2.rs (target/debug/deps/my_crate_2-9892d21b51d30121)

running 1 test
thread 'tests::test_add' panicked at tests/my_crate_2.rs:10:48:
called `Result::unwrap()` on an `Err` value: NotPresent
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test tests::test_add ... FAILED

Looks like cargo test --package <package_name> -- <test_name> lose the OUT_DIR env var? Thank you for your help.
Steps
Provided in the description
Possible Solution(s)
No response
Notes
No response
Version
cargo 1.71.1 (7f1d04c00 2023-07-29)
release: 1.71.1
commit-hash: 7f1d04c0053083b98fa50b69b6f56e339b0556a8
commit-date: 2023-07-29
host: x86_64-unknown-linux-gnu
libgit2: 1.6.4 (sys:0.17.1 vendored)
libcurl: 8.0.1-DEV (sys:0.4.61+curl-8.0.1 vendored ssl:OpenSSL/1.1.1t)
ssl: OpenSSL 1.1.1t  7 Feb 2023
os: Ubuntu 20.04 (focal) [64-bit]

We limit what build targets get processed when specifying a test as an optimization, see https://github.com/rust-lang/cargo/blob/master/src/bin/cargo/commands/test.rs#L100
I'm guessing we don't set OUT_DIR for tests but we have leakage between targets, making it available.
By looking at the code, I'm guessing cargo test --tests  will also reproduce this.
The question is which behavior is more correct.

From https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates:

Note that this applies for running binaries with cargo run and cargo test as well.

My interpretation of "running binaries" are the binary targets (i.e. [[bin]]) being run in a integration tests, though it is not necessary to be the case.

Hadn't had a chance to check the docs yet.  The only way to set it for running the bins is if we set it for running the tests.  Looks like we aren't lining up with the documentation.

I believe this was an unintentional regression in 1.15 via #3310.
The code has moved around a bit, but it now looks like this:
https://github.com/rust-lang/cargo/blob/749654c5fdb26e81f543e76806aedde4327c6cd1/src/cargo/core/compiler/context/mod.rs#L216-L234
The problem is that it is only including OUT_DIR in extra_env if the lib target is one of the roots. That's...not how it should work. It's tricky to explain, but Context::compile should do something like:

Gather a list of root units that have a build script.
Deduplicate that list based on unit.pkg
For each remaining unit in the deduplicated list, set the extra_env the same way the current code does (essentially everything inside the if unit.target.is_lib() block).

I can try to explain it further if that isn't clear.

@rustbot claim
I will try to fix it.


configured gendistribution, added information about parents, fixed saving of .csv

Every kid will now inherit a random tribe from one of its parents (might be modified in future version)
Every kid will now contain the parents agent number
the .csv file is now saved correctly in the MAINCODE dir

Please note that the latest update has the ID "b86a854" and the title "added Metabolism, integrated consumption time, added covered distance"
updates made are:

Agents are now unable to move during consumption of food.
The consumption time is divided by their Metabolism
The covered Distance is now tracked in the .csv file

Please note that implementing a consumption time has deep impacts on the .csv outcome, e.g. the reproduction rate dropped

Everything in your code looks good, awesome. ready to be merged. :)

ok, that should be merged to the main