Comments (3)
Note that this lock check seems deprecated in in nim 2
https://forum.nim-lang.org/t/10487
from playdate-nim.
Do you get that warning in the IDE or in the command line during compilation?
I'm not getting that warning for some reason.
from playdate-nim.
Command line
/bin/zsh -c "nimble simulate"
Executing task simulate in /Users/ninovanhooff/PlaydateProjects/wheelsprung/wheelsprung.nimble
Executing task simulator in /Users/ninovanhooff/PlaydateProjects/wheelsprung/wheelsprung.nimble
Verifying dependencies for [email protected]
Reading official package list
Checking for https://github.com/ninovanhooff/playdate-nim@#develop
Info: Dependency on https://github.com/ninovanhooff/playdate-nim@#develop already satisfied
Verifying dependencies for playdate@#develop
Reading official package list
Checking for https://github.com/ninovanhooff/nim-chipmunk-playdate@any version
Info: Dependency on https://github.com/ninovanhooff/nim-chipmunk-playdate@any version already satisfied
Verifying dependencies for [email protected]
Building wheelsprung/wheelsprung using c backend
Executing /Users/ninovanhooff/.nimble/bin/nim c --colors:on --noNimblePath -d:simulator -d:debug -d:NimblePkgVersion=0.2.0 --path:'/Users/ninovanhooff/.nimble/pkgs/playdate-#develop' --path:/Users/ninovanhooff/.nimble/pkgs/chipmunk7-7.0.3 -o:/Users/ninovanhooff/PlaydateProjects/wheelsprung/wheelsprung /Users/ninovanhooff/PlaydateProjects/wheelsprung/src/wheelsprung.nim
Hint: used config file '/Users/ninovanhooff/.choosenim/toolchains/nim-1.6.16/config/nim.cfg' [Conf]
Hint: used config file '/Users/ninovanhooff/.choosenim/toolchains/nim-1.6.16/config/config.nims' [Conf]
Hint: used config file '/Users/ninovanhooff/PlaydateProjects/wheelsprung/config.nims' [Conf]
..........................................................................................................................................................
/Users/ninovanhooff/PlaydateProjects/wheelsprung/src/screens/game/game_view.nim(124, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
.
/Users/ninovanhooff/.choosenim/toolchains/nim-1.6.16/lib/system/repr_v2.nim(102, 7) Hint: 'firstElement' is declared but not used [XDeclaredButNotUsed]
/Users/ninovanhooff/PlaydateProjects/wheelsprung/src/screens/game/game_screen.nim(260, 8) Warning: method has lock level <unknown>, but another method has 0 [LockLevel]
.
/Users/ninovanhooff/PlaydateProjects/wheelsprung/src/screens/level_select/level_select_screen.nim(16, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/Users/ninovanhooff/PlaydateProjects/wheelsprung/src/screens/level_select/level_select_screen.nim(22, 6) Warning: declared lock level is 0, but real lock level is <unknown> [LockLevel]
/Users/ninovanhooff/PlaydateProjects/wheelsprung/src/screens/level_select/level_select_screen.nim(72, 8) Warning: method has lock level 0, but another method has <unknown> [LockLevel]
CC: ../../../.nimble/pkgs/playdate-#develop/playdate/graphics.nim
CC: screens/game/game_view.nim
Note that Screen is an object defined here: https://github.com/ninovanhooff/wheelsprung/blob/8a4ad17ffaca0e504de5c6a77a4f07c3d206ca6c/src/navigation/screen.nim#L1
Also note that this file has a push pragma for locks.
General remark: not really sure what I'm doing here. My goal with all of the "locks" pragmas / annnotations was To Make The Warnings Go Away
edit: got slightly mixed up with what line of code I started this issue for. That's line 16. In addition, there are some warnings for the Screen methods
from playdate-nim.
Related Issues (20)
- Build for device OS 2.0 error: undefined reference to `_fini' HOT 1
- Does not compile with Nim 2.0.0 HOT 8
- Runtime crashes halt simulator without any indication of problems HOT 6
- Feature: Basic Lua interop HOT 9
- Implement Std/random HOT 3
- api aliases HOT 2
- implement os module HOT 2
- LCD:Sprite.setImage crashes when invoked multiple times HOT 6
- Use `projectName()` instead of static PDX name? HOT 4
- Conflicting types HOT 4
- player volume: double promotion warning HOT 2
- Unclear naming requirement for main entrypoint nim file HOT 2
- arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs': No such file or directory HOT 3
- Any guidance on unit tests? HOT 1
- When importing std/logging, device compilation fails HOT 1
- Mac device Debug builds for device profiling HOT 1
- Playdate memory allocator HOT 6
- Update the recommended VSCode Nim extension in the README HOT 1
- sigabrt: double free when calling file.close()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playdate-nim.