mapbox / mapbox/vector-tile-cs

VectorTile.cs displays an error when working in Debug mode

Open
#43 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
64
Forks
38
PR merge metrics
No merged PRs in 30d

Description

https://github.com/mapbox/vector-tile-cs/blob/master/src/VectorTileReader/VectorTile.cs

When working on getting a Vector Tile data from the api, and after trying to pass the Byte Array data along to the Vector Tile constructor, I noticed the VectorTile has the following error displayed in the variables display whilst debugging:
`error CS0103: The name 'Zoom' does not exist in the current context/error CS0103: The name 'TileColumn' does not exist in the current context/error CS0103: The name 'TileRow' does not exist in the current context`

I can still use the VectorTile, as I discovered later, but it definitely threw me off when I saw this. Any idea why this is happening?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/VectorTileReader/VectorTile.cs and reproduce the issue by passing byte-array data to the VectorTile constructor while inspecting it in Debug mode. Check why the variables display reports Zoom, TileColumn, and TileRow as missing even though the VectorTile remains usable; done means the misleading debugger errors are explained and resolved or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.